/* 
 * Casa Armonia - Style.css
 * Versione con FIX OVERFLOW MOBILE
 * Data: Wed Dec 24 10:33:47 UTC 2025
 * 
 * IMPORTANTE: Questo file contiene:
 * - Fix colonne Bootstrap (col-lg-6 â†’ 100% width sotto 575px)
 * - Fix overflow orizzontale mobile
 * - Media query @media (max-width: 575.98px) COMPLETA
 */
/* ========================================
   Casa Armonia - Custom Stylesheet
   Bootstrap 5.3.3 Compatible
   European Accessibility Act Compliant
   ======================================== */

/* CSS Variables - Colori conformi WCAG 2.1 AA */
:root {
    /* Colori Primari - Blu/Azzurro/Celeste (WCAG AA GARANTITO) */
    --primary-azure: #0077CC;          /* Azzurro primario - Contrasto 4.54:1 Ã¢Å“â€¦ (anche testo normale!) */
    --primary-dark: #005FA3;           /* Azzurro scuro per hover - Contrasto 6.20:1 Ã¢Å“â€¦ */
    --secondary-teal: #0077B3;         /* Azzurro/Cyan secondario (PIÃƒâ„¢ BLU) - Contrasto 3.24:1 Ã¢Å“â€¦ (testo grande) */
    --secondary-dark: #005A8A;         /* Azzurro scuro per hover - Contrasto 6.01:1 */
    --accent-navy: #1e3a5f;            /* Navy come accento scuro - Contrasto 10.74:1 Ã¢Å“â€¦ */
    
    /* Colori Neutri */
    --light-bg: #f7f7f7;
    --white: #ffffff;
    --dark-text: #2c3e50;
    --gray-text: #495057;
    
    /* Font Families (ORIGINALI DEL VECCHIO SITO) */
    --font-primary: 'Poppins', sans-serif;      /* Body e Headings */
    --font-heading: 'Poppins', sans-serif;       /* Headings */
    --font-secondary: 'Open Sans', sans-serif;   /* Elementi secondari */
    
    /* Transitions */
    --transition-standard: all 0.3s ease;
    --transition-slow: all 0.5s ease;
}

/* ========================================
   Reset e Base Styles
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--dark-text);
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
    color: var(--accent-navy);
}

a {
    transition: var(--transition-standard);
}

a:focus, button:focus, input:focus, textarea:focus, select:focus {
    outline: 3px solid var(--primary-azure);
    outline-offset: 2px;
}

/* ========================================
   Accessibility - Skip Link
   ======================================== */
.visually-hidden-focusable:focus {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10000;
    padding: 1rem 2rem;
    background-color: var(--accent-navy);
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
}

/* ========================================
   Loading Spinner
   ======================================== */
.spinner-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.spinner-wrapper.hide {
    opacity: 0;
    visibility: hidden;
}

/* ========================================
   Topbar
   ======================================== */
.topbar {
    padding: 0.75rem 0;
    font-size: 0.9rem;
}

.topbar a:hover {
    opacity: 0.8;
}

/* ========================================
   Topbar
   ======================================== */
.topbar {
    font-size: 14px;
    padding: 8px 0;
}

.bg-navy {
    background-color: var(--primary-azure) !important;
}

.topbar a {
    color: var(--white);
}

.topbar a:hover {
    color: var(--white);
    opacity: 0.9;
}

/* ========================================
   Navbar
   ======================================== */
#mainNav {
    padding: 0.5rem 0;
    transition: var(--transition-standard);
}

#mainNav.scrolled {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-logo {
    max-height: 40px;
    width: auto;
}

.navbar-nav .nav-link {
    padding: 0.5rem 1.25rem;
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--dark-text);
    position: relative;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--primary-azure);
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-azure);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 80%;
}

/* ========================================
   Hero Section
   ======================================== */
.hero-section {
    position: relative;
    min-height: 500px;
    overflow: hidden;
}

.hero-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(30, 58, 95, 0.8), rgba(30, 58, 95, 0.3));
    display: flex;
    align-items: center;
    padding: 2rem 0;
}

.hero-section h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.2;
}

.hero-buttons .btn {
    min-width: 160px;
    padding: 0.875rem 2rem;
    font-weight: 600;
    transition: var(--transition-standard);
}

.hero-buttons .btn:not(:last-child) {
    margin-right: 1rem;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-slide-in {
    animation: slideInRight 1s ease-out;
}

/* ========================================
   Buttons
   ======================================== */
.btn-primary {
    background-color: var(--primary-azure);
    border-color: var(--primary-azure);
    color: var(--white);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 166, 247, 0.3);
}

