﻿/* === style.css === */
:root {
    /* === PALETTE PRIMARIA === */
    --alife-primary: rgb(241, 126, 24);        /* Orange */
    --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;
    font-weight: 600;
    padding: 17px 44px;
    box-shadow: 0 8px 24px rgba(185, 85, 0, 0.35);
}

.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(0, 0, 0, 0.35);
    color: rgb(255, 255, 255);
    border: 1.5px solid rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(2px);
}

.hero__button--secondary:hover {
    background-color: rgb(255, 255, 255);
    color: rgb(17, 18, 25);
}

.hero__button--map {
    background-color: rgba(0, 0, 0, 0.35);
    color: rgb(255, 255, 255);
    border: 1.5px solid rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(2px);
    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(255, 255, 255);
    color: rgb(17, 18, 25);
    transform: translateY(-3px);
}

.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: #6c757d !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);
    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;
    }
}



/* === portfolio.css === */
/* ========================================
   PORTFOLIO (OUR PROJECTS) SECTION
   ======================================== */

#portfolio h2 {
    position: relative;
    display: inline-block;
    padding-bottom: 20px;
    margin-bottom: 40px;
}

#portfolio h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 4px;
    background-color: rgb(118, 120, 237);
    border-radius: 2px;
}

/* Portfolio Item Wrapper */
.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    cursor: pointer;
    /* Force height for consistency */
    height: 300px; 
}

/* Image Hover Zoom */
.portfolio-img {
    width: 100%;
    height: 100%; /* Fill the wrapper */
    object-fit: cover; /* Crop to fit, ensuring consistency */
    display: block;
    transition: transform 0.5s ease;
}

.portfolio-item:hover .portfolio-img {
    transform: scale(1.1); /* Standard subtle zoom */
}

/* ========================================
   LIGHTBOX (FULL SCREEN ZOOM)
   ======================================== */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 20000; /* Increased to stay above nav-bar (10001) and top-bar (10002) */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 20px;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    border-radius: 4px;
}

.lightbox.active .lightbox-img {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 30px;
    color: white;
    font-size: 40px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    line-height: 1;
    transition: color 0.3s ease;
    z-index: 10000;
}

.lightbox-close:hover {
    color: rgb(118, 120, 237);
}

/* Lightbox Content Wrapper */
.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Lightbox Image */
.lightbox-image {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    transform: scale(0.9);
    transition: transform 0.3s ease, opacity 0.3s ease;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    border-radius: 4px;
}

.lightbox.active .lightbox-image {
    transform: scale(1);
}

/* Lightbox Navigation Buttons - posizionate fisse ai lati dello schermo */
.lightbox-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 24px;
    padding: 15px;
    cursor: pointer;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, transform 0.3s ease;
    z-index: 20001;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

/* Lightbox Caption */
.lightbox-caption {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 16px;
    text-align: center;
    max-width: 80vw;
    font-family: 'Niramit', sans-serif;
}

/* Lightbox Counter */
.lightbox-counter {
    position: absolute;
    bottom: -40px;
    right: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-family: 'Roboto', sans-serif;
}

/* Responsive Navigation */
@media (max-width: 768px) {
    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 18px;
        padding: 10px;
    }

    .lightbox-caption {
        bottom: -60px;
        font-size: 14px;
        padding: 0 10px;
    }

    .lightbox-counter {
        bottom: -60px;
    }
}

/* Lightbox Tour Overlay */
.lightbox-tour-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s ease;
}

.lightbox-tour-overlay:hover {
    background: rgba(0, 0, 0, 0.3);
}

.lightbox-tour-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    color: white;
    font-family: 'Niramit', sans-serif;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
    pointer-events: none;
}

.lightbox-tour-content i {
    font-size: 4rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.8));
}

.lightbox-tour-content span {
    font-size: 1.3rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: rgba(241, 126, 24, 0.95);
    padding: 14px 28px;
    border-radius: 8px;
}

@media (max-width: 768px) {
    .lightbox-tour-content i {
        font-size: 2.5rem;
    }

    .lightbox-tour-content span {
        font-size: 1rem;
        padding: 10px 18px;
    }
}

/* Overlay */
.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(25, 29, 42, 0.2);
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: none; /* Hide default cursor */
    z-index: 5;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

/* Icon - Follows Cursor */
.portfolio-icon {
    position: absolute;
    top: 0; /* Reset */
    left: 0; /* Reset */
    width: 60px;
    height: 60px;
    background-color: rgba(118, 120, 237, 0.9);
    border-radius: 50%;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none; /* Allow clicks to pass through */
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.2s ease;
    z-index: 10;
}

