/* MONTSERRAT */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/montserrat-v31-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 800;
  src: url('../fonts/montserrat-v31-latin-800.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* POPPINS */

@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 300;
  src: url('../fonts/poppins-v24-latin-300.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/poppins-v24-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  src: url('../fonts/poppins-v24-latin-500.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  src: url('../fonts/poppins-v24-latin-600.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

:root {
    --primary: #002b5b;
    --accent: #c84449;
    --text: #333;
    --light: #f4f7f6;
    --white: #ffffff;
    --font-main: 'Poppins', sans-serif;
    --font-heading: 'Montserrat', sans-serif;
}

/* RESET ICONE FONT AWESOME LOCALI */
/* Usiamo l'allineamento testuale per non rompere i contenitori Flex esistenti */
.info-icon, 
.service-card i, 
.contact-info i, 
.about-icon-item i,
#backToTop {
    text-align: center;
}

/* Correzione specifica per le icone dentro i cerchi (Servizi, Contatti) */
.info-icon i, 
.service-card i, 
.contact-info i {
    display: inline-block !important; /* Torna al comportamento standard di FA */
    width: auto; /* Lascia che l'icona prenda il suo spazio */
    vertical-align: middle;
}

/* Correzione specifica per la sezione Chi Siamo */
.about-icon-item {
    display: flex !important;
    align-items: center !important;
}

.about-icon-item i {
    width: 30px !important; /* Spazio fisso per l'icona per allineare i testi */
    margin-right: 10px;
    display: inline-block !important;
}

* { margin:0; padding:0; box-sizing: border-box; }

html { 
    scroll-behavior: smooth; 
    width: 100%;
    overflow-x: hidden; /* Impedisce lo scorrimento laterale a livello radice */
}

body { 
    font-family: var(--font-main); 
    color: var(--text); 
    padding-top: 80px; 
    line-height: 1.6; 
    overflow-x: hidden; /* Protezione extra per il body */
    width: 100%;
    position: relative;
}
.container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 25px; /* Aumentato da 20px a 25px */
   
}
.section-padding { padding: 100px 0; }
.gray-bg { background: var(--light); }

/* Anchor Offset Fix */
#visita-gratuita, section[id] {
    scroll-margin-top: 80px;
}

/* Margine di atterraggio maggiorato per le sezioni principali */
.sezione-target, #richiedi-preventivo {
    scroll-margin-top: 120px !important;
	
}