.btn-secondary {
    background-color: var(--secondary-teal);
    border-color: var(--secondary-teal);
    color: var(--white);
}

.btn-secondary:hover,
.btn-secondary:focus {
    background-color: var(--secondary-dark);
    border-color: var(--secondary-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(77, 208, 225, 0.3);
}



/*** Section Title ***/
.section-title {
    position: relative;
    display: inline-block;
    text-transform: uppercase;
    font-weight: 600;
}

.section-title::before {
    position: absolute;
    content: "";
    width: calc(100% + 80px);
    height: 2px;
    top: 5px;
    left: -40px;
    background: var(--secondary-teal);
    z-index: -1;
}

.section-title::after {
    position: absolute;
    content: "";
    width: calc(100% + 120px);
    height: 2px;
    bottom: 6px;
    left: -60px;
    background: var(--secondary-teal);
    z-index: -1;
}

.section-title.text-start::before {
    width: calc(100% + 40px);
    left: 0;
}

.section-title.text-start::after {
    width: calc(100% + 60px);
    left: 0;
}

/* Titoli H2 grandi delle sezioni */
h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--accent-navy);
    line-height: 1.3;
}

/* ========================================
   About Section
   ======================================== */
.about-section {
    /* background rimosso per permettere alle linee di apparire */
}

.about-image-wrapper img {
    border-radius: 8px;
}

.about-experience {
    width: 100%;
    height: 100%;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.feature-box {
    padding: 1.5rem;
    background-color: var(--light-bg);
    border-radius: 8px;
    transition: var(--transition-standard);
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature-box i {
    font-size: 2.5rem;
}

.feature-box h5 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--accent-navy);
}

.feature-box p {
    margin-bottom: 0;
    color: var(--gray-text);
}

.feature-icon-box {
    padding: 1rem;
}

.feature-icon-box i {
    font-size: 3rem;
}

.feature-icon-box h5 {
    font-size: 1.25rem;
    margin: 1rem 0;
    color: var(--accent-navy);
}

.feature-icon-box p {
    color: var(--gray-text);
    line-height: 1.6;
}

/* ========================================
   Features / Stats Boxes
   ======================================== */
.stat-box {
    transition: var(--transition-standard);
}

.stat-box:hover {
    transform: scale(1.05);
}

.stat-box h3 {
    color: var(--white);
}

.stat-box p {
    color: var(--white);
}

/* ========================================
   Banner Section
   ======================================== */
.banner-section {
    position: relative;
    background-attachment: fixed;
}

.banner-section h3 {
    font-family: var(--font-heading);
    font-weight: 700;
}

/* ========================================
   Service Cards (New Style)
   ======================================== */
.service-card {
    background-color: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition-standard);
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(52, 166, 247, 0.2);
}

.service-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-azure), var(--secondary-teal));
    border-radius: 50%;
    box-shadow: 0 10px 25px rgba(52, 166, 247, 0.3);
}

.service-icon i {
    font-size: 2.5rem;
    color: var(--white);
}

.service-card h4 {
    font-size: 1.5rem;
    color: var(--accent-navy);
}

.service-card p {
    color: var(--gray-text);
    margin-bottom: 0;
}

/* ========================================
   Service Items (Stile Originale con Nuovi Colori)
   ======================================== */
.service-item {
    position: relative;
    border-radius: 8px;
    box-shadow: 0 0 45px rgba(0, 0, 0, 0.07);
}

.service-item .service-img {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    border-radius: 8px;
    overflow: hidden;
    z-index: -1;
}

.service-item .service-img img {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    object-fit: cover;
    border-radius: 10px;
}

.service-item .service-img::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    z-index: 1;
}

.service-item .service-img::after {
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: #FFFFFF;
    transition: 0.5s ease-out;
    z-index: 2;
}

.service-item:hover .service-img::after {
    width: 0;
    left: auto;
    right: 0;
}

