:root {
    /* === PALETTE PRIMARIA === */
    --alife-primary: rgb(241, 126, 24);        /* Orange */
    --alife-primary-text: #b85500;             /* Orange scuro per testo su sfondo chiaro (contrasto 4,5:1) */
    --alife-secondary: rgb(118, 120, 237);     /* Purple */
    --alife-accent: rgb(247, 184, 1);          /* Yellow */
    --alife-dark: rgb(65, 36, 196);            /* Deep Purple */
    --alife-white: rgb(255, 255, 255);
    --alife-dark-bg: rgb(11, 19, 43);          /* Dark Background */
    --text-grey: #666;
    --border-color: #eee;
    
    /* === TYPOGRAPHY === */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Niramit', sans-serif;
    
    /* === LAYOUT === */
    --container-max-width: 1320px;
    --section-padding: 120px 0;
    --topbar-height: 50px;
    --navbar-height: 80px;

    /* === NEW VARIABLES FROM REFERENCE === */
    --spacing-topbar-height: 50px;
    --spacing-nav-height: 160px;
    --spacing-hero-min-height: 450px;
    --radius-hero-desktop: 150px;
    --radius-hero-mobile: 50px;
    --color-topbar-bg: rgba(20, 20, 22, 0.70);
    --color-topbar-text: rgb(255, 255, 255);
    --color-text-dark: rgb(25, 29, 42);
    --color-text-light: rgb(255, 255, 255);
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-bold: 700;
    --transition-normal: 0.3s ease;
    --transition-fast: 0.2s ease;
    --spacing-container-padding-desktop: 40px;
    --spacing-container-padding-tablet: 30px;
    --spacing-container-padding-mobile: 30px;
    --z-index-navigation: 10001;
    --z-index-topbar: 10002;
    --font-primary: 'Roboto', Helvetica, Arial, sans-serif; /* Adjusted to use loaded font or fallback */
}

/* Reset & Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--spacing-topbar-height) + var(--spacing-nav-height)); /* Global smooth scroll and padding offset */
}

body {
    font-family: var(--font-body);
    color: var(--alife-dark-bg);
    line-height: 1.6;
    background-color: var(--alife-white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Utilities */
.section-padding {
    padding: var(--section-padding);
}

.btn {
    display: inline-block;
    padding: 14px 35px;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 14px;
    cursor: pointer;
    border: none;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--alife-primary);
    color: white;
}

.btn-primary:hover {
    background-color: #d66b10;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(241, 126, 24, 0.3);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--alife-white);
    color: var(--alife-white);
}

.btn-secondary:hover {
    background-color: var(--alife-white);
    color: var(--alife-dark-bg);
}

/* === TOPBAR SECTION === */
.top-bar {
    display: flex;
    justify-content: center; /* Ensure centering */
    position: relative;
    width: 100%;
    height: var(--spacing-topbar-height);
    padding: 10px 0;
    background-color: var(--color-topbar-bg);
    font-size: 13px;
    font-weight: var(--font-weight-light);
    line-height: 22.4px;
    color: var(--color-topbar-text);
    z-index: var(--z-index-topbar);
    transition: all var(--transition-normal);
}

.top-bar.is-hidden {
    margin-top: calc(var(--spacing-topbar-height) * -1);
    opacity: 0;
    pointer-events: none;
}

.top-bar__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-container-padding-desktop);
    text-align: center;
}

.top-bar__left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.top-bar__contact {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: var(--font-weight-light);
    opacity: 0.9;
    color: var(--color-topbar-text);
    text-decoration: none;
    transition: opacity var(--transition-fast);
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.top-bar__contact:hover { opacity: 1; }

.top-bar__contact i { font-size: 14px; }

.top-bar__separator {
    display: inline-block;
    width: 1px;
    height: 14px;
    background-color: rgba(255, 255, 255, 0.3);
    margin: 0 4px;
}

.top-bar__right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.top-bar__social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: var(--color-text-light);
    font-size: 14px;
    border-radius: 50%;
    transition: all var(--transition-fast);
    opacity: 0.8;
}

.top-bar__social:hover {
    opacity: 1;
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* === LANG TOGGLE === */
.lang-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: 8px;
    border-left: 1px solid rgba(255,255,255,0.2);
    padding-left: 12px;
}

.lang-toggle__btn {
    background: none;
    border: none;
    color: rgba(255,255,255,0.55);
    font-family: 'Niramit', sans-serif;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    padding: 2px 4px;
    letter-spacing: 0.5px;
    transition: color 0.2s;
    line-height: 1;
}

.lang-toggle__btn:hover {
    color: rgba(255,255,255,0.9);
}

.lang-toggle__btn--active {
    color: #f17e18;
    font-weight: 700;
}

.lang-toggle__sep {
    color: rgba(255,255,255,0.25);
    font-size: 11px;
    user-select: none;
}

@media (max-width: 768px) {
    .lang-toggle {
        margin-left: 4px;
        padding-left: 8px;
        gap: 2px;
    }
    .lang-toggle__btn {
        font-size: 11px;
    }
}

