/* ===== RESPONSIVE STYLES ===== */


@media (max-width: 991.98px) {
    .hero-section p {
        font-size: 1rem;
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        min-height: 500px;
    }
    
    .btn-xl {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

@media (max-width: 575.98px) {
    .hero-section .btn {
        display: block;
        width: 100%;
        margin: 0.5rem 0 !important;
    }
}

@media (max-width: 390px) {
    .hero-section {
        min-height: 400px;
        padding: 60px 0 40px;
    }
    
    .hero-section .container {
        padding: 0 1rem;
    }
    
    .hero-section h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
        line-height: 1.2;
    }
    
    .hero-section p {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
        line-height: 1.5;
    }
    
    .hero-section .btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
        margin: 0.25rem 0 !important;
    }
    
    .btn-xl {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    .service-card {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .service-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }
    
    .service-card h3 {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }
    
    .service-card p {
        font-size: 0.85rem;
        line-height: 1.5;
        margin-bottom: 1rem;
    }
}

/* ===== NAVBAR RESPONSIVE STYLES ===== */


/* ===== CHI SIAMO RESPONSIVE STYLES ===== */
/* Page header styles moved to animations.css for centralized management */
@media (max-width: 991.98px) {
    /* Page header styles managed in animations.css */
}

@media (max-width: 767.98px) {
    /* Page header styles managed in animations.css */
    
    .mission-card, .team-card, .facility-card {
        padding: 1.25rem;
    }
    
    .mission-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
}

@media (max-width: 575.98px) {
    /* Page header styles managed in animations.css */
    
    .facility-img img {
        height: 180px;
    }
}

@media (max-width: 390px) {
    /* Page header styles managed in animations.css */
    
    .mission-card, .team-card, .facility-card {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .mission-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        margin-bottom: 0.75rem;
    }
    
    .facility-img img {
        height: 160px;
        border-radius: 8px;
    }
    
    .team-card h4 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }
    
    .team-card p {
        font-size: 0.85rem;
        line-height: 1.5;
    }
    
    .facility-card h4 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .facility-card p {
        font-size: 0.8rem;
        line-height: 1.4;
    }
}

/* ===== SERVIZI RESPONSIVE STYLES ===== */
@media (max-width: 991.98px) {
    .services-nav {
        position: static;
    }
    
    .service-tab {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
    }
    
    .service-icon i {
        font-size: 30px;
    }
}

@media (max-width: 767.98px) {
    .section-header h2 {
        font-size: 2rem;
    }
    
    .service-card {
        margin-bottom: 20px;
    }
    
    .cta-section h2 {
        font-size: 2rem;
    }
    
    .cta-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 10px;
    }
    
    .cta-buttons .btn-lg {
        padding: 10px 20px;
        font-size: 1rem;
    }
}

@media (max-width: 575.98px) {
    /* Page header styles managed in animations.css */
    
    .services-tabs {
        flex-direction: column;
    }
    
    .service-tab {
        width: 100%;
        text-align: center;
    }
    
    .service-card h3 {
        font-size: 1.1rem;
    }
    
    /* Responsive images for mobile */
    .service-image {
        max-width: 100%;
        width: 100%;
        height: auto;
        margin: 0 auto 20px;
    }
}

/* Extra small devices (390px and below) */
@media (max-width: 390px) {
    .service-image {
        max-width: 100%;
        width: calc(100% - 20px);
        margin: 0 auto 15px;
        border-radius: 8px;
    }
    
    .service-image:hover {
        transform: scale(1.02);
        border-radius: 12px;
    }
    
    .section-header {
        margin-bottom: 30px;
    }
    
    .service-card {
        padding: 1.25rem;
        margin-bottom: 15px;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 15px;
    }
    
    .service-icon i {
        font-size: 24px;
    }
    
    /* Chi Siamo section responsive styles for index.html */
    #chi-siamo .row {
        text-align: center;
    }
    
    #chi-siamo .col-lg-6 {
        margin-bottom: 2rem;
    }
    
    #chi-siamo h2 {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }
    
    #chi-siamo .lead {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    #chi-siamo p {
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 1rem;
        text-align: center;
    }
    
    .about-preview-img {
        margin-bottom: 1.5rem;
        text-align: center;
    }
    
    .about-preview-img img {
        max-width: 100%;
        width: auto;
        height: auto;
        margin: 0 auto;
    }
    
    #chi-siamo .btn {
        width: 100%;
        margin-top: 1rem;
    }
}

/* ===== BOOKING SECTION RESPONSIVE STYLES ===== */
@media (max-width: 991.98px) {
    .booking-features {
        margin-bottom: 2rem;
    }
    
    .booking-form-container {
        margin-top: 1rem;
    }
}