.portfolio-item:hover .portfolio-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.portfolio-icon svg {
    width: 30px;
    height: 30px;
    stroke-width: 2;
    stroke: currentColor;
}

/* ========================================
   GALLERY WITH THUMBNAILS
   ======================================== */

.gallery-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 100%; /* Fill parent .modern-image (400px) */
}

.gallery-main {
    position: relative;
    width: 100%;
    flex: 1; /* Take remaining space after thumbnails */
    min-height: 0; /* Important for flex shrinking */
    overflow: hidden;
    border-radius: 20px;
    cursor: zoom-in;
}

/* Override portfolio-item fixed height when used in gallery */
.gallery-container .gallery-main.portfolio-item {
    height: 400px !important; /* Force fixed height for consistency */
    min-height: 0; /* Allow flex shrinking */
    flex: none; /* Don't use flex, use explicit dimensions */
    width: 100%;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease, transform 0.5s ease;
    display: block; /* Remove inline spacing */
}

.gallery-main:hover img {
    transform: scale(1.05);
}

/* Thumbnails Container */
.gallery-thumbnails {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 8px 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* Scrollbar styling */
.gallery-thumbnails::-webkit-scrollbar {
    height: 6px;
}

.gallery-thumbnails::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.gallery-thumbnails::-webkit-scrollbar-thumb {
    background: var(--alife-primary);
    border-radius: 3px;
}

.gallery-thumbnails::-webkit-scrollbar-thumb:hover {
    background: var(--alife-dark);
}

/* Individual Thumbnail */
.gallery-thumbnail {
    flex-shrink: 0;
    width: 90px; /* Fixed width - square thumbnails */
    height: 90px; /* Fixed height - square thumbnails */
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    opacity: 0.6;
    display: block; /* Ensure img displays correctly */
}

.gallery-thumbnail:hover {
    opacity: 0.9;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.gallery-thumbnail.active {
    border-color: var(--alife-primary);
    opacity: 1;
    box-shadow: 0 4px 12px rgba(241, 126, 24, 0.3);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .gallery-main {
        height: 300px; /* Reduced height for mobile */
    }

    .gallery-thumbnail {
        width: 75px; /* Square thumbnails on mobile */
        height: 75px;
    }
}


/* === testimonials.css === */
/* ========================================
   TESTIMONIALS SECTION
   ======================================== */

#testimonials .section-header h2 {
    position: relative;
    display: inline-block;
    padding-bottom: 20px;
    margin-bottom: 40px;
}

#testimonials .section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 4px;
    background-color: rgb(118, 120, 237); /* Purple */
    border-radius: 2px;
}

/* Testimonial Card */
.testimonial-card {
    background-color: white;
    padding: 40px 30px;
    border-radius: 4px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Quote Icon */
.testimonial-quote-icon {
    font-size: 40px;
    color: rgb(11, 19, 43); /* Dark text color */
    margin-bottom: 20px;
    line-height: 1;
}

/* Text */
.testimonial-text {
    font-size: 16px;
    font-style: italic;
    color: #666;
    line-height: 1.6;
    margin-bottom: 30px;
    flex-grow: 1; /* Pushes author down */
}

/* Author Section */
.testimonial-author {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.testimonial-name {
    font-size: 14px;
    font-weight: 700;
    color: rgb(241, 126, 24); /* Orange Primary */
    text-transform: uppercase;
    margin: 0;
    letter-spacing: 1px;
}


/* === counters.css === */
/* ========================================
   COUNTERS SECTION
   ======================================== */

.counters-section {
    background-image: url('../images/hero-bg.webp');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    color: white;
    padding: 100px 0;
    z-index: 1;
}

/* Dark Overlay */
.counters-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(11, 19, 43, 0.85); /* Dark blue overlay */
    z-index: -1;
}

/* Header Styling */
.counters-section .section-header h2 {
    position: relative;
    display: inline-block;
    padding-bottom: 20px;
    margin-bottom: 20px;
    font-size: 32px;
    color: white;
}

.counters-section .section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 3px;
    background-color: rgb(118, 120, 237); /* Purple underline */
}

.counters-section .section-header p {
    color: #ccc;
    margin-bottom: 60px;
}

/* Counter Item */
.counter-item {
    transition: transform 0.3s ease;
}

.counter-item:hover {
    transform: translateY(-5px);
}

.counter-item p {
    font-size: 14px;
    font-weight: 700;
    color: rgb(241, 126, 24); /* Orange Primary */
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.counter-item h3 {
    font-size: 60px;
    font-weight: 300; /* Thin font */
    color: white;
    margin: 0;
    font-family: 'Roboto', sans-serif;
    line-height: 1;
}


/* === blog.css === */
/* ========================================
   BLOG ARTICLE STYLES
   ======================================== */

.article-hero {
    position: relative;
    height: 60vh;
    min-height: 400px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    padding: 80px 20px 60px;
}

.article-hero__bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    overflow: hidden;
}

.article-hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.article-hero__overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.1) 100%);
}

.article-hero__content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    color: white;
}

.article-hero__meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 14px;
}

.article-hero__category {
    background: rgb(241, 126, 24);
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
}

.article-hero__title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.2;
}

.article-hero__subtitle {
    font-size: 18px;
    opacity: 0.9;
}

.article-main {
    background: white;
    padding: 60px 0;
}

.article-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 50px;
}

.article-content-wrapper { min-width: 0; }
.article-content { max-width: 100%; }

/* i18n: blocchi lingua nascosti per default via CSS, non style inline */
[data-lang-show] { display: none; }
[data-lang-show].lang-visible { display: block; }
.article-sidebar { position: sticky; top: 100px; height: fit-content; }

.article-lead {
    font-size: 20px;
    line-height: 1.7;
    color: #333;
    margin-bottom: 30px;
    font-weight: 300;
}

.article-content h2 { font-size: 28px; margin: 40px 0 15px; color: rgb(11, 19, 43); }
.article-content h3 { font-size: 22px; margin: 30px 0 12px; color: rgb(11, 19, 43); }
.article-content p { font-size: 17px; line-height: 1.8; color: #444; margin-bottom: 20px; }
.article-content ul { margin: 20px 0 20px 30px; }
.article-content li { font-size: 17px; line-height: 1.8; color: #444; margin-bottom: 8px; }

.article-image { margin: 30px 0; }
.article-image img { width: 50%; height: auto; border-radius: 12px; display: block; margin: 0 auto; }
.article-image figcaption { font-size: 14px; color: #888; text-align: center; margin-top: 10px; }
@media (max-width: 600px) { .article-image img { width: 100%; } }

.article-quote {
    background: #f8f9fa;
    border-left: 4px solid rgb(241, 126, 24);
    padding: 25px 30px;
    margin: 30px 0;
    border-radius: 0 12px 12px 0;
}
.article-quote p { font-size: 18px; font-style: italic; color: #333; margin-bottom: 10px; }
.article-quote cite { font-size: 14px; color: #666; }

.article-tags { margin-top: 40px; padding-top: 20px; border-top: 1px solid #eee; }
.article-tags__label { font-weight: 600; margin-right: 10px; }
.article-tags__tag {
    display: inline-block; background: #f0f0f0; padding: 5px 12px;
    border-radius: 15px; font-size: 13px; color: #666; margin-right: 8px; text-decoration: none;
}
.article-tags__tag:hover { background: rgb(241, 126, 24); color: white; }

.article-share { margin-top: 20px; }
.article-share__label { font-weight: 600; margin-right: 15px; }
.article-share__btn {
    display: inline-flex; width: 36px; height: 36px;
    align-items: center; justify-content: center;
    background: #333; color: white; border-radius: 50%; margin-right: 8px; text-decoration: none;
}
.article-share__btn:hover { background: rgb(241, 126, 24); }

.sidebar-card { background: #f8f9fa; border-radius: 12px; padding: 20px; margin-bottom: 20px; }
.sidebar-card__title { font-size: 16px; margin-bottom: 15px; color: rgb(11, 19, 43); }
.sidebar-card__link {
    display: flex; align-items: center; gap: 8px; padding: 10px 0;
    color: #444; text-decoration: none; border-bottom: 1px solid #eee;
}
.sidebar-card__link:last-child { border-bottom: none; }
.sidebar-card__link:hover { color: rgb(241, 126, 24); }
.sidebar-card p { font-size: 14px; color: #666; margin-bottom: 8px; }

.related-articles { background: #f8f9fa; padding: 60px 0; }
.related-articles__title { font-size: 24px; margin-bottom: 30px; text-align: center; }

/* Blog section (blog.html) */
.blog-section { background-color: #f5f4f0; padding: 60px 0 16px; }

.blog-filters { max-width: 1200px; margin: 0 auto 40px; padding: 0 20px; display: flex; flex-wrap: wrap; gap: 10px; }
.blog-filter-btn { padding: 6px 15px; border: 2px solid #d1d5db; background: white; border-radius: 25px; font-size: 13px; font-weight: 500; color: #555; cursor: pointer; transition: all 0.2s ease; font-family: inherit; }
.blog-filter-btn:hover { border-color: rgb(241,126,24); color: rgb(241,126,24); }
.blog-filter-btn.active { background: rgb(241,126,24); border-color: rgb(241,126,24); color: white; }
.blog-card.hidden { display: none; }
@media (max-width: 600px) { .blog-filter-btn { padding: 6px 13px; font-size: 13px; } }
.blog-grid { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.blog-card { background: white; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 15px rgba(0,0,0,0.08); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.blog-card:hover { transform: translateY(-5px); box-shadow: 0 8px 30px rgba(0,0,0,0.15); }
.blog-image-placeholder { height: 200px; background-size: cover; background-position: center; }
.blog-card__content { padding: 20px; }
.blog-meta { display: flex; gap: 15px; font-size: 13px; color: #666; margin-bottom: 12px; }
.blog-title { font-size: 18px; font-weight: 700; margin-bottom: 10px; line-height: 1.4; }
.blog-title a { color: rgb(11, 19, 43); text-decoration: none; }
.blog-title a:hover { color: rgb(241, 126, 24); }
.blog-excerpt { font-size: 14px; color: #666; line-height: 1.6; margin-bottom: 15px; }
.blog-read-more { color: rgb(241, 126, 24); font-weight: 600; font-size: 14px; text-decoration: none; }

@media (max-width: 991px) {
    .article-container { grid-template-columns: 1fr; }
    .article-sidebar { position: static; }
    .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
    .article-hero {
        height: auto;
        min-height: auto;
        padding: 80px 16px 40px;
        align-items: flex-start;
    }
    .article-hero__content {
        padding-top: 40px;
    }
    .article-hero__title { font-size: 24px; line-height: 1.3; }
    .article-hero__subtitle { font-size: 14px; }
    .article-main { padding: 30px 0; }
    .blog-grid { grid-template-columns: 1fr; }
}

/* ========================================
   BLOG EDITORIAL LAYOUT (home page)
   1 hero grande + 2 card secondarie
   ======================================== */

.blog-editorial {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: 1320px;
    margin: 0 auto 40px;
}

.blog-tag {
    display: inline-block;
    background: #b85e0a;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 3px 10px;
    border-radius: 4px;
    margin-bottom: 10px;
    align-self: flex-start;
}

.blog-tag--inline { align-self: flex-start; width: auto; }

.blog-hero-card {
    position: relative;
    display: block;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    min-height: 480px;
}

.blog-hero-card__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease;
}

.blog-hero-card:hover .blog-hero-card__image { transform: scale(1.04); }

.blog-hero-card__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0 24px 28px;
    background: linear-gradient(to top, rgba(11,19,43,0.88) 0%, rgba(11,19,43,0.5) 40%, transparent 60%);
    color: #fff;
}

.blog-hero-card__title { font-size: 26px; font-weight: 700; color: #fff; margin: 6px 0 10px; line-height: 1.3; }

.blog-read-more--light {
    color: var(--alife-accent, #f17e18);
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

.blog-secondary { display: flex; flex-direction: column; gap: 24px; }

.blog-secondary-card {
    display: grid;
    grid-template-columns: 160px 1fr;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    text-decoration: none;
    background: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex: 1;
}

/* ============================================================
   AUDIO PLAYER — Variante 2 Chiara (.atu-card--day)
   ============================================================ */
.atu-card {
  font-family: var(--atu-font-body, 'Niramit', sans-serif);
  background: linear-gradient(160deg, #ffffff, #f4f3fb);
  border: 1px solid rgba(118, 120, 237, .30);
  border-radius: 22px;
  padding: 22px 24px;
  color: #191d2a;
  max-width: 460px;
  box-shadow: 0 18px 40px -20px rgba(65, 36, 196, .30);
  transition: transform .3s ease, border-color .3s ease;
  margin: 0 0 2rem;
}
.atu-card:hover { transform: translateY(-4px); border-color: rgba(118, 120, 237, .65); }
.atu-card__top { display: flex; align-items: center; gap: 18px; }
.atu-card__btnwrap { position: relative; flex: 0 0 auto; width: 64px; height: 64px; }
.atu-card__btnwrap::before {
  content: ""; position: absolute; inset: -3px; border-radius: 50%;
  background: conic-gradient(from 0deg, var(--alife-secondary), var(--alife-accent), var(--alife-primary), var(--alife-secondary));
  opacity: .18; transition: opacity .3s ease;
}
.atu-card:hover .atu-card__btnwrap::before { opacity: 1; }
.atu-card.is-playing .atu-card__btnwrap::before { opacity: 1; animation: atu-spin 4s linear infinite; }
@keyframes atu-spin { to { transform: rotate(360deg); } }
.atu-card__btn {
  position: absolute; inset: 0; border: 0; border-radius: 50%; cursor: pointer;
  background: #ffffff; color: var(--alife-dark); display: grid; place-items: center;
  transition: transform .25s ease;
}
.atu-card__btn:hover { transform: scale(1.05); }
.atu-card__btn:active { transform: scale(.94); }
.atu-card__btn svg { width: 24px; height: 24px; }
.atu-card__btn .atu-ico-pause { display: none; }
.atu-card.is-playing .atu-card__btn .atu-ico-play { display: none; }
.atu-card.is-playing .atu-card__btn .atu-ico-pause { display: block; }
.atu-card__meta { display: flex; flex-direction: column; gap: 3px; }
.atu-card__kicker {
  font-family: var(--atu-font-heading, 'Syne', sans-serif);
  font-weight: 800; font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--alife-primary);
}
.atu-card__title {
  font-family: var(--atu-font-heading, 'Syne', sans-serif);
  font-weight: 700; font-size: 18px; line-height: 1.2; color: var(--alife-dark);
}
.atu-card__bottom { margin-top: 18px; display: flex; align-items: center; gap: 12px; }
.atu-card__track {
  flex: 1; height: 6px; background: rgba(65, 36, 196, .12);
  border-radius: 99px; cursor: pointer; overflow: hidden;
}
.atu-card__fill {
  height: 100%; width: 0; border-radius: 99px;
  background: linear-gradient(90deg, var(--alife-secondary), var(--alife-accent));
  transition: width .2s linear;
}
.atu-card__time { font-size: 12px; font-variant-numeric: tabular-nums; opacity: .65; color: #191d2a; min-width: 36px; text-align: right; }

@media (prefers-reduced-motion: reduce) {
  .atu-card, .atu-card * { animation: none !important; transition: none !important; }
}

.blog-secondary-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.12); }

.blog-secondary-card__image {
    width: 160px;
    min-width: 160px;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease;
}

.blog-secondary-card:hover .blog-secondary-card__image { transform: scale(1.05); }

.blog-secondary-card__content { padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.blog-secondary-card__content .blog-title { font-size: 17px; color: rgb(11,19,43); }
.blog-secondary-card__content .blog-excerpt { font-size: 14px; color: #666; }
.blog-secondary-card__content .blog-meta { margin-top: auto; font-size: 12px; gap: 10px; }

@media (max-width: 900px) {
    .blog-editorial { grid-template-columns: 1fr; }
    .blog-hero-card { min-height: 320px; }
    .blog-secondary-card { grid-template-columns: 140px 1fr; }
    .blog-secondary-card__image { width: 140px; min-width: 140px; max-width: 140px; }
}

@media (max-width: 700px) {
    .blog-secondary-card { grid-template-columns: 1fr; grid-template-rows: 180px 1fr; }
}

/* === mobile-menu.css === */
/* ========================================
   MOBILE MENU - DARK SIDEBAR STYLE
   ======================================== */

.nav-bar__mobile-menu {
    /* Layout */
    display: flex !important;
    flex-direction: column;
    position: fixed !important;
    top: 0 !important;
    right: -100%; /* Offscreen right */
    width: 350px; /* Fixed width sidebar */
    max-width: 85%; /* Responsive for small screens */
    height: 100vh;

    /* Theme - FORZATO scuro con !important */
    background-color: #1a1a1a !important; /* Darker background */
    color: white !important;

    /* Effects */
    box-shadow: -10px 0 50px rgba(0, 0, 0, 0.8) !important;
    z-index: 99999 !important; /* Menu mobile sopra tutto */
    transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);

    /* Spacing */
    padding: 0;
}

.nav-bar__mobile-menu.is-open {
    right: 0;
}

/* --- Header --- */
.mobile-menu__header {
    padding: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu__title {
    font-family: 'Roboto', sans-serif;
    font-weight: 900;
    font-size: 24px;
    margin: 0;
    text-transform: uppercase;
    color: white;
    letter-spacing: 1px;
}

/* --- Content (Menu Items) --- */
.mobile-menu__content {
    flex-grow: 1;
    padding: 20px 0;
    overflow-y: auto;
}

.nav-bar__mobile-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* FORZA colori scuri per gli elementi interni del menu */
.mobile-menu__header,
.mobile-menu__title,
.mobile-menu__content,
.nav-bar__mobile-menu-list,
.nav-bar__mobile-menu-item,
.nav-bar__mobile-menu-link,
.mobile-menu__footer,
.mobile-menu__footer p {
    background-color: #1a1a1a !important;
    color: white !important;
}

/* FORZA sfondo scuro per tutto il menu */
.nav-bar__mobile-menu,
.nav-bar__mobile-menu * {
    background-color: #1a1a1a !important;
    color: white !important;
}

.nav-bar__mobile-menu-item {
    margin-bottom: 5px;
}

.nav-bar__mobile-menu-link {
    display: block;
    padding: 15px 30px;
    font-size: 14px;
    font-weight: 700;
    color: white;
    text-decoration: none;
    transition: background-color 0.2s ease, padding-left 0.2s ease;
}

/* Spazio tra icona e testo */
.nav-bar__mobile-menu-link i {
    margin-right: 12px;
}

.nav-bar__mobile-menu-link:hover {
    background-color: rgba(255, 255, 255, 0.05);
    padding-left: 35px; /* Subtle slide effect */
    color: white;
}

/* Active State (Orange Background) */
.nav-bar__mobile-menu-link.active {
    background-color: rgb(241, 126, 24); /* Orange */
    color: white;
}

/* --- Footer --- */
.mobile-menu__footer {
    padding: 20px 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #888;
}

.mobile-menu__footer p {
    margin: 0;
}

/* Close Button (Bottom Right) */
.mobile-menu__close {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ccc;
    width: 36px;
    height: 36px;
    border-radius: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-menu__close:hover {
    background-color: white;
    color: #222;
}

/* Overlay */
.nav-bar__overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Semi-trasparente per intravedere la pagina */
    backdrop-filter: blur(2px); /* Leggero blur per effetto moderno */
    z-index: 99998; /* Overlay sotto al menu */
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* When mobile menu is open, hide main content footer - MAXIMUM SPECIFICITY */
body.mobile-menu-open footer,
body.mobile-menu-open footer.site-footer,
body.mobile-menu-open .site-footer,
body.mobile-menu-open .site-footer *,
body.mobile-menu-open footer.site-footer *,
body.mobile-menu-open .site-footer * {
    display: none !important;
    visibility: hidden !important;
}

body.mobile-menu-open main {
    overflow: hidden;
}

.nav-bar__overlay.is-visible {
    display: block;
    opacity: 1;
}

/* === MOBILE DROPDOWN === */
.nav-bar__mobile-dropdown {
    display: none;
    background-color: rgba(0, 0, 0, 0.2);
    margin-bottom: 5px;
}

.nav-bar__mobile-dropdown.is-open {
    display: block;
}

.nav-bar__mobile-dropdown-link {
    display: block;
    padding: 12px 30px 12px 50px; /* Indented */
    color: #bbb;
    text-decoration: none;
    font-size: 13px;
    font-weight: 400;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.nav-bar__mobile-dropdown-link:hover {
    color: white;
    background-color: rgba(255, 255, 255, 0.03);
    padding-left: 55px;
    border-left-color: var(--alife-primary);
}

/* Arrow rotation for mobile */
.nav-bar__mobile-menu-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Button senza freccia (es. Mappa Interattiva) - allineati a sinistra */
.nav-bar__mobile-menu-link:not(:has(.fa-chevron-down)) {
    justify-content: flex-start;
}

/* Fallback per browser senza :has() */
.nav-bar__mobile-menu-item:not(.has-dropdown) .nav-bar__mobile-menu-link {
    justify-content: flex-start;
}

.nav-bar__mobile-menu-link i.fa-chevron-down {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.nav-bar__mobile-menu-link.is-open i.fa-chevron-down {
    transform: rotate(180deg);
}


/* === features-carousel.css === */
/* ========================================
   FEATURES CAROUSEL STYLES
   ======================================== */

/* Font definitions fallback */
:root {
    --font-heading: 'Syne', sans-serif;
    --font-body: 'Niramit', sans-serif;
    --alife-primary: rgb(241, 126, 24);
    --alife-dark: rgb(65, 36, 196);
}

/* Section Container */
.features-section {
    padding: 60px 0 80px;
    background: #f5f4f0;
    position: relative;
}

/* Section Header */
.features-section__header {
    text-align: center;
    margin-bottom: 32px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--alife-dark);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-subtitle {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* ========================================
   FILTER PILLS
   ======================================== */
.features-section__filters {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 36px;
}

.features-pill {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: transparent;
    border: 1px solid rgba(65, 36, 196, 0.3);
    color: #555;
    border-radius: 100px;
    padding: 8px 20px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.features-pill:hover {
    border-color: var(--alife-dark);
    color: var(--alife-dark);
}

.features-pill.active {
    background: var(--alife-dark);
    border-color: var(--alife-dark);
    color: #fff;
}

/* ========================================
   MONUMENTI GRID
   ======================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.mgrid__card {
    display: block;
    text-decoration: none;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 4 / 3;
    background: #1a1a2e;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.mgrid__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

.mgrid__img-wrap {
    position: relative;
    width: 100%;
    height: 100%;
}

.mgrid__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.35s ease;
}

.mgrid__card:hover .mgrid__img-wrap img {
    transform: scale(1.05);
}

.mgrid__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 14px 14px;
    background: linear-gradient(to top, rgba(10, 10, 20, 0.82) 0%, transparent 100%);
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.mgrid__cat {
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.65);
}

.mgrid__title {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
}

/* Carousel Container - full width (outside Bootstrap container) */
#featuresCarousel {
    width: 100%;
    position: relative;
    padding: 0;
    min-height: 400px;
    max-width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Carousel Track - Holds all cards */
.carousel-track {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 20px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding: 10px 60px; /* Space for arrows */
    min-height: 380px;
    /* Limit width to show only 3 cards: 300px * 3 + 20px * 2 gaps = 940px */
    width: calc(300px * 3 + 20px * 2);
    max-width: calc(300px * 3 + 20px * 2);
    margin: 0 auto;
    /* Hide scrollbar */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.carousel-track::-webkit-scrollbar {
    display: none;
}

/* Carousel Item - Each card - renamed to avoid Bootstrap conflict */
.monument-card-item {
    flex: 0 0 auto;
    flex-shrink: 0;
    scroll-snap-align: start;
    width: 300px;
    max-width: 300px;
    min-width: 300px;
    height: 350px;
    min-height: 350px;
}

/* Ensure card inside maintains fixed size */
.monument-card-item .feature-card {
    width: 300px;
    max-width: 300px;
    min-width: 300px;
}

/* Feature Card */
.feature-card {
    background: #fff;
    border-radius: 12px;
    padding: 0;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    height: 100%;
    min-height: 350px;
    width: 300px;
    max-width: 300px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(241, 126, 24, 0.15);
    border-color: var(--alife-primary);
}

/* Feature Card Image */
.feature-card__image {
    width: 100%;
    height: 140px;
    overflow: hidden;
    position: relative;
}

.feature-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-card__image img {
    transform: scale(1.05);
}

/* Feature Icon */
.feature-card__icon {
    font-size: 2rem;
    color: var(--alife-primary);
    margin: 10px 0;
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-card__icon {
    transform: scale(1.1);
}

/* Feature Title */
.feature-card__title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--alife-dark);
    margin: 8px 12px 6px 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.3;
}

/* Feature Description */
.feature-card__description {
    font-family: var(--font-body);
    font-size: 0.85rem;
    line-height: 1.4;
    color: #666;
    margin: 0 12px 8px 12px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Feature Link */
.feature-card__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    color: rgb(185, 85, 0);
    text-decoration: none;
    transition: all 0.3s ease;
    align-self: center;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 15px;
}

.feature-card__link i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.feature-card__link:hover {
    background: var(--alife-primary);
    color: #fff;
    transform: translateX(5px);
}

/* Carousel Indicators */
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-top: 20px;
    list-style: none;
    padding: 0;
}

.carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--alife-primary);
    border: none;
    opacity: 0.5;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}
.carousel-indicators button::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
}

.carousel-indicators button.active {
    opacity: 1;
    width: 30px;
    border-radius: 10px;
}

/* Carousel Controls */
.carousel-control-prev,
.carousel-control-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: var(--alife-primary);
    border: none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    opacity: 0.8;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.carousel-control-prev {
    left: calc(50% - 470px - 40px); /* Center of track - half width - button width */
}

.carousel-control-next {
    right: calc(50% - 470px - 40px); /* Center of track - half width - button width */
}

.carousel-control-prev i,
.carousel-control-next i {
    font-size: 16px;
}

/* ========================================
   HUB PAGE CARDS (chiese.html, monumenti.html)
   ======================================== */

/* Section container for hub pages */
.monuments-grid-section {
    padding: 60px 0;
    background: #f8f9fa;
}

/* Hub Card - wrapper link */
.monument-card {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
    transition: transform 0.3s ease;
}

.monument-card:hover {
    transform: translateY(-5px);
}

/* Hub Card content */
.hub-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 2px solid transparent;
}

.hub-card:hover {
    box-shadow: 0 10px 30px rgba(241, 126, 24, 0.15);
    border-color: var(--alife-primary);
}

/* Hub Card Image - fixed height with object-fit */
.hub-card__image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.hub-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease;
}

.hub-card:hover .hub-card__image img {
    transform: scale(1.08);
}

/* Hub Card Content */
.hub-card__content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hub-card__category {
    font-family: var(--font-body);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--alife-primary);
    margin-bottom: 8px;
    font-weight: 600;
}

.hub-card__title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--alife-dark);
    margin-bottom: 8px;
    line-height: 1.3;
}

.hub-card__description {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hub-card__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--alife-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.hub-card__link i {
    transition: transform 0.3s ease;
}

.hub-card:hover .hub-card__link {
    transform: translateX(5px);
}

.hub-card:hover .hub-card__link i {
    transform: translateX(3px);
}

/* Responsive */
@media (max-width: 1200px) {
    /* Screen fits 2 cards (300px * 2 + 20px gap = 620px) */
    .carousel-track {
        width: calc(300px * 2 + 20px * 1);
        max-width: calc(300px * 2 + 20px * 1);
    }

    .carousel-control-prev {
        left: calc(50% - 310px - 40px);
    }

    .carousel-control-next {
        right: calc(50% - 310px - 40px);
    }
}

@media (max-width: 768px) {
    /* Screen fits 1 card (300px) */
    .carousel-track {
        width: 300px;
        max-width: 300px;
        padding: 10px 50px;
    }

    .carousel-control-prev {
        left: 5px;
    }

    .carousel-control-next {
        right: 5px;
    }

    #featuresCarousel {
        padding: 0;
    }

    .feature-card__image {
        height: 150px;
    }

    .section-title {
        font-size: 2rem;
    }

    .feature-card__icon {
        font-size: 1.8rem;
        margin: 8px 0;
    }

    .feature-card__title {
        font-size: 0.95rem;
        margin: 6px 10px 4px 10px;
    }

    .feature-card__description {
        font-size: 0.8rem;
        margin: 0 10px 6px 10px;
        -webkit-line-clamp: 3;
    }

    .feature-card__link {
        font-size: 0.8rem;
        padding: 5px 12px;
        margin-bottom: 12px;
    }

    .carousel-control-prev,
    .carousel-control-next {
        width: 35px;
        height: 35px;
    }

    .carousel-control-prev i,
    .carousel-control-next i {
        font-size: 14px;
    }

    .carousel-indicators {
        margin-top: 15px;
    }

    /* Hub cards responsive */
    .hub-card__image {
        height: 180px;
    }

    .hub-card__title {
        font-size: 1rem;
    }

    .hub-card__description {
        font-size: 0.85rem;
        -webkit-line-clamp: 2;
    }
}

@media (max-width: 576px) {
    .hub-card__image {
        height: 200px;
    }

    .hub-card__content {
        padding: 15px;
    }

    .hub-card__title {
        font-size: 0.95rem;
    }

    .hub-card__description {
        font-size: 0.8rem;
        -webkit-line-clamp: 3;
    }

    .hub-card__link {
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    .features-section {
        padding: 48px 0 60px;
    }

    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 600px) {
    .features-pill {
        font-size: 10px;
        padding: 7px 14px;
    }
}

/* =====================================================
   SCROLL SNAP OVERRIDE — carosello CSS nativo
   3 card 300px centrate + peek 4ª, 2 card mobile
   ===================================================== */

/* Contenitore: overflow hidden, mantiene layout originale */
#featuresCarousel {
    overflow: hidden !important;
    min-height: unset !important;
}

/* Track: stessa larghezza originale + 80px peek 4ª card */
.carousel-track {
    width: calc(300px * 3 + 20px * 2 + 80px) !important;
    max-width: calc(300px * 3 + 20px * 2 + 80px) !important;
    padding: 10px 0 20px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory !important;
    scroll-behavior: auto !important;
    min-height: unset !important;
    cursor: grab !important;
}

/* Card item: dimensioni originali */
.monument-card-item {
    flex: 0 0 300px !important;
    width: 300px !important;
    min-width: 300px !important;
    max-width: 300px !important;
    height: 350px !important;
    min-height: 350px !important;
    scroll-snap-align: start !important;
}

.monument-card-item .feature-card {
    width: 300px !important;
    max-width: 300px !important;
}

/* Indicatori sempre nascosti; frecce solo da 1200px, a lato del track da 1020px */
.carousel-control-prev,
.carousel-control-next,
.carousel-indicators {
    display: none !important;
}

@media (min-width: 1200px) {
    .carousel-control-prev,
    .carousel-control-next {
        display: flex !important;
        background: var(--alife-primary-text, #b85500);
        opacity: 0.9;
    }
    .carousel-control-prev { left: calc(50% - 510px - 56px); }
    .carousel-control-next { right: calc(50% - 510px - 56px); }
    .carousel-control-prev:disabled,
    .carousel-control-next:disabled {
        opacity: 0.3;
        cursor: default;
        transform: translateY(-50%);
    }
}

/* Mobile: 2 card + peek */
@media (max-width: 768px) {
    .carousel-track {
        width: calc(300px * 2 + 20px + 60px) !important;
        max-width: calc(300px * 2 + 20px + 60px) !important;
        padding: 10px 0 16px !important;
    }
}

/* Mappa Interattiva nascosta temporaneamente: sezione in completamento */
#open-map-btn,
#open-map-btn-mobile,
a[onclick*="openInteractiveMap"],
.hero__button--map,
.map-preview-section {
    display: none !important;
}