/* TITOLI */
.section-title { width: 100%; text-align: center; margin-bottom: 60px; }
.section-title h2 { font-family: var(--font-heading); font-size: 2.8rem; font-weight: 800; color: var(--primary); margin: 10px auto; }
.subtitle { color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: 2px; display: block; }
.subtitle-dark { color: #555; font-weight: 600; display: block; margin-top: -10px; }
.line { width: 80px; height: 5px; background: var(--accent); margin: 20px auto; border-radius: 10px; }

/* NAVBAR & DROPDOWN */
.navbar { position: fixed; top: 0; width: 100%; background: var(--white); z-index: 9999; box-shadow: 0 2px 10px rgba(0,0,0,0.1); height: 80px; display: flex; align-items: center; }
.navbar-content { display: flex; justify-content: space-between; align-items: center; width: 100%; }

.nav-links { display: flex; gap: 20px; list-style: none; align-items: center; }
.nav-links a { color: var(--primary); font-weight: 600; text-decoration: none; transition: 0.3s; }
.nav-links a:hover { color: var(--accent); }

/* Stile per il nuovo Logo */
.logo-container {
    display: flex;
    align-items: center;
    text-decoration: none;
    height: 100%; /* Si adatta all'altezza della navbar */
}

.logo-img {
    max-height: 60px; /* Regola questa altezza in base al tuo logo */
    width: auto;      /* Mantiene le proporzioni */
    display: block;
    transition: transform 0.3s ease;
}

.logo-container:hover .logo-img {
    transform: scale(1.05); /* Effetto leggero al passaggio del mouse */
}

/* Ottimizzazione per Mobile */
@media (max-width: 768px) {
    .logo-img {
        max-height: 60px; /* Pių piccolo su smartphone */
    }
}


/* Hamburger Menu Toggle (Hidden on Desktop) */
.navbar-actions { display: flex; align-items: center; gap: 15px; }
.mobile-menu-toggle { display: none; font-size: 1.5rem; color: var(--primary); cursor: pointer; }

.btn-nav-call { background: var(--accent); color: white; padding: 10px 20px; border-radius: 5px; font-weight: 600; text-decoration: none; }

/* Nuova Logica Dropdown con sfondo Colorato */
.dropdown { position: relative; }
.dropdown-toggle i { font-size: 0.8rem; margin-left: 5px; transition: 0.3s; }
.dropdown-menu { 
    position: absolute; 
    top: 100%; 
    left: 0; 
    background: var(--primary); 
    box-shadow: 0 10px 30px rgba(0,0,0,0.2); 
    list-style: none; 
    min-width: 220px; 
    padding: 10px 0; 
    border-radius: 0 0 10px 10px; 
    opacity: 0; 
    visibility: hidden; 
    transform: translateY(15px); 
    transition: all 0.3s ease; 
}
.dropdown-menu li { width: 100%; }
.dropdown-menu li a { 
    padding: 12px 25px; 
    display: block; 
    font-size: 0.9rem; 
    font-weight: 500; 
    color: var(--white) !important; 
    transition: 0.3s;
}
.dropdown-menu li a:hover { 
    background: rgba(255, 255, 255, 0.1); 
    color: var(--accent) !important; 
    padding-left: 30px; 
}
.dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown:hover .dropdown-toggle i { transform: rotate(180deg); color: var(--accent); }

/* Nascondi la voce extra su Desktop */
.mobile-only {
    display: none;
}


/* HERO */

/* HERO - Migliorata per adattarsi al contenuto */
.hero { 
    min-height: 70vh; /* Usa 100vh per garantire copertura totale su mobile */
    position: relative; 
    display: flex; 
    align-items: center; 
    color: white; 
    background: url('../images/medlav-medicina-del-lavoro.webp') center/cover no-repeat;
    padding: 100px 0 60px 0; /* Aggiunto padding generoso sopra e sotto */
}

.hero-overlay { position: absolute; inset: 0; background: rgba(0, 43, 91, 0.75); }
.hero-content { position: relative; z-index: 2; max-width: 850px; }
.hero h1 { font-family: var(--font-heading); font-size: 3.2rem; line-height: 1.1; margin: 20px 0; font-weight: 800; }
.hero p { font-size: 1.2rem; margin-bottom: 30px; opacity: 0.9; }

.hero-btns {
    display: flex;
    gap: 15px;
    flex-wrap: wrap; /* Permette ai bottoni di andare a capo se non c'č spazio */
}

@media (max-width: 480px) {
    .hero {
        height: auto;
        min-height: 70vh; /* Assicura che la sezione copra lo schermo */
        display: flex;
        align-items: center; /* Centra il contenuto verticalmente */
		 padding: 50px 0 60px 0;
    }

    .hero h1 { 
        font-size: 1.8rem !important; /* Riduce il titolo per non spingere gių tutto */
        line-height: 1.2;
        margin: 15px 0;
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 25px;
    }

    .hero-btns { 
        flex-direction: column; /* Forza i pulsanti uno sopra l'altro */
        width: 100%;
    }

    .btn-light-accent { 
        margin-right: 0; /* Rimuove il margine laterale superfluo in colonna */
        margin-bottom: 10px; /* Aggiunge spazio tra i due bottoni */
    }
    
    .btn-primary {
        width: 100%; /* I pulsanti occupano tutta la larghezza per facilitare il click */
        padding: 12px 20px;
        font-size: 0.95rem;
    }
}

/* BOTTONI */
.btn-primary { padding: 15px 30px; border-radius: 5px; display: inline-block; font-weight: 600; text-decoration: none; transition: all 0.3s ease; border: none; cursor: pointer; }
.btn-primary:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 10px 20px rgba(0,0,0,0.2); filter: brightness(1.1); }
.btn-light-accent { background-color: var(--accent); color: white; margin-right: 15px; }
.btn-dark-blue { background-color: var(--primary); color: white; }
.btn-cta { background-color: var(--accent); color: white; box-shadow: 0 4px 15px rgba(0, 209, 178, 0.3); font-size: 1.1rem; display: inline-flex; align-items: center; gap: 10px; }