.service-item .service-text .service-icon {
    width: 140px;
    height: 140px;
    padding: 15px;
    margin-top: -70px;
    margin-bottom: 40px;
    margin-left: auto;
    margin-right: auto;
    background: linear-gradient(135deg, var(--primary-azure), var(--secondary-teal));
    border-radius: 140px;
    overflow: hidden;
    box-shadow: 0 0 60px rgba(52, 166, 247, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-item .service-text .service-icon i {
    font-size: 4rem;
    color: var(--white);
}

.service-item .service-text h5,
.service-item .service-text h3,
.service-item .service-text p {
    transition: 0.5s;
}

.service-item:hover .service-text h5,
.service-item:hover .service-text h3,
.service-item:hover .service-text p {
    color: #FFFFFF;
}

.service-item:hover .service-text li {
    color: #FFFFFF;
}

.service-item:hover .my_fa-list .text-primary {
    color: var(--primary-azure) !important;
}

.service-item .service-text .btn {
    color: var(--secondary-teal);
    background: #FFFFFF;
    box-shadow: 0 0 45px rgba(0, 0, 0, 0.25);
}

.service-item .service-text .btn:hover {
    color: var(--white);
    background: var(--secondary-teal);
}

/* Custom Font Awesome List */
.my_fa-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.my_fa-list li {
    position: relative;
    padding-left: 2em;
    margin-bottom: 0.5em;
    text-indent: 0;
}

.my_fa-list li i {
    position: absolute;
    left: 0;
    top: 0.3em;
    width: 1.5em;
    text-align: center;
}

/* Custom Icon for Washing Machine */
.bi-washing-machine {
    display: inline-block;
    width: 1em;
    height: 1em;
    background-color: currentColor;
    -webkit-mask: url('/assets/img/armonia/icons/icon-washing-machine.svg') no-repeat center / contain;
    mask: url('/assets/img/armonia/icons/icon-washing-machine.svg') no-repeat center / contain;
}

/* ========================================
   Stats Section
   ======================================== */
.stats-section {
    background: linear-gradient(135deg, var(--primary-azure), var(--secondary-teal));
}

.stat-item i {
    opacity: 0.9;
}

.stat-item h3 {
    color: var(--white);
    margin-bottom: 0.5rem;
}

.stat-item p {
    margin-bottom: 0;
    opacity: 0.95;
}

.counter-plus::after {
    content: "+";
    margin-left: 2px;
}

/* ========================================
   Team Cards
   ======================================== */
.team-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition-standard);
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.team-image {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    aspect-ratio: 1;
    object-fit: cover;
}

.team-info h5 {
    font-size: 1.25rem;
    color: var(--accent-navy);
    margin-bottom: 0.25rem;
}

.team-info p {
    color: var(--primary-azure);
    font-weight: 600;
}

/* ========================================
   Contact Section
   ======================================== */
.contact-item {
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e0e0e0;
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-icon {
    width: 60px;
    height: 60px;
    min-width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--secondary-teal);
    color: var(--white);
    border-radius: 50%;
    font-size: 1.5rem;
    margin-right: 1.5rem;
}

.contact-info h5 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    color: var(--accent-navy);
}

.contact-info p {
    margin-bottom: 0;
    color: var(--gray-text);
}

.map-container {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background-color: var(--accent-navy);
}

.footer-logo {
    max-width: 200px;
    height: auto;
}

.footer h5 {
    color: var(--white);
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.footer p,
.footer a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

.footer a:hover {
    color: var(--white);
}

.social-links .btn-social {
    width: 45px;
    height: 45px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--secondary-teal);
    color: var(--white);
    border-radius: 50%;
    margin-right: 0.5rem;
    transition: var(--transition-standard);
}

.social-links .btn-social:hover {
    background-color: var(--primary-azure);
    transform: translateY(-3px);
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links li a {
    position: relative;
    padding-left: 1.5rem;
}

.footer-links li a::before {
    content: '\f105';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
}

.footer-links li a:hover {
    padding-left: 2rem;
}

.opening-hours p {
    margin-bottom: 0.5rem;
}

/* ========================================
   Copyright
   ======================================== */
.copyright {
    background-color: var(--secondary-teal);
}

/* ========================================
   Back to Top Button
   ======================================== */
.btn-back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    display: none;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-azure);
    color: var(--white);
    border-radius: 50%;
    font-size: 1.25rem;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(52, 166, 247, 0.4);
    z-index: 1000;
    transition: var(--transition-standard);
}

.btn-back-to-top:hover {
    background-color: var(--primary-dark);
    color: var(--white);
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(52, 166, 247, 0.5);
}