/* Lang toggle nella navbar: base nascosto, appare quando topbar non è visibile */
.nav-bar__lang-mobile {
    display: none;
    align-items: center;
    gap: 2px;
    margin-right: 8px;
    border-right: 1px solid rgba(255,255,255,0.2);
    padding-right: 10px;
}
.nav-bar__lang-mobile .lang-toggle__btn {
    font-size: 11px;
    color: rgba(255,255,255,0.55);
}
.nav-bar__lang-mobile .lang-toggle__btn--active {
    color: #f17e18;
    font-weight: 700;
}
.nav-bar__lang-mobile .lang-toggle__sep {
    color: rgba(255,255,255,0.25);
    font-size: 11px;
}
/* Mobile: topbar non visibile, mostra sempre il toggle in navbar */
@media (max-width: 768px) {
    .nav-bar__lang-mobile {
        display: flex;
    }
}
/* Desktop: mostra solo quando la topbar è scrollata via */
@media (min-width: 769px) {
    body.nav-is-sticky .nav-bar__lang-mobile {
        display: flex;
    }
}

/* === NAVIGATION SECTION === */
#navigation {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: var(--z-index-navigation);
    background-color: transparent;
}

.nav-bar {
    display: flex;
    flex-direction: column;
    width: 100%;
    background-color: transparent;
    position: relative;
}

.nav-bar__content {
    display: flex;
    justify-content: center; /* Ensure centering */
    width: 100%;
    padding: 30px 0;
    background: linear-gradient(to bottom, rgba(20, 20, 22, 0.70) 0%, rgba(20, 20, 22, 0.70) 66%, rgba(20, 20, 22, 0) 100%);
    transition: all var(--transition-normal);
}

.nav-bar.is-sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background-color: var(--alife-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: var(--z-index-navigation);
}

/* === AMATEUR NOTICE POPUP (scroll-triggered) ===
   Ancorato sotto al logo, dentro l'altezza della navbar (non sovrappone
   il contenuto della pagina). .nav-bar__content guadagna padding-bottom
   extra via .nav-bar--notice-visible mentre il banner è mostrato. */
.amateur-notice {
    position: absolute;
    top: 100%;
    left: 0;
    transform: translateY(-6px);
    margin-top: 6px;
    padding: 5px 14px;
    background-color: var(--alife-primary);
    color: var(--alife-white);
    font-size: 0.88rem;
    font-weight: 600;
    white-space: nowrap;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    z-index: calc(var(--z-index-navigation) + 1);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.32s ease, transform 0.32s ease;
}

.amateur-notice--visible {
    opacity: 1;
    transform: translateY(0);
}

.nav-bar--notice-visible .nav-bar__content {
    padding-bottom: 32px;
}

@media (max-width: 768px) {
    .amateur-notice {
        font-size: 0.78rem;
        padding: 4px 10px;
        white-space: normal;
        max-width: 70vw;
    }
}

.nav-bar.is-sticky .nav-bar__content {
    background: var(--alife-white);
    padding: 15px 0;
}

.nav-bar.is-sticky .nav-bar__logo,
.nav-bar.is-sticky .nav-bar__menu-link {
    color: var(--color-text-dark) !important;
    text-shadow: none;
}

.nav-bar.is-sticky .lang-toggle__btn {
    color: rgba(0,0,0,0.55) !important;
}
.nav-bar.is-sticky .lang-toggle__btn:hover {
    color: rgba(0,0,0,0.9) !important;
}
.nav-bar.is-sticky .lang-toggle__btn--active {
    color: var(--alife-primary) !important;
}
.nav-bar.is-sticky .lang-toggle__sep {
    color: rgba(0,0,0,0.25) !important;
}

/* Pagine interne (no hero): navbar sempre con testo scuro leggibile */
body.inner-page .nav-bar__content {
    background: var(--alife-white);
}

body.inner-page .nav-bar__logo,
body.inner-page .nav-bar__menu-link {
    color: var(--color-text-dark);
    text-shadow: none;
}

body.inner-page .nav-bar__menu-link:hover {
    color: var(--alife-primary);
    opacity: 1;
}

body.inner-page .nav-bar__hamburger-line {
    background-color: var(--color-text-dark);
}

.nav-bar__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-container-padding-desktop);
}

.nav-bar__logo {
    font-size: 24px;
    font-weight: var(--font-weight-bold);
    color: var(--alife-white) !important;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: opacity var(--transition-fast);
    text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}

.nav-bar__logo:hover { opacity: 0.8; }


.nav-bar__menu {
    display: flex;
    align-items: center;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-bar__menu-link {
    font-size: 16px;
    font-weight: var(--font-weight-light);
    color: var(--alife-white) !important;
    text-decoration: none;
    padding: 8px 0;
    transition: color var(--transition-fast);
    display: inline-block;
    position: relative;
    text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}

.nav-bar__menu-link:hover { color: rgba(255, 255, 255, 0.8); }

.nav-bar__menu-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--alife-white);
    transition: width var(--transition-fast);
}

.nav-bar__menu-link:hover::after { width: 100%; }

/* ==========================================
   MOBILE MENU - GESTITO DA mobile-menu.css
   ========================================== */
   /* NOTA: Le regole per il menu mobile sono state spostate in mobile-menu.css
      per evitare conflitti e duplicazioni */

/* === HERO SECTION === */
#hero {
    display: flex;
    position: relative;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: var(--spacing-hero-min-height);
    padding: 80px 0 60px;
    border-radius: 0 0 var(--radius-hero-desktop) 0;
    overflow: hidden;
    color: rgb(255, 255, 255);
    font-family: var(--font-primary);
    box-sizing: border-box;
}