@media (max-width: 767.98px) {
    .booking-features li {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    
    .booking-form .form-control {
        font-size: 0.9rem;
        padding: 0.6rem 0.75rem;
    }
    
    .booking-form .btn {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 575.98px) {
    .booking-features {
        text-align: center;
    }
    
    .booking-features li {
        font-size: 0.85rem;
    }
    
    .booking-form .form-control {
        font-size: 0.85rem;
    }
}

@media (max-width: 390px) {
    .booking-features {
        margin-bottom: 1.5rem;
    }
    
    .booking-features li {
        font-size: 0.8rem;
        margin-bottom: 0.75rem;
        padding: 0.25rem 0;
    }
    
    .booking-form-container {
        padding: 0 0.5rem;
    }
    
    .booking-form .form-control {
        font-size: 0.8rem;
        padding: 0.5rem 0.6rem;
        margin-bottom: 0.75rem;
    }
    
    .booking-form .btn {
        padding: 0.6rem 0.8rem;
        font-size: 0.8rem;
        width: 100%;
    }
    
    .booking-form .form-check-label {
        font-size: 0.8rem;
        line-height: 1.4;
    }
}

/* ===== CONTACT SECTION RESPONSIVE STYLES ===== */
@media (max-width: 991.98px) {
    .contact-list li {
        margin-bottom: 1.5rem;
    }
    
    .map-container {
        margin-top: 2rem;
    }
}

@media (max-width: 767.98px) {
    .contact-list {
        text-align: center;
    }
    
    .contact-list li {
        flex-direction: column;
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .contact-list li i {
        margin-bottom: 0.5rem;
        margin-right: 0;
    }
    
    .map-container iframe {
        height: 300px;
    }
}

@media (max-width: 575.98px) {
    .contact-list li h4 {
        font-size: 1.1rem;
    }
    
    .contact-list li p {
        font-size: 0.9rem;
    }
    
    .map-container iframe {
        height: 250px;
    }
}

@media (max-width: 390px) {
    .contact-list {
        padding: 0 0.5rem;
    }
    
    .contact-list li {
        margin-bottom: 1.5rem;
        padding: 1rem 0.5rem;
    }
    
    .contact-list li i {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }
    
    .contact-list li h4 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .contact-list li p {
        font-size: 0.85rem;
        line-height: 1.5;
    }
    
    .map-container {
        padding: 0 0.5rem;
    }
    
    .map-container iframe {
        height: 220px;
        border-radius: 8px;
    }
    
    .social-links {
        justify-content: flex-start;
        gap: 1rem;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

/* ===== GALLERY RESPONSIVE STYLES ===== */
@media (max-width: 991.98px) {
    .gallery-header {
        padding: 120px 0 80px;
    }
    
    .filter-btn {
        padding: 6px 15px;
        font-size: 0.9rem;
    }
    
    .gallery-preview {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .gallery-preview-img {
        height: auto;
    }
    
    .gallery-preview-overlay h4 {
        font-size: 1rem;
    }
}

@media (max-width: 767.98px) {
    .gallery-header {
        padding: 100px 0 60px;
    }
    
    .gallery-filter {
        gap: 5px;
    }
    
    .filter-btn {
        padding: 5px 12px;
        font-size: 0.8rem;
    }
    
    .gallery-section, .video-section, .cta-section {
        padding: 60px 0;
    }
}

@media (max-width: 575.98px) {
    .gallery-header h1 {
        font-size: 2rem;
    }
    
    .gallery-header p {
        font-size: 1rem;
    }
    
    .filter-btn {
        padding: 4px 10px;
        font-size: 0.75rem;
        margin-bottom: 5px;
    }
}

@media (max-width: 390px) {
    .gallery-header {
        padding: 80px 0 40px;
    }
    
    .gallery-header h1 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }
    
    .gallery-header p {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
    
    .gallery-filter {
        padding: 0 0.5rem;
        gap: 3px;
    }
    
    .filter-btn {
        padding: 3px 8px;
        font-size: 0.7rem;
        margin-bottom: 3px;
        border-radius: 4px;
    }
    
    .gallery-preview {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 0 0.5rem;
    }
    
    .gallery-preview-img {
        height: auto;
        min-height: auto;
    }
    
    .gallery-preview-overlay {
        padding: 10px;
    }
    
    .gallery-preview-overlay h4 {
        font-size: 0.9rem;
    }
    
    .video-section, .cta-section {
        padding: 40px 0;
    }
    
    .video-card {
        margin-bottom: 1rem;
    }
}

/* ===== BOOKING SECTION RESPONSIVE ===== */
@media (max-width: 767.98px) {
    #prenota .col-lg-6 {
        text-align: center;
    }
    
    #prenota h2 {
        text-align: center;
    }
    
    #prenota .lead {
        text-align: center;
    }
    
    #prenota .booking-features {
        text-align: left;
        display: inline-block;
    }
    
    #prenota .booking-form-container {
        text-align: center;
    }
    
    #prenota .booking-form {
        display: inline-block;
        text-align: left;
        max-width: 400px;
        width: 100%;
    }
    
    /* Chi Siamo Section Responsive */
    #chi-siamo .col-lg-6 {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    #chi-siamo h2 {
        text-align: center;
        font-size: 1.8rem;
    }
    
    #chi-siamo .lead {
        text-align: center;
        font-size: 1rem;
    }
    
    #chi-siamo p {
        text-align: center;
    }
    
    #chi-siamo .btn {
        display: inline-block;
        margin: 0 auto;
    }
}

@media (max-width: 575.98px) {
    #prenota .col-lg-6 {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    #prenota h2 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }
    
    #prenota .lead {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    #prenota .booking-form {
        max-width: 350px;
    }
    
    #chi-siamo .col-lg-6 {
        margin-bottom: 1.5rem;
    }
    
    #chi-siamo h2 {
        font-size: 1.6rem;
    }
    
    #chi-siamo .lead {
        font-size: 0.95rem;
    }
}

@media (max-width: 390px) {
    #prenota h2 {
        font-size: 1.6rem;
    }
    
    #prenota .lead {
        font-size: 0.9rem;
    }
    
    #prenota .booking-features {
        font-size: 0.85rem;
    }
    
    #chi-siamo h2 {
        font-size: 1.4rem;
        margin-bottom: 1rem;
    }
    
    #chi-siamo .lead {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    /* Non centrare le icone social del footer sui dispositivi mobile più piccoli */
    .social-links.mt-2 {
        text-align: left !important;
    }
    
    .social-links.mt-4 {
        text-align: left !important;
    }
}