/* Original styles */
.divider-text {
    position: relative;
    text-align: center;
    margin-top: 15px;
    margin-bottom: 15px;
}
.divider-text span {
    padding: 7px;
    font-size: 12px;
    position: relative;
    z-index: 2;
}
.divider-text:after {
    content: "";
    position: absolute;
    width: 100%;
    border-bottom: 1px solid #ddd;
    top: 55%;
    left: 0;
    z-index: 1;
}

.btn-facebook {
    background-color: #405D9D;
    color: #fff;
}
.btn-twitter {
    background-color: #42AEEC;
    color: #fff;
}

/* New responsive styles for homepage */
body {
    /* padding-top rimosso - gestito dalle singole sezioni */
}

.hero-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.navbar.scrolled {
    background-color: rgba(248, 249, 250, 0.95) !important;
    backdrop-filter: blur(10px);
}

.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15) !important;
}

.btn {
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.text-success {
    color: #28a745 !important;
}

.btn-success {
    background-color: #28a745;
    border-color: #28a745;
}

.btn-success:hover {
    background-color: #218838;
    border-color: #1e7e34;
}

.btn-outline-success:hover {
    background-color: #28a745;
    border-color: #28a745;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 0;
        min-height: auto;
    }

    .hero-section h1 {
        font-size: 2rem !important;
    }

    .hero-section .lead {
        font-size: 1rem;
    }

    .hero-section .btn {
        display: block;
        width: 100%;
        margin: 0.5rem 0;
    }

    .display-4 {
        font-size: 2rem !important;
    }

    .navbar-brand span {
        display: none;
    }

    .navbar-brand img {
        height: 35px;
    }

    .card-body {
        padding: 1rem;
    }

    section {
        padding: 3rem 0 !important;
    }
}

@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 1.5rem !important;
    }

    .display-4 {
        font-size: 1.75rem !important;
    }

    .lead {
        font-size: 0.9rem;
    }

    .card-body p {
        font-size: 0.9rem;
    }

    .navbar-nav {
        text-align: center;
        margin-top: 1rem;
    }

    .navbar-nav .nav-link {
        padding: 1rem;
        margin: 0.25rem 0;
        border-radius: 0.375rem;
        transition: background-color 0.3s ease;
    }

    .navbar-nav .nav-link:hover {
        background-color: rgba(40, 167, 69, 0.1);
    }
}

/* Tablet styles */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero-section h1 {
        font-size: 2.5rem !important;
    }

    .btn-lg {
        padding: 0.75rem 2rem;
    }
}

/* Animation for smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Loading animation */
.card img {
    transition: transform 0.3s ease;
}

.card:hover img {
    transform: scale(1.05);
}

/* Footer responsiveness */
@media (max-width: 768px) {
    footer .text-md-right {
        text-align: center !important;
        margin-top: 1rem;
    }
}

/* Form improvements for mobile */
@media (max-width: 576px) {
    .input-group-text {
        min-width: 45px;
        justify-content: center;
    }

    #login .card-body {
        padding: 2rem 1.5rem !important;
    }

    #login img {
        max-width: 120px !important;
    }
}

/* Screen reader only - for SEO hidden text */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