.hero__background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 1;
    border-radius: inherit;
}


.hero__container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-container-padding-desktop);
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero__title {
    font-family: var(--font-primary);
    font-size: 88px;
    font-weight: 300;
    color: rgb(255, 255, 255);
    line-height: 110.88px;
    letter-spacing: normal;
    margin-bottom: 20px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.7), 0 2px 12px rgba(0,0,0,0.4);
}

.hero__subtitle {
    font-family: var(--font-primary);
    font-size: 24px;
    font-weight: 400;
    color: rgb(255, 255, 255);
    line-height: 36px;
    max-width: 700px;
    margin-bottom: 40px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.7), 0 2px 12px rgba(0,0,0,0.4);
}

.hero__tag {
    text-shadow: 0 1px 3px rgba(0,0,0,0.7), 0 2px 12px rgba(0,0,0,0.4);
}

.hero__button,
.hero__map-btn {
    text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}

.hero__buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.hero__button {
    font-size: 16px;
    font-weight: 400;
    text-decoration: none;
    text-align: center;
    letter-spacing: normal;
    text-transform: none;
    padding: 15px 40px;
    border-radius: 30px;
    transition: all var(--transition-normal);
    display: inline-block;
}

.hero__button--primary {
    background-color: rgb(185, 85, 0);
    color: rgb(255, 255, 255);
    border: none;
}

.hero__button--primary:hover {
    background-color: rgb(220, 110, 10);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(241, 126, 24, 0.4);
}

.hero__button--secondary {
    background-color: rgba(255, 255, 255, 0.15);
    color: rgb(255, 255, 255);
    border: 2px solid rgba(255, 255, 255, 0.9);
}

.hero__button--secondary:hover {
    background-color: rgb(255, 255, 255);
    color: rgb(17, 18, 25);
}

.hero__button--map {
    background-color: rgb(15, 118, 110);
    color: rgb(255, 255, 255);
    border: 1px solid rgba(255, 255, 255, 0.4);
    text-shadow: none;
}


#open-map-btn .fa-map-marked-alt,
#open-map-btn-mobile .fa-map-marked-alt {
    color: rgb(15, 118, 110);
}

.hero__button--map:hover {
    background-color: rgb(20, 148, 138);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(15, 118, 110, 0.4);
}

.hero__map-link {
    margin-top: 16px;
}

.hero__map-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
    padding: 0;
    transition: color 0.2s ease;
}

.hero__map-btn:hover {
    color: rgb(255, 255, 255);
}

/* === FLOATING FEATURES === */
.floating-features {
    margin-top: -130px; /* Increased overlap towards original -150px */
    position: relative;
    z-index: 10;
    margin-bottom: 60px;
}

.floating-card {
    border-radius: 20px !important;
}

.floating-card .feature-icon i {
    color: var(--alife-primary) !important; /* Ensure primary color */
}

/* === SECTIONS GENERAL === */
.bg-light {
    background-color: #f9f9f9;
}

.text-center { text-align: center; }
.mb-5 { margin-bottom: 3rem; }

/* Grid System Semplice */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

/* === FEATURES SECTION === */
.feature-item img {
    height: 250px;
    object-fit: cover;
    width: 100%;
}

.font-weight-bold {
    font-weight: 700;
}

/* === UTILITIES & IMAGES === */
/* Bootstrap handles img-fluid, rounded, shadow. 
   Custom overrides below if needed. */

/* ========================================
   ABOUT SECTION - PIXEL PERFECT 1:1
   ======================================== */

.about {
    padding: 45px 20px;
    background-color: transparent;
}

.about__container {
    display: flex;
    flex-direction: row;
    gap: 24px;
    align-items: center;
    max-width: var(--container-max-width);
    margin: 0 auto;
}

.about__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
}

.about__heading {
    font-size: 40px;
    font-weight: 700;
    color: rgb(11, 19, 43);
    line-height: 45.72px;
    text-transform: none;
    margin: 0 0 10px 0;
}

.about__subtitle {
    font-size: 19.2px;
    font-weight: 500;
    color: rgb(11, 19, 43);
    line-height: 26.88px;
    margin: 0 0 15px 0;
}

.about__text {
    font-size: 16px;
    font-weight: 300;
    color: rgb(11, 19, 43);
    line-height: 25.6px;
    margin: 0;
}

/* About Highlights - Mini cards */
.about__highlights {
    display: flex;
    gap: 20px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.about__highlight-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    background: #fff;
    border-radius: 25px;
    border: 2px solid rgb(241, 126, 24);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-decoration: none;
    cursor: pointer;
}

.about__highlight-item i {
    font-size: 1.2rem;
    color: rgb(241, 126, 24);
}

.about__highlight-item span {
    font-size: 0.95rem;
    font-weight: 600;
    color: rgb(65, 36, 196);
}

.about__highlight-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(241, 126, 24, 0.3);
    background: rgb(241, 126, 24);
}

.about__highlight-item:hover i,
.about__highlight-item:hover span {
    color: #fff;
}

.about__button {
    display: inline-block;
    background-color: var(--alife-secondary);
    color: #fff;
    font-family: var(--font-heading);
    font-size: 14px; /* Reduced to match original */
    font-weight: 700;
    line-height: 1.5;
    padding: 12px 30px; /* Reduced padding */
    border-radius: 30px; /* Matching Hero button radius */
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 35px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(118, 120, 237, 0.3);
}

.about__button:hover {
    background-color: var(--alife-dark);
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(118, 120, 237, 0.4);
    color: #fff;
}

.about__image-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Griglia verticale 1+3 per le immagini */
.about__image-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 450px;
}

.about__grid-link {
    display: block;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.about__grid-link:hover {
    transform: scale(1.02);
}

.about__grid-image {
    width: 100%;
    display: block;
    object-fit: cover;
    border-radius: 12px;
}

/* Immagine principale (anfiteatro) */
.about__grid-image--main {
    height: 250px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Container miniature */
.about__grid-thumbnails {
    display: flex;
    gap: 10px;
}

/* Miniature */
.about__grid-image--thumb {
    width: 100%;
    height: 80px;
    flex: 1;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.about__grid-image--thumb:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.about__image {
    width: 100%;
    max-width: 664px;
    height: auto;
    border-radius: 20px;
    display: block;
    object-fit: cover;
}

/* Responsive About - Tablet (layout verticale compatto) */
@media (max-width: 1199px) {
    .about {
        padding: 50px 20px;
    }
    .about__container {
        flex-direction: column;
        gap: 30px;
    }
    .about__content {
        gap: 15px;
        width: 100%;
        align-items: center;
        text-align: center;
    }
    .about__heading {
        font-size: 32px;
        line-height: 38px;
    }
    .about__subtitle {
        font-size: 16px;
        line-height: 22px;
    }
    .about__text {
        font-size: 15px;
        line-height: 24px;
        max-width: 600px;
    }
    .about__highlights {
        gap: 15px;
        margin-top: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }
    .about__highlight-item {
        padding: 12px 20px;
        min-width: 120px;
        justify-content: center;
    }
    .about__highlight-item i {
        font-size: 1.3rem;
    }
    .about__highlight-item span {
        font-size: 0.95rem;
    }
    .about__button {
        margin-top: 25px;
        align-self: center;
    }
    .about__image-wrapper {
        width: 100%;
    }
    .about__image-grid {
        max-width: 500px;
        margin: 0 auto;
    }
    .about__grid-image--main {
        height: 220px;
    }
    .about__grid-image--thumb {
        height: 75px;
    }
}

@media (max-width: 767px) {
    .about { padding: 50px 20px; }
    .about__container { flex-direction: column; gap: 30px; }
    .about__content { order: 1; }
    .about__image-wrapper { order: 2; width: 100%; }
    .about__heading {
        font-size: 28px;
        line-height: 34px;
    }
    .about__subtitle {
        font-size: 16px;
        line-height: 22px;
    }
    .about__text {
        font-size: 14px;
        line-height: 22px;
    }
    .about__highlights {
        flex-direction: column;
        gap: 10px;
    }
    .about__highlight-item {
        justify-content: center;
    }
    .about__image { border-radius: 15px; }
    .about__image-grid {
        max-width: 100%;
        gap: 10px;
    }
    .about__grid-image--main {
        height: 200px;
    }
    .about__grid-image--thumb {
        height: 65px;
    }
    .about__grid-thumbnails {
        gap: 8px;
    }
}
/* ========================================
   FEATURES SECTION - PIXEL PERFECT 1:1
   ======================================== */

.features {
    position: relative;
    padding: 90px 20px 0 20px;
    background-color: transparent;
}

.features__container {
    max-width: 1232px;
    margin: -150px auto 0; /* Negative margin for overlap */
    padding: 36px;
    background-color: rgb(255, 255, 255);
    border-radius: 40px;
    box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 50px 0px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 36px;
    position: relative;
    z-index: 10;
}

.features__card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
    margin: 0;
    background-color: transparent;
}

.features__icon {
    width: 30px;
    height: 30px;
    margin-bottom: 15px;
    display: block;
}

.features__heading {
    font-size: 22.4px;
    font-weight: 700;
    color: rgb(11, 19, 43);
    line-height: 31.36px;
    text-transform: capitalize;
    margin: 0;
    width: 100%;
}

.features__card:nth-child(4) .features__heading {
    text-transform: none; /* Exception for Drag and Drop */
}

.features__description {
    font-size: 16px;
    font-weight: 400;
    color: rgb(102, 102, 102);
    line-height: 25.6px;
    margin: 15px 0 0 0;
}

/* Responsive Features */
@media (max-width: 1023px) {
    .features__container {
        grid-template-columns: repeat(2, 1fr);
        padding: 30px;
        margin-top: -100px;
    }
}

@media (max-width: 767px) {
    .features__container {
        grid-template-columns: 1fr;
        padding: 20px;
        margin-top: -50px;
        border-radius: 20px;
    }
    
    .features__card {
        align-items: center;
        text-align: center;
    }
    
    .features__heading {
        text-align: center;
    }
}
.feature-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.feature-list li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.feature-list li i {
    color: var(--alife-primary);
    margin-right: 10px;
}

/* ========================================
   CARDS GRID SECTION
   ======================================== */
.cards-grid {
    padding: 60px 0;
    background-color: #fff;
}

.cards-grid__container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.cards-grid__heading {
    text-align: center;
    font-size: 36px;
    margin-bottom: 20px;
    color: var(--alife-dark-bg);
}

/* === GALLERY SECTION === */
/* Override default modern-image height to allow expansion */
.gallery-container.modern-image {
    height: auto !important;
    display: flex;
    flex-direction: column;
    gap: 15px; /* Space between main image and thumbnails */
}

/* Maintain the original look for the main image */
.gallery-container .gallery-main {
    width: 100%;
    height: 400px !important; /* Force fixed height to override portfolio.css */
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    flex: none; /* Disable flex shrinking/growing from portfolio.css */
}

.gallery-container .gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensure image fills the box without distorting or changing box size */
    object-position: center;
    transition: opacity 0.3s ease;
}

/* Thumbnails Container - Horizontal Scroll */
.gallery-thumbnails {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 5px; /* Space for scrollbar */
    scrollbar-width: thin; /* Firefox */
    scrollbar-color: var(--alife-primary) #eee;
    justify-content: flex-start; /* Align left for scrolling */
    width: 100%;
}

/* Custom Scrollbar for Webkit */
.gallery-thumbnails::-webkit-scrollbar {
    height: 6px;
}
.gallery-thumbnails::-webkit-scrollbar-track {
    background: #eee;
    border-radius: 3px;
}
.gallery-thumbnails::-webkit-scrollbar-thumb {
    background-color: var(--alife-primary);
    border-radius: 3px;
}

.gallery-thumbnail {
    flex: 0 0 90px; /* 90px width */
    height: 100px; /* 100px height */
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    opacity: 0.7;
}

.gallery-thumbnail:hover,
.gallery-thumbnail.active {
    opacity: 1;
    border-color: var(--alife-primary);
    transform: translateY(-2px);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .gallery-container .gallery-main {
        height: 300px !important; /* Match mobile modern-image height */
    }
    
    .gallery-thumbnail {
        flex: 0 0 80px;
        height: 60px;
    }
}

/* Lightbox Styles */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
}

.lightbox-image {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 4px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.5);
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.lightbox-close:hover {
    color: var(--alife-primary);
}

.lightbox-caption {
    color: #fff;
    text-align: center;
    margin-top: 10px;
    font-family: var(--font-body);
}

.cards-grid__subtitle {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
    color: var(--text-grey);
}

.cards-grid__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.cards-grid__card {
    background: #fff;
    padding: 30px 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    text-align: center;
}

.cards-grid__card:hover {
    transform: translateY(-5px);
}

.cards-grid__image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.cards-grid__card-heading {
    font-size: 22px;
    margin: 15px 0 10px;
    color: var(--alife-dark-bg);
}

.cards-grid__card-text {
    font-size: 16px;
    color: var(--text-grey);
    margin-bottom: 20px;
    line-height: 1.6;
}

.cards-grid__card-link {
    color: rgb(185, 85, 0);
    font-weight: 700;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cards-grid__card-link:hover {
    gap: 10px;
}

/* Virtual Tour icon styling */
.cards-grid__card-link .fa-vr-cardboard {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.cards-grid__card-link:hover .fa-vr-cardboard {
    transform: rotate(15deg) scale(1.1);
}

/* ========================================
   ALTERNATE SECTION (Dynamic Design / Collab Hub)
   ======================================== */
.alternate {
    padding: 60px 0;
    background-color: #fff;
}

.alternate--gray-bg {
    background-color: #f8f9fa;
}

.alternate__container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 80px;
}

.alternate--image-right .alternate__container {
    flex-direction: row-reverse;
}

.alternate__image-wrapper {
    flex: 1;
}

.alternate__image {
    width: 100%;
    height: 400px; /* Fixed height for consistency */
    object-fit: cover; /* Maintain aspect ratio */
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}

.alternate__content {
    flex: 1;
}

.alternate__heading {
    font-size: 42px;
    margin-bottom: 20px;
    color: var(--alife-dark-bg);
    line-height: 1.3;
}

.alternate__subtitle {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 20px;
    color: rgb(185, 85, 0);
    display: block;
}

.alternate__text {
    color: var(--text-grey);
    margin-bottom: 30px;
    line-height: 1.8;
    font-size: 16px;
}

.alternate__link {
    display: inline-flex;
    align-items: center;
    padding: 14px 35px;
    background-color: var(--alife-dark-bg);
    color: white;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.alternate__link:hover {
    background-color: var(--alife-primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(241, 126, 24, 0.3);
}

.alternate__link i {
    margin-left: 10px;
}

/* ========================================
   WHY CHOOSE US SECTION
   ======================================== */
.why-choose-us {
    padding: 60px 0;
    background-color: #fff;
}

.why-choose-us__container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.why-choose-us__heading {
    text-align: center;
    font-size: 36px;
    margin-bottom: 20px;
    color: var(--alife-dark-bg);
}

.why-choose-us__subtitle {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
    color: var(--text-grey);
}

.why-choose-us__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.why-choose-us__column {
    text-align: center;
    padding: 40px 30px;
    border-radius: 10px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

/* Clickable column variant */
.why-choose-us__column--link {
    text-decoration: none;
    display: block;
    cursor: pointer;
}

.why-choose-us__column:hover {
    border-color: #eee;
    box-shadow: 0 15px 40px rgba(0,0,0,0.05);
    transform: translateY(-5px);
}

.why-choose-us__column--link:hover {
    border-color: var(--alife-primary);
    box-shadow: 0 15px 50px rgba(241, 126, 24, 0.15);
}

.why-choose-us__icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(241, 126, 24, 0.1);
    color: var(--alife-primary);
    border-radius: 50%;
    transition: all 0.3s ease;
    font-size: 36px;
}

.why-choose-us__column:hover .why-choose-us__icon {
    background-color: var(--alife-primary);
    color: white;
}

.why-choose-us__icon svg {
    width: 40px;
    height: 40px;
    fill: currentColor;
}

/* CTA for clickable columns */
.why-choose-us__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    color: var(--alife-primary);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.why-choose-us__column--link:hover .why-choose-us__cta {
    color: var(--alife-dark);
    gap: 12px;
}

.why-choose-us__column-heading {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--alife-dark-bg);
    line-height: 1.4;
}

.why-choose-us__column-text {
    color: var(--text-grey);
    font-size: 16px;
    line-height: 1.7;
}

/* ========================================
   RESPONSIVE (Cards, Alternate, Why Choose Us)
   ======================================== */
@media (max-width: 1023px) {
    /* Grids to 2 columns */
    .cards-grid__grid,
    .why-choose-us__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    /* Alternate: Stack Vertical */
    .alternate__container {
        flex-direction: column;
        gap: 50px;
        text-align: center;
    }
    
    .alternate--image-right .alternate__container {
        flex-direction: column;
    }

    .alternate__subtitle {
        margin: 0 auto 20px;
    }

    .alternate__image-wrapper {
        width: 100%;
        max-width: 600px;
    }
}

@media (max-width: 767px) {
    /* Grids to 1 column */
    .cards-grid__grid,
    .why-choose-us__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .cards-grid__heading,
    .why-choose-us__heading,
    .alternate__heading {
        font-size: 30px;
    }
    
    .alternate {
        padding: 60px 0;
    }

    .alternate__image {
        height: 300px;
    }
    
    .cards-grid, .why-choose-us {
        padding: 60px 0;
    }
}

/* === PORTFOLIO SECTION === */
/* Bootstrap handles col-md-4 and margins. */

.portfolio-img {
    width: 100%;
    height: 300px; /* Fixed height for uniformity */
    object-fit: cover; /* Crop to fit */
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.portfolio-img:hover {
    transform: translateY(-5px);
}

.project-card {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.project-card img {
    width: 100%;
    display: block;
    transition: transform 0.5s ease;
}

.project-card:hover img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 19, 43, 0.8); /* Dark overlay based on palette */
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

/* === COUNTERS SECTION === */
.counters-section {
    background-color: var(--alife-dark-bg);
    color: white;
    background-image: linear-gradient(rgba(11, 19, 43, 0.9), rgba(11, 19, 43, 0.9)), url('../images/hero-bg.webp');
    background-size: cover;
    background-attachment: fixed; /* Parallax effect */
}

.counter-item i {
    font-size: 40px;
    color: var(--alife-primary);
    margin-bottom: 15px;
}

.counter-item h3 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 5px;
}

.col-6 {
    width: 50%; /* Per mobile */
}

/* === CALL TO ACTION === */
.bg-primary {
    background-color: var(--alife-primary);
}

.text-white { color: white; }

/* === STANDARDIZED FOOTER === */
.site-footer {
    background-color: #111;
    color: #ccc;
    padding: 80px 0 0;
    font-family: var(--font-body);
    position: relative;
    z-index: 1; /* Footer sotto al menu mobile */
}

.site-footer__container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-container-padding-desktop);
}