/* ABOUT BLOCKS & IMAGES */
.about-wrapper { display: flex; align-items: center; gap: 60px; flex-wrap: wrap; margin-bottom: 40px; margin-top:40px; }
.about-text { flex: 1.2; min-width: 320px; }
.about-text h3 { font-family: var(--font-heading); color: var(--primary); font-size: 1.8rem; margin-bottom: 20px; }
.about-img { flex: 0.8; min-width: 320px; }
.image-box-square { width: 100%; aspect-ratio: 1/1; border-radius: 20px; overflow: hidden; box-shadow: 20px 20px 0 var(--accent); }
.image-box-square.left-accent { box-shadow: -20px 20px 0 var(--primary); }
.image-box-square img { width: 100%; height: 100%; object-fit: cover; }

/* LISTS */
.feature-list { list-style: none; margin-top: 20px; }
.feature-list li { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px; font-weight: 500; }
.feature-list li i { color: var(--accent); margin-top: 5px; }
.custom-list li { margin-bottom: 20px; }
.custom-list strong { color: var(--primary); font-size: 1.1rem; display: inline-block; margin-bottom: 2px; }
.custom-list span { color: #666; font-size: 0.95rem; font-weight: 400; display: block; }

/* Ingrandimento icone Desktop */
.feature-list li i { 
    color: var(--accent); 
    margin-top: 5px; 
    font-size: 1.8rem; /* Aumentato da default */
    width: 40px;      /* Larghezza fissa per centrare l'icona rispetto al testo */
    display: flex;
    justify-content: center;
    flex-shrink: 0;
}

@media (max-width: 992px) {
    .custom-list li {
        display: block; /* Ritorna a blocco */
        text-align: center;
        margin-bottom: 30px;
    }

    .custom-list li i {
        display: inline-block;
        vertical-align: middle;
        margin-right: 8px; /* Spazio tra icona e titolo */
        margin-bottom: 0;
    }

    .custom-list strong {
        display: inline-block; /* Permette all'icona di stare di fianco */
        vertical-align: middle;
    }

    .custom-list span {
        display: block;
        margin-top: 5px;
    }
	
	.feature-list li i { margin-bottom:5px;}
}


/* GRID CHI SIAMO */
.about-icons-grid { display: flex; gap: 20px; margin-top: 30px; }
.about-icon-item { flex: 1; text-align: center; padding: 15px; background: #fff; border-radius: 10px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
.about-icon-item i { display: block; font-size: 2rem; color: var(--accent); margin-bottom: 10px; }
.about-icon-item span { font-size: 0.85rem; font-weight: 600; color: var(--primary); display: block; line-height: 1.2; }

/* SERVICES GRID */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 25px; }
.service-card { background: var(--white); padding: 40px; border-radius: 12px; text-align: center; box-shadow: 0 10px 30px rgba(0,0,0,0.05); transition: 0.3s; }
.service-card:hover { transform: translateY(-5px); border-bottom: 4px solid var(--accent); }
.service-icon { font-size: 35px; color: var(--accent); margin-bottom: 20px; display: block; }

/* STAFF */
.staff-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px; }
.staff-card { text-align: center; background: var(--white); padding: 30px; border-radius: 20px; box-shadow: 0 5px 20px rgba(0,0,0,0.05); transition: 0.3s; }
.staff-card:hover { transform: translateY(-10px); }
.staff-img { width: 180px; height: 180px; border-radius: 50%; overflow: hidden; margin: 0 auto 25px; border: 5px solid var(--light); background: #eee; }
.staff-img img { width: 100%; height: 100%; object-fit: cover; }
.role { display: block; color: var(--accent); font-weight: 600; text-transform: uppercase; font-size: 0.9rem; margin-bottom: 15px; }

/* --- GALLERY DESKTOP (Ripristino Ordine) --- */
.gallery-grid { 
    display: grid !important; /* Forza la griglia */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important; 
    gap: 15px !important;
    width: 100% !important;
    overflow: visible !important; /* Annulla lo scroll del mobile */
}

.gallery-item { 
    border-radius: 10px; 
    overflow: hidden; 
    height: 250px; 
    cursor: pointer; 
    background: #eee;
    flex: none !important; /* Annulla il comportamento del carousel mobile */
}

.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; display: block; }
.gallery-item:hover img { transform: scale(1.1); }