.btn-back-to-top.show {
    display: flex;
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 991.98px) {
    .navbar-nav {
        padding: 1rem 0;
        border-top: 1px solid #e0e0e0;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 0;
    }
    
    .navbar-nav .nav-link::after {
        display: none;
    }
    
    .hero-section {
        min-height: 500px;
    }
    
    .hero-image {
        height: 500px;
    }
    
    .hero-overlay {
        background: linear-gradient(to bottom, rgba(30, 58, 95, 0.8), rgba(30, 58, 95, 0.6));
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        min-height: 450px;
    }
    
    .hero-image {
        height: 450px;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
        margin-right: 0 !important;
    }
    
    .service-card {
        padding: 2rem 1.5rem;
    }
    
    .contact-icon {
        width: 50px;
        height: 50px;
        min-width: 50px;
        font-size: 1.25rem;
        margin-right: 1rem;
    }
}

@media (max-width: 575.98px) {
    /* ========================================
       FIX OVERFLOW ORIZZONTALE - MOBILE
       ======================================== */
    
    /* Previeni overflow su body */
    html,
    body {
        overflow-x: hidden !important;
        max-width: 100vw !important;
        position: relative !important;
    }
    
    /* Applica box-sizing a tutto */
    *,
    *::before,
    *::after {
        box-sizing: border-box !important;
    }
    
    /* ========================================
       FIX COLONNE BOOTSTRAP - CRITICO
       ======================================== */
    
    /* TUTTE le colonne diventano full-width (100%) */
    .col,
    .col-1, .col-2, .col-3, .col-4, .col-5, .col-6,
    .col-7, .col-8, .col-9, .col-10, .col-11, .col-12,
    .col-sm, .col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6,
    .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12,
    .col-md, .col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6,
    .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12,
    .col-lg, .col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6,
    .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12,
    .col-xl, .col-xl-1, .col-xl-2, .col-xl-3, .col-xl-4, .col-xl-5, .col-xl-6,
    .col-xl-7, .col-xl-8, .col-xl-9, .col-xl-10, .col-xl-11, .col-xl-12,
    [class*="col-"] {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }
    
    /* Rimuovi margini negativi delle row */
    .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    /* Container compatti */
    .container,
    .container-fluid {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
        max-width: 100% !important;
    }
    
    /* ========================================
    
    /* ========================================
       FIX SECTION-TITLE - OVERFLOW CRITICO
       ======================================== */
    
    /* Disabilita linee decorative che causano overflow */
    .section-title::before,
    .section-title::after {
        display: none !important;
    }

    /* ========================================
       NAVBAR
       ======================================== */
    
    #mainNav .container-fluid {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }
    
    .navbar-brand {
        padding: 0;
    }
    
    /* ========================================
       HERO SECTION
       ======================================== */
    
    .hero-section {
        min-height: 400px;
    }
    
    .hero-image {
        height: 400px;
        width: 100%;
        object-fit: cover;
    }
    
    .hero-overlay {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .hero-section h1 {
        font-size: 1.75rem;
        line-height: 1.3;
    }
    
    .hero-section .fs-4 {
        font-size: 1.125rem !important;
    }
    
    .hero-buttons {
        width: 100%;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-right: 0 !important;
        margin-bottom: 0.75rem;
    }
    
    /* ========================================
       SECTION TITLE - Fix linee decorative
       ======================================== */
    
    .section-title::before {
        width: calc(100% + 20px) !important;
        left: -10px !important;
    }
    
    .section-title::after {
        width: calc(100% + 30px) !important;
        left: -15px !important;
    }
    
    .section-title.text-start::before {
        width: calc(100% + 10px) !important;
        left: 0 !important;
    }
    
    .section-title.text-start::after {
        width: calc(100% + 15px) !important;
        left: 0 !important;
    }
    
    /* ========================================
       SECTIONS
       ======================================== */
    
    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    /* ========================================
       ABOUT SECTION
       ======================================== */
    
    .about-experience {
        padding: 1rem !important;
    }
    
    /* ========================================
       STATS
       ======================================== */
    
    .stat-item {
        padding: 1.5rem 1rem !important;
    }
    
    .stat-item h3 {
        font-size: 2rem;
    }
    
    /* ========================================
       SERVICE CARDS
       ======================================== */
    
    .service-card {
        padding: 1.5rem 1rem;
    }
    
    .service-icon {
        width: 70px !important;
        height: 70px !important;
        min-width: 70px !important;
    }
    
    .service-icon i {
        font-size: 1.75rem !important;
    }
    
    .service-item {
        margin-left: 0;
        margin-right: 0;
    }
    
    .service-item .service-text .service-icon {
        width: 100px !important;
        height: 100px !important;
        margin-top: -50px !important;
    }
    
    .service-item .service-text .service-icon i {
        font-size: 2.5rem !important;
    }
    
    /* ========================================
       CONTACT SECTION
       ======================================== */
    
    .contact-item {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-icon {
        width: 45px;
        height: 45px;
        min-width: 45px;
        font-size: 1.125rem;
        margin-right: 0;
        margin-bottom: 0.75rem;
    }
    
    /* ========================================
       FOOTER
       ======================================== */
    
    .footer {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }
    
    .footer .row > * {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }
    
    .copyright {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    /* ========================================
       BUTTONS
       ======================================== */
    
    .btn {
        padding: 0.625rem 1.25rem !important;
        font-size: 0.9rem !important;
    }
    
    .btn-lg,
    .btn.py-3 {
        padding: 0.75rem 1.5rem !important;
    }
    
    .btn-back-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 15px;
    }
    
    /* ========================================
       ACCESSIBILITY WIDGET
       ======================================== */
    
    .accessibility-widget-toggle {
        width: 50px;
        height: 50px;
        bottom: 80px;
        right: 10px;
        font-size: 1.25rem;
    }
    
    .accessibility-panel {
        width: 100%;
        max-width: 100vw;
        border-radius: 0;
    }
    
    /* ========================================
       TYPOGRAPHY
       ======================================== */
    
    .fs-4 {
        font-size: 1rem !important;
    }
    
    .fs-5 {
        font-size: 0.95rem !important;
    }
    
    .display-1 {
        font-size: 2rem !important;
    }
    
    /* ========================================
       IMMAGINI
       ======================================== */
    
    img {
        max-width: 100%;
        height: auto;
    }
}

/* ========================================
   Print Styles
   ======================================== */
@media print {
    .topbar,
    .navbar,
    .btn-back-to-top,
    .hero-buttons,
    .social-links {
        display: none !important;
    }
    
    body {
        color: #000;
        background-color: #fff;
    }
    
    a {
        color: #000;
        text-decoration: underline;
    }
}

/* ========================================
   Utility Classes
   ======================================== */
.text-primary {
    color: var(--primary-azure) !important;
}

.text-secondary {
    color: var(--secondary-teal) !important;
}

.bg-primary {
    background-color: var(--primary-azure) !important;
}

.bg-secondary {
    background-color: var(--secondary-teal) !important;
}

.bg-white {
    background-color: var(--white) !important;
}

.bg-light {
    background-color: var(--light-bg) !important;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    :root {
        --primary-azure: #0066cc;
        --secondary-teal: #008ba3;
        --accent-navy: #000033;
    }
}

/* Fix Iubenda underlined text */
.iubenda-embed span,
.iubenda-white span,
.iub-sr-only,
.iubenda-noiframe span,
a[class*="iubenda"] span {
    text-decoration: none !important;
    border-bottom: none !important;
}

/* Ensure Iubenda links don't have underlined spans */
a[href*="iubenda.com"] span {
    text-decoration: none !important;
    text-decoration-line: none !important;
    -webkit-text-decoration: none !important;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}


/* ========================================
   Enhanced Carousel Styles
   Migliora i controlli del carousel Bootstrap
   ======================================== */

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 3rem;
    background-color: var(--primary-azure);
    border: 10px solid var(--primary-azure);
}

.carousel-inner {
    border-radius: 8px;
}

/* Carousel indicators piÃ¹ visibili */
.carousel-indicators [data-bs-target] {
    background-color: var(--primary-azure);
}

/* ========================================
   Carousel Fix - VisibilitÃ  e Altezza
   ======================================== */

/* Assicura che il carousel sia visibile */
.carousel {
    position: relative;
    width: 100%;
    min-height: 300px;
}

/* Assicura che carousel-inner abbia altezza */
.carousel .carousel-inner {
    position: relative;
    width: 100%;
    overflow: hidden;
}

/* Forza la visibilitÃ  del primo item */
.carousel .carousel-item {
    position: relative;
    display: none;
    float: left;
    width: 100%;
    margin-right: -100%;
    backface-visibility: hidden;
    transition: transform 0.6s ease-in-out;
}

/* Item attivo deve essere visibile */
.carousel .carousel-item.active,
.carousel .carousel-item-next,
.carousel .carousel-item-prev {
    display: block;
}

/* Le immagini devono avere dimensioni */
.carousel .carousel-item img {
    display: block;
    width: 100%;
    height: auto;
    min-height: 250px;
    object-fit: cover;
}

/* Assicura che i controlli siano visibili */
.carousel .carousel-control-prev,
.carousel .carousel-control-next {
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* ========================================
   CSS DEL VECCHIO SITO - Header & Carousel
   ======================================== */

/*** Header ***/
.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, .1);
    z-index: 1;
}