@media (max-width: 1023px) {
    .site-footer__container {
        padding: 0 var(--spacing-container-padding-tablet);
    }
}

@media (max-width: 767px) {
    .site-footer__container {
        padding: 0 var(--spacing-container-padding-mobile);
    }
}

.site-footer__title {
    color: white;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
    font-family: var(--font-heading);
}

.site-footer__title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--alife-primary);
    border-radius: 2px;
}

.site-footer__text {
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 25px;
    color: #aaa;
}

.site-footer__social {
    display: flex;
    gap: 10px;
}

.site-footer__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.05);
    color: white;
    border-radius: 50%; /* Rounded like topbar */
    transition: all 0.3s ease;
    font-size: 14px;
}

.site-footer__social-link:hover {
    background-color: var(--alife-primary);
    transform: translateY(-3px);
    color: white;
}

.site-footer__links, 
.site-footer__contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-footer__links li {
    margin-bottom: 12px;
}

.site-footer__links a {
    color: #aaa;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    font-size: 15px;
}

.site-footer__links a::before {
    content: '\f054'; /* FontAwesome chevron-right */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 10px;
    margin-right: 10px;
    color: var(--alife-primary);
    transition: margin-right 0.3s ease;
}

.site-footer__links a:hover {
    color: white;
    padding-left: 5px;
}

.site-footer__contact li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    color: #aaa;
    font-size: 15px;
}

.site-footer__contact li i {
    color: var(--alife-primary);
    margin-right: 15px;
    font-size: 16px;
    margin-top: 5px;
    width: 20px;
    text-align: center;
}