/* Nasconde controlli su Desktop */
.gallery-controls.mobile-only { display: none !important; }

/* --- GALLERY MOBILE (Isolata in Media Query) --- */
@media (max-width: 992px) {
    .gallery-grid {
        display: flex !important; /* Solo qui diventa riga */
        grid-template-columns: none !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        gap: 15px !important;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .gallery-grid::-webkit-scrollbar { display: none; }

    .gallery-item {
        flex: 0 0 85% !important; /* Dimensione carousel */
        scroll-snap-align: center;
        height: 300px;
    }

    .gallery-controls.mobile-only {
        display: flex !important;
        justify-content: center;
        gap: 15px;
        margin-top: 25px;
    }

    .gallery-controls .control-btn {
        background: var(--primary);
        color: #fff;
        border: none;
        width: 45px;
        height: 45px;
        border-radius: 50%;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* REASONS */
.reasons-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px; text-align: center; }
.reason-icon-circle { width: 70px; height: 70px; background: white; color: var(--accent); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; font-size: 1.8rem; box-shadow: 0 5px 15px rgba(0,0,0,0.1); }

/* TESTIMONIALS */
.testimonial-slider-container { position: relative; max-width: 1000px; margin: 0 auto; overflow: hidden; padding: 0px 5px; }
.testimonial-slider { display: flex; transition: transform 0.6s ease-in-out; gap: 20px; }
.testimonial-card { min-width: calc(33.333% - 14px); background: #fff; padding: 30px; border-radius: 15px; box-shadow: 0 10px 25px rgba(0,0,0,0.08); border-bottom: 4px solid var(--accent); }
.stars { color: #ffcc00; margin-bottom: 10px; }
.author { font-weight: 700; color: var(--primary); display: block; text-align: right; margin-top: 15px; }
.slider-controls { display: flex; justify-content: center; gap: 20px; margin-top: 30px; }
.control-btn { background: var(--primary); color: white; border: none; width: 45px; height: 45px; border-radius: 50%; cursor: pointer; transition: 0.3s; display: flex; align-items: center; justify-content: center; }

/* FAQ */
.faq-container { max-width: 850px; margin: 0 auto; }
details { background: white; margin-bottom: 10px; border-radius: 8px; border: 1px solid #eee; overflow: hidden; }
summary { padding: 20px; font-weight: 600; cursor: pointer; color: var(--primary); outline: none; transition: 0.3s; }
summary:hover { background: var(--light); }
.faq-content { padding: 20px; background: #fafafa; border-top: 1px solid #eee; }

/* PRENOTA */
#preventivo.section-padding {
    padding-bottom: 50px !important; /* Regola questo valore in base a quanto spazio vuoi */
}

/* NUOVA SEZIONE DOVE SIAMO */
.map-section-new { padding: 10px 0 50px; background-color: var(--light); }
.contact-grid { display: flex; justify-content: center; margin-top: 0px; }
.contact-card-large { 
    background: var(--white); 
    width: 100%; 
    max-width: 800px; 
    border-radius: 30px; 
    box-shadow: 0 30px 60px rgba(0, 43, 91, 0.15); 
    padding: 50px; 
    border-top: 8px solid var(--accent);
}
.info-block { display: flex; gap: 25px; align-items: flex-start; margin-bottom: 30px; }
.info-icon { 
    width: 60px; 
    height: 60px; 
    background: var(--light); 
    color: var(--accent); 
    border-radius: 15px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 1.5rem; 
    flex-shrink: 0;
}
.info-text h3 { font-family: var(--font-heading); color: var(--primary); font-size: 1.5rem; margin-bottom: 10px; }
.info-text p { font-size: 1.1rem; color: #555; }
.phone-highlight { font-size: 1.3rem !important; color: var(--primary) !important; margin-top: 10px; }
.card-divider { border: 0; height: 1px; background: #eee; margin-bottom: 30px; }
.hours-list { list-style: none; }
.hours-list li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed #eee; font-size: 1.05rem; }
.hours-list li:last-child { border-bottom: none; }
.hours-list li span { color: #666; }

/* PULSANTE MAPPA */
.contact-card-large a.btn-map { 
    margin-top: 40px; 
    width: 100%; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    gap: 12px; 
    font-size: 1.1rem; 
    padding: 20px;
    background-color: var(--primary);
    color: #ffffff !important; 
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
}

/* UTILITY */
#backToTop { position: fixed; bottom: 30px; right: 30px; width: 50px; height: 50px; background: var(--accent); color: white; border-radius: 50%; border: none; cursor: pointer; opacity: 0; visibility: hidden; transition: 0.3s; z-index: 1000; display: flex; align-items: center; justify-content: center; }
#backToTop.show { opacity: 1; visibility: visible; }
.footer { background: #001a38; color: white; padding: 30px 0; text-align: center; }

.footer-social {
    text-align: center;
    margin-bottom: 30px;
}

.footer-social p {
    font-family: var(--font-heading);
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--white);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-icon {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--white);
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

/* Colori al passaggio del mouse */
.social-icon.fb:hover { background: #3b5998; transform: translateY(-3px); }
.social-icon.ig:hover { background: #e1306c; transform: translateY(-3px); }
.social-icon.wa:hover { background: #25d366; transform: translateY(-3px); }

.social-icon i {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

/* LIGHTBOX */
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,0.9); z-index: 10000; display: none; align-items: center; justify-content: center; }
.lightbox.active { display: flex; }
.lightbox img { max-width: 90%; max-height: 80vh; border-radius: 5px; }
.close-lightbox { position: absolute; top: 30px; right: 40px; color: white; font-size: 50px; cursor: pointer; }

/* ANIMATIONS */
.animate-up, .animate-left, .animate-right { opacity: 0; transition: 0.8s ease-out; }
.is-visible { opacity: 1 !important; transform: translate(0, 0) !important; }
.animate-up { transform: translateY(40px); }
.animate-left { transform: translateX(-40px); }
.animate-right { transform: translateX(40px); }

/* MEDIA QUERIES */
@media (max-width: 992px) {
    .testimonial-card { min-width: calc(50% - 10px); }
    .hero h1 { font-size: 2.5rem; }
    .hero-btns { display: flex; flex-direction: column; gap: 15px; }
    .hero-btns .btn-primary { margin-right: 0 !important; width: 100%; text-align: center; }
    
    /* HAMBURGER MENU LOGIC */
    .mobile-menu-toggle { display: block; }
    
    .nav-links { 
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--white);
        flex-direction: column;
        align-items: flex-start;
        padding: 40px;
        gap: 0;
        transition: 0.4s ease-in-out;
        overflow-y: auto;
        box-shadow: 10px 0 20px rgba(0,0,0,0.1);
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        width: 100%;
        border-bottom: 1px solid #eee;
    }

    .nav-links li a {
        display: block;
        padding: 20px 0;
        font-size: 1.2rem;
    }

    /* Dropdown su Mobile */
    .dropdown-menu { 
        position: static; 
        opacity: 1; 
        visibility: visible; 
        transform: none; 
        box-shadow: none; 
        padding-left: 20px; 
        border-radius: 0; 
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
        background: transparent;
    }

    .dropdown.active-dropdown .dropdown-menu {
        max-height: 500px;
        padding-bottom: 20px;
    }

    .dropdown-menu li a { 
        color: var(--primary) !important; 
        padding: 10px 0;
    }
    
    .dropdown.active-dropdown .dropdown-toggle i {
        transform: rotate(180deg);
    }
	
	/* Il contenitore che raggruppa testo e immagine */
    .about-content { 
        display: flex;
        flex-direction: column; 
        align-items: center;
        text-align: center;
        width: 100%;
        
        /* INCREMENTO PADDING LATERALE */
        /* Usiamo 45px per assorbire la sporgenza dei bordi colorati */
        padding-left: 45px !important;
        padding-right: 45px !important;
        gap: 40px; /* Spazio tra testo e immagine quando sono impilati */
    }

    .about-image {
        width: 100%;
        max-width: 100%;
        margin: 0 auto !important;
        position: relative; /* Mantiene i bordi ::before/::after ancorati all'immagine */
    }

    .about-text {
        width: 100%;
        padding: 0 !important; /* Il padding lo gestisce il padre .about-content */
    }
	
	.mobile-only {
        display: block;
        border-bottom: 1px solid rgba(0,0,0,0.05); /* Opzionale: un separatore leggero */
    }
    
    .mobile-only a {
        font-weight: 600; /* Per evidenziarla leggermente */
        color: var(--primary);
    }
	
	
/* LOGICA PER IMMAGINE SOPRA E TESTO SOTTO IN TUTTI I BLOCCHI */

    .about-wrapper {
        display: flex !important;
        flex-direction: column !important; /* Incolonna gli elementi */
        gap: 20px !important; /* Spazio tra immagine e suo testo */
        margin-top: 60px !important; /* Spazio tra i grandi blocchi */
        width: 100% !important;
    }

    /* Forza l'ordine: l'immagine sale sempre al primo posto */
    .about-img {
        order: 1 !important; 
        width: 100% !important;
        margin-bottom: 40px !important;
    }

    /* Forza l'ordine: il testo scende sempre al secondo posto */
    .about-text {
        order: 2 !important;
        width: 100% !important;
    }

    /* Rimuoviamo eventuali inversioni precedenti per evitare conflitti */
    #chi-siamo .about-wrapper:nth-of-type(1),
    #chi-siamo .about-wrapper:nth-of-type(2),
    #chi-siamo .about-wrapper:nth-of-type(3) {
        flex-direction: column !important;
    }
	
	
	#prenota.section-padding {
    padding-bottom: 20px !important; /* Regola questo valore in base a quanto spazio vuoi */
}
}

@media (max-width: 768px) {
    .testimonial-card { min-width: 100%; }
    .about-wrapper { flex-direction: column-reverse; text-align: center; }
    .contact-card-large { padding: 30px; }
    .info-block { flex-direction: column; align-items: center; text-align: center; }
    .btn-nav-call { display: none; } /* Opzionale: nasconde il numero per far spazio all'hamburger su schermi molto piccoli */
	.service-card, .contact-form {
        padding: 30px 15px; /* Ridotto il padding interno */
    }

    /* Assicura che la sezione intera rispetti i margini */
    .section-padding { 
        padding: 60px 0; 
    }	

}

/* OTTIMIZZAZIONE SPECIFICA SMARTPHONE (Sotto i 500px) */
@media (max-width: 520px) {
    .section-title h2 {
        font-size: 2.20rem !important; /* Dimensione equilibrata per titoli lunghi */
        line-height: 1.2;
        padding: 0 5px; /* Evita che il testo tocchi i bordi */
    }

    .section-padding {
        padding: 60px 0; /* Riduce lo spazio vuoto eccessivo su schermi piccoli */
    }
	
	.about-text h3 { font-size: 1.80rem; line-height: 1.2; margin-bottom: 20px; }

    .hero h1 {
        font-size: 2.1rem !important; /* Ottimizza anche il titolo principale della Hero */
    }
	
/* 1. Trasformiamo la griglia in una colonna singola */
    .about-icons-grid {
        display: flex !important;
        flex-direction: column !important; /* Mette le icone una sotto l'altra */
        gap: 15px !important;
        width: 100% !important;
        margin-top: 25px !important;
        align-items: flex-start !important; /* Allinea a sinistra come il testo sopra */
    }

    /* 2. Sistemiamo il singolo item (Icona + Testo) */
    .about-icon-item {
        display: flex !important;
        flex-direction: row !important; /* Mantiene icona a sinistra e testo a destra */
        align-items: center !important;
        width: 100% !important;
        gap: 15px !important;
        /* Rimuoviamo eventuali float o larghezze fisse */
        flex: none !important;
    }

    /* 3. Evitiamo che il testo vada fuori o si tagli */
    .about-icon-item span {
        font-size: 1rem !important;
        line-height: 1.2 !important;
        white-space: normal !important; /* Permette al testo di andare a capo */
        text-align: left !important;
    }

    /* 4. Riduciamo leggermente l'icona per dare spazio al testo */
    .about-icon-item i {
        font-size: 1.2rem !important;
        min-width: 30px !important; /* Spazio fisso per l'icona */
    }
	
	/* Risolvere testo tagliato a destra*/
.about-text {
        width: 100% !important;
        padding: 0 30px 0 0 !important; /* Crea il respiro laterale che manca */
        box-sizing: border-box !important;
    }
.about-img {
        width: 100% !important;
        padding: 0 30px 0 5px !important; /* Crea il respiro laterale che manca */
        box-sizing: border-box !important;
    }
}