.carousel-control-prev,
.carousel-control-next {
    width: 15%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 3rem;
    background-color: var(--primary-azure);
    border: 10px solid var(--primary-azure);
}

@media (max-width: 768px) {
    #header-carousel .carousel-item {
        position: relative;
        min-height: 450px;
    }
    
    #header-carousel .carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

/* Page Header con sfondi animati */
.page-header {
    position: relative;
    overflow: hidden;
    height: 60vh !important;
    display: flex;
    align-items: center;
}

.page-header .header-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: crossfade 10s infinite;
}

.page-header .header-bg.bg1 {
    background-image: url('/assets/img/armonia/banner-1.png');
    animation-delay: 0s;
}

.page-header .header-bg.bg2 {
    background-image: url('/assets/img/armonia/banner-2.png');
    animation-delay: 5s;
}

.page-header .header-bg_static {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.page-header .header-bg_static.bg3 {
    background-image: url('/assets/img/armonia/servizi_hero.jpg');
}

/* Effetto crossfade */
@keyframes crossfade {
    0%   { opacity: 1; }   /* visibile */
    45%  { opacity: 1; }
    50%  { opacity: 0; }   /* fade out */
    95%  { opacity: 0; }
    100% { opacity: 1; }   /* fade in */
}

/* Overlay box per contenuto hero */
.overlay-box {
    position: relative;
    z-index: 10;
}

/* ========================================
   Lightbox Custom
   ======================================== */

.lightbox {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
}

.lightbox-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

.lightbox .close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
}