.site-footer__contact li a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.2s;
}

.site-footer__contact li a:hover {
    color: var(--alife-primary);
}

.site-footer__bottom {
    background-color: #0a0a0a;
    padding: 25px 0;
    margin-top: 60px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.site-footer__copyright {
    color: #999;
    font-size: 14px;
    margin: 0;
    text-align: center;
}

.mt-3 { margin-top: 1rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 3rem; }
.text-center { text-align: center; }
.text-primary { color: var(--alife-primary) !important; }
.text-muted { color: #5c636a !important; }
.small { font-size: 0.875em; }

/* === TEAM SECTION === */
.team-member {
    padding: 30px;
    background: white;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.rounded-circle { border-radius: 50%; }

/* === TEAM SECTION === */
.team-photo {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 20px !important; /* Rounded square */
}

.team-social {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.team-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: var(--alife-dark-bg);
    color: white;
    font-size: 14px;
    transition: all 0.3s ease;
}

.team-social a:hover {
    background-color: var(--alife-primary);
    transform: translateY(-3px);
}

/* === BLOG SECTION === */
.blog-card {
    border: 1px solid #eee;
    transition: transform 0.3s ease;
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.blog-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.rounded { border-radius: 8px; }
.overflow-hidden { overflow: hidden; }
.bg-white { background-color: white; }
.shadow-sm { box-shadow: 0 .125rem .25rem rgba(0,0,0,.075); }

.p-4 { padding: 1.5rem; }

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

.btn-outline-primary {
    color: var(--alife-primary-text, #b85500);
    border: 1px solid var(--alife-primary);
    background: transparent;
    display: inline-block;
    padding: 8px 20px;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 12px;
}

.btn-outline-primary:hover {
    background: var(--alife-primary);
    color: white;
}

/* Responsive Updates */
@media (max-width: 1023px) {
    .top-bar__container {
        padding: 0 var(--spacing-container-padding-tablet);
    }

    .top-bar__left { gap: 12px; }
    .top-bar__contact { font-size: 11px; }
    .top-bar__separator { display: none; } /* Nasconde separatori per risparmiare spazio */
    .top-bar__right { gap: 10px; }
    .top-bar__social { width: 28px; height: 28px; }

    #hero {
        border-radius: 0 0 var(--radius-hero-mobile) 0;
    }
}

/* ========================================
   MAP PREVIEW SECTION
   ======================================== */
.map-preview-section {
    width: 100%;
}

.map-preview__bg {
    width: 100%;
    height: 420px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.map-preview__overlay {
    position: absolute;
    inset: 0;
    background: rgba(11, 19, 43, 0.62);
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-preview__content {
    text-align: center;
    color: #fff;
    padding: 0 20px;
}

.map-preview__heading {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #fff;
}

.map-preview__subtitle {
    font-size: 1.1rem;
    margin-bottom: 28px;
    opacity: 0.95; /* 0.88 falliva contrasto WCAG AA (4.41:1, serve 4.5:1) */
}

.map-preview__btn {
    font-size: 1.05rem;
    padding: 14px 36px;
    border-radius: 4px;
}

.map-preview__text-link {
    display: block;
    margin-top: 14px;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s;
}

.map-preview__text-link:hover {
    color: #fff;
}

@media (max-width: 767px) {
    .map-preview__bg { height: 300px; }
    .map-preview__heading { font-size: 1.5rem; }
    .map-preview__subtitle { font-size: 0.95rem; }
}

@media (max-width: 767px) {
    .top-bar { display: none; }
    
    .nav-bar__hamburger { display: flex; }
    .nav-bar__menu { display: none; } /* Hide desktop menu */
    
    .hero__title { font-size: 42px; line-height: 1.2; }
    .hero__subtitle { font-size: 18px; }
    
    .col-md-4, .col-md-3 {
        width: 100%;
        margin-bottom: 30px;
    }
    
    .col-6 {
        width: 50%; /* Mantieni 2 per riga su mobile per i counter */
    }

    .reverse-mobile {
        flex-direction: column-reverse;
    }
    
    .reverse-mobile .col-md-6:first-child {
        margin-top: 20px;
    }
    
    .col-md-6 {
        width: 100%;
        margin-bottom: 30px;
    }
    
    #hero {
        border-radius: 0 0 var(--radius-hero-mobile) 0;
    }
}

/* ==========================================
   NAVIGATION COMPONENTS (Hamburger, Mobile Menu, Overlay)
   ========================================== */

/* Hamburger Menu */
.nav-bar__hamburger {
    display: none; /* Hidden on desktop */
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px 7px;
    z-index: calc(var(--z-index-navigation) + 1);
}

.nav-bar__hamburger-line {
    width: 100%;
    height: 3px;
    background-color: var(--alife-white); /* White on Hero */
    border-radius: 2px;
    transition: all var(--transition-fast);
}

/* Sticky Hamburger (Dark) */
.nav-bar.is-sticky .nav-bar__hamburger-line {
    background-color: var(--color-text-dark);
}

/* Hamburger Animation */
.nav-bar__hamburger.is-active .nav-bar__hamburger-line:nth-child(1) {
    transform: translateY(10.5px) rotate(45deg);
}
.nav-bar__hamburger.is-active .nav-bar__hamburger-line:nth-child(2) {
    opacity: 0;
}
.nav-bar__hamburger.is-active .nav-bar__hamburger-line:nth-child(3) {
    transform: translateY(-10.5px) rotate(-45deg);
}

/* Mobile Menu styles moved to css/mobile-menu.css */

/* Reference Responsive Styles */
@media (max-width: 1023px) and (min-width: 768px) {
    .nav-bar__content { padding: 20px 0; }
    .nav-bar__container { padding: 0 var(--spacing-container-padding-tablet); }
    .nav-bar__menu { gap: 20px; }
}

/* Mobile - mostra hamburger, nascondi menu desktop */
@media (max-width: 991px) {
    .nav-bar__content {
        padding: 15px 0; /* ESATTO: mobile padding dal sito originale */
    }

    .nav-bar__container {
        padding: 0 var(--spacing-container-padding-mobile); /* 15px */
    }

    /* Mostra hamburger */
    .nav-bar__hamburger {
        display: flex;
    }

    /* Nascondi menu desktop */
    .nav-bar__menu {
        display: none;
    }

    .nav-bar__logo {
        font-size: 20px;
    }
}

/* EMERGENZA: Forza hamburger visibile su mobile */
@media (max-width: 991px) {
    .nav-bar__hamburger {
        display: flex !important;
    }
}

/* ========================================
   SCROLL TO TOP BUTTON
   ======================================== */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--alife-primary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 10000;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.scroll-to-top.is-visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background-color: var(--alife-dark-bg);
    transform: translateY(-5px);
}


/* === DROPDOWN MENU (Desktop) === */
.nav-bar__menu-item {
    position: relative;
    padding-bottom: 20px; /* Bridge gap for hover */
    margin-bottom: -20px;
}

.nav-bar__dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--alife-white);
    min-width: 240px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    border-radius: 4px;
    z-index: 100;
}

/* Arrow indicator for items with dropdown */
.nav-bar__menu-link i.fa-chevron-down {
    font-size: 10px;
    margin-left: 6px;
    transition: transform 0.3s ease;
    vertical-align: middle;
}

.nav-bar__menu-item:hover .nav-bar__menu-link i.fa-chevron-down {
    transform: rotate(180deg);
}

.nav-bar__menu-item:hover .nav-bar__dropdown,
.nav-bar__menu-item.touch-open .nav-bar__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-bar__dropdown-item {
    display: block;
}

.nav-bar__dropdown-link {
    display: block;
    padding: 12px 25px;
    color: var(--color-text-dark);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    text-decoration: none;
    border-left: 3px solid transparent;
}

.nav-bar__dropdown-link:hover {
    background-color: rgba(241, 126, 24, 0.05); /* Light orange bg */
    color: var(--alife-primary);
    border-left-color: var(--alife-primary);
    padding-left: 30px;
}

/* Sticky Navbar Text Color Fix */
.nav-bar.is-sticky .nav-bar__dropdown-link {
    color: var(--color-text-dark);
}

.nav-bar.is-sticky .nav-bar__dropdown-link:hover {
    color: var(--alife-primary);
}

/* ========================================
   ACCESSIBILITY - SKIP LINKS
   ======================================== */
.skip-link {
    position: absolute;
    top: -100px; /* Nascondi sopra la viewport */
    left: 0;
    background-color: var(--alife-primary);
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    font-weight: 600;
    z-index: 10003;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 0; /* Mostra quando ha focus */
}

/* ========================================
   TERRITORIO SECTION
   ======================================== */

.territorio {
    background: #0f172a;
    padding: 80px 20px;
}

.territorio__container {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.territorio__tag {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-radius: 20px;
    padding: 4px 16px;
    margin-bottom: 22px;
}

.territorio__heading {
    font-family: var(--font-heading, 'Syne', sans-serif);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.25;
    margin-bottom: 48px;
}

.territorio__stats {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
    margin-bottom: 48px;
}

.territorio__stat {
    flex: 1 1 160px;
    max-width: 220px;
    padding: 24px 20px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.territorio__stat:first-child {
    border-left: none;
}

.territorio__stat-number {
    display: block;
    font-family: var(--font-heading, 'Syne', sans-serif);
    font-size: 2.4rem;
    font-weight: 800;
    color: #f59e0b;
    line-height: 1;
}

.territorio__stat-unit {
    display: inline-block;
    font-size: 0.9rem;
    color: #94a3b8;
    margin-left: 2px;
    vertical-align: middle;
}

.territorio__stat-label {
    display: block;
    font-size: 0.82rem;
    color: #94a3b8;
    margin-top: 8px;
    line-height: 1.4;
}

.territorio__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #f59e0b;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: gap 0.2s ease;
}

.territorio__link:hover {
    gap: 14px;
    color: #fbbf24;
}

@media (max-width: 768px) {
    .territorio {
        padding: 60px 16px;
    }

    .territorio__stats {
        gap: 16px;
    }

    .territorio__stat {
        flex: 1 1 130px;
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding: 16px;
    }

    .territorio__stat:first-child {
        border-top: none;
    }
}

/* Mappa Interattiva nascosta temporaneamente: sezione in completamento */
#open-map-btn,
#open-map-btn-mobile,
a[onclick*="openInteractiveMap"] {
    display: none !important;
}