.lightbox .close:hover {
    color: #ccc;
}

.lightbox .prev,
.lightbox .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    padding: 20px;
    user-select: none;
    z-index: 10001;
}

.lightbox .prev {
    left: 20px;
}

.lightbox .next {
    right: 20px;
}

.lightbox .prev:hover,
.lightbox .next:hover {
    color: #ccc;
}

/* ========================================
   Sezioni Banner Cucina e Cura - Vecchio Sito
   ======================================== */

/* Banner con Parallax */
.banner {
    position: relative;
    background-size: cover !important;
    background-position: center !important;
    background-attachment: fixed;
}

/* Overlay Box Gray (per sezione Cucina) */
.overlay-box_gray {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    padding: 2.5rem 2rem;
    text-align: left;
}

/* Overlay Box Blue (per sezione Cura) */
.overlay-box_blue {
    background: rgba(0, 119, 204, 0.15);
    backdrop-filter: blur(5px);
    border-radius: 10px;
    padding: 2rem 1.5rem;
}

/* Overlay Box Orari (per sezione Orari Visita) */
.overlay-box_orari {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    padding: 2rem 1.5rem;
}

/* Image Circle Wrapper (per immagine visite.png) */
.image-circle-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: white;
    padding: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.image-circle-wrapper img {
    max-width: 80%;
    height: auto;
    object-fit: contain;
}

/* Icon Circle - Cerchi con icone */
.icon-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--primary-azure);
    color: white;
    font-size: 3rem;
    margin: 1rem auto;
    box-shadow: 0 10px 30px rgba(0, 119, 204, 0.3);
}

/* Display 2 per titoli grandi */
.display-2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
}

/* Display 3 */
.display-3 {
    font-size: clamp(1.75rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
}

/* Font weight semi-bold */
.fw-semi-bold {
    font-weight: 600;
}

/* Responsive per sezioni banner */
@media (max-width: 991.98px) {
    .overlay-box_gray,
    .overlay-box_blue,
    .overlay-box_orari {
        padding: 1.5rem 1rem;
    }
    
    .icon-circle {
        width: 100px;
        height: 100px;
        font-size: 2.5rem;
    }
    
    .icon-circle-large {
        width: 120px;
        height: 120px;
        font-size: 3rem;
    }
    
    .image-circle-wrapper {
        width: 250px;
        height: 250px;
        padding: 15px;
    }
}

/* ========================================
   Icone Grandi Servizi
   ======================================== */
.icon-circle-large {
    font-size: 3.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: var(--secondary-teal);
    color: white;
}

/* ========================================
   Sfondo Statico Hero (bg3)
   ======================================== */
.header-bg_static {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -1;
}

.header-bg_static.bg3 {
    background: linear-gradient(135deg, var(--primary-azure), var(--secondary-teal));
    opacity: 1;
}