/* ========== VARIABILI & STILI DI BASE ========== */
:root {
  --bg: #ffffff;
  --surface: #fdf2f8;
  --text: #1e293b;
  --muted: #475569;
  --line: #e2e8f0;
  --accent: #c2255c;
  --accent-darker: #a21a48;
  --accent-lighter: #ff87ab;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04), 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 6px 10px -2px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 20px -4px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
  --pad-x: clamp(20px, 5vw, 32px);
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  /* NUOVE VARIABILI PER TEMA LAB */
  --accent-lab: #2563eb;
  --accent-lab-lighter: #60a5fa;
  --surface-lab: #eff6ff;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; padding: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, 'Noto Sans', sans-serif;
  color: var(--text); background: var(--bg);
  font-size: 17px; line-height: 1.7;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
.preloader {
  position: fixed; inset: 0; background: var(--bg);
  display: grid; place-items: center; z-index: 1000;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
.preloader.hidden { opacity: 0; visibility: hidden; }
.spinner {
  width: 48px; height: 48px; border: 5px solid var(--surface);
  border-top-color: var(--accent); border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
/* ========== LAYOUT & UTILITIES ========== */
.container { max-width: 1180px; margin: 0 auto; padding: 0 var(--pad-x); }
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 48px; }
@media(min-width: 900px) { .grid-2 { grid-template-columns: 1.1fr .9fr; align-items: center; } }
h1, h2, h3 { font-family: 'Lexend', sans-serif; line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(36px, 6vw, 54px); }
h2 { font-size: clamp(32px, 5vw, 42px); }
h3 { font-size: clamp(24px, 4vw, 28px); }
a { color: inherit; text-decoration: none; border-bottom: 2px solid transparent; transition: var(--transition); }
a:hover, a:focus { color: var(--accent); border-bottom-color: var(--accent); }
:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(194, 37, 92, .2); border-radius: 10px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border-width: 0; }
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.reveal.show { opacity: 1; transform: translateY(0); }
.cards .reveal:nth-child(2) { transition-delay: 0.1s; }
.cards .reveal:nth-child(3) { transition-delay: 0.2s; }
.cards .reveal:nth-child(4) { transition-delay: 0.05s; }
.cards .reveal:nth-child(5) { transition-delay: 0.15s; }
.cards .reveal:nth-child(6) { transition-delay: 0.25s; }
/* ========== COMPONENTI ========== */
.btn, .btn-outline, .btn-inverse {
  padding: 14px 28px; border-radius: 999px; font-weight: 700;
  display: inline-flex; gap: 8px; align-items: center; justify-content: center;
  border-bottom: none; letter-spacing: .2px; transition: var(--transition); font-size: 16px;
}
.btn { background: var(--accent); color: #fff; box-shadow: var(--shadow-sm); }
.btn:hover { background: var(--accent-darker); transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.btn-outline { border: 1px solid var(--line); }
.btn-outline:hover { background: var(--surface); border-color: var(--accent-lighter); transform: translateY(-3px); }
.btn-outline.on-dark { border-color: rgba(255,255,255,0.4); color: #fff; }
.btn-outline.on-dark:hover { background: rgba(255,255,255,0.1); border-color: #fff; }
a.btn-outline { color: var(--text); }
a.btn-outline.on-dark { color: #fff; }
.btn-inverse { background: #fff; color: var(--accent-darker); }
a.btn { color: #fff; }
.card {
  border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px;
  background: var(--bg); transition: var(--transition); cursor: pointer; display: block;
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-8px); border-color: #fce7f3; }
.card h3 { margin: 8px 0; font-size: 22px; }
.more { display: inline-block; margin-top: 16px; color: var(--accent-darker); font-weight: 700; border-bottom: none; }
.badge { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }

.icon-wrap { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; flex-shrink: 0; }
.icon-wrap .material-symbols-outlined {
  font-size: 30px;
  width: 30px;
  height: 30px;
}

/* ========== HEADER ========== */
.header {
  position: sticky; top: 0; z-index: 50; padding: 12px 0;
  background: rgba(255, 255, 255, 0.7); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent; transition: background .2s, border-color .2s, box-shadow .2s;
}
.header.scrolled { background: rgba(255, 255, 255, 0.85); border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand img { height: 52px; width: 52px; border-radius: 12px; }
.brand-name { font-family: 'Lexend', sans-serif; font-size: 20px; font-weight: 700; color: var(--text); }
.header-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.icon-btn {
  display: inline-flex; justify-content: center; align-items: center; background: none; border: none;
  width: 44px; height: 44px; border-radius: 50%; cursor: pointer; color: var(--muted); transition: var(--transition);
}
.icon-btn:hover { background: var(--surface); color: var(--accent); transform: scale(1.05); }
.icon-btn .material-symbols-outlined { font-size: 26px; }

/* ========== NAVIGAZIONE HEADER ========== */
.header-nav {
    display: none;
    gap: 12px;
    margin-left: 24px;
}
.header-nav a {
    font-size: 16px;
    font-weight: 700;
    padding: 8px 12px;
    border-radius: 99px;
    border-bottom: none;
}
.header-nav a:hover, .header-nav a:focus {
    background-color: var(--surface);
    color: var(--accent-darker);
}
@media(min-width: 1024px) {
    .header-nav { display: flex; }
    .hamburger { display: none; }
    .state { display: inline-flex; }
}

/* ========== SEARCH BAR HEADER ========== */
.header-search {
  position: relative;
  width: 100%;
  order: 3;
  flex-basis: 100%;
  margin-top: 12px;
  display: none;
}
.header-search-wrapper { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 99px; background: var(--bg); padding-left: 16px; transition: var(--transition); }
.header-search-wrapper:focus-within { border-color: var(--accent-lighter); box-shadow: 0 0 0 3px rgba(194, 37, 92, .1); }
.header-search .search-icon { color: var(--muted); width: 20px; height: 20px; margin-right: 8px; font-size: 22px; }
#headerSearchInput { width: 100%; height: 44px; border: none; background: transparent; font-size: 16px; padding-right: 16px; }
#headerSearchInput:focus { outline: none; }
#headerSearchResults {
    position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 55;
    background: var(--bg); border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
    max-height: 60vh; overflow-y: auto; padding: 8px;
    opacity: 0; transform: translateY(-10px) scale(0.98); pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}
#headerSearchResults.visible { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.result-item { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 10px; cursor: pointer; font-weight: 600; text-align: left; width: 100%; background: none; border: none; font-size: 15px; }
.result-item:hover, .result-item:focus { background: var(--surface); color: var(--accent-darker); outline:none; }
.result-item mark { background: rgba(194, 37, 92, .15); border-radius: 4px; padding: 2px 4px; color: inherit; }
.result-item .icon-wrap { width: 44px; height: 44px; border-radius: 12px; }
.result-item .icon-wrap .material-symbols-outlined {
  font-size: 24px;
  width: 24px;
  height: 24px;
}

/* Stili per bottoni ricerca mobile */
.search-open-btn {
    display: inline-flex;
}
.search-open-btn .search-icon {
    width: 24px;
    height: 24px;
    font-size: 26px;
}
.search-close-btn {
    display: none;
    padding: 0 8px;
    width: 44px; height: 44px;
    border-radius: 50%;
}
.search-close-btn .material-symbols-outlined { font-size: 22px; }

/* Stili per stato ricerca attiva su mobile */
@media (max-width: 767.98px) {
    .header.search-is-active .header-search {
        display: block; 
        order: 1; 
        margin-top: 0;
    }
    .header.search-is-active .header-search-wrapper {
        padding-right: 8px; 
    }
    .header.search-is-active .search-close-btn {
        display: inline-flex; 
    }
    .header.search-is-active .brand,
    .header.search-is-active .header-nav,
    .header.search-is-active .header-actions {
        display: none;
    }
}

/* Media query 768px (Tablet) corretta */
@media(min-width: 768px) {
    .search-open-btn {
        display: none; 
    }
    .header-search {
        display: block; 
        width: auto;
        order: 1; 
        flex-basis: auto;
        flex-grow: 1;
        max-width: 400px;
        margin-top: 0;
    }
    .header-actions {
        order: 2; 
    }
    .search-close-btn {
        display: none !important; 
    }
}

/* Modifica per far spazio alla nav desktop */
@media(min-width: 1024px) {
    .header-search {
        order: 1;
        flex-grow: 0; 
    }
    .header-nav { order: 2; flex-grow: 1; justify-content: center; }
    .header-actions {
        order: 3; 
    }
}

.state {
  display: none; font-size: 12px; font-weight: 700; padding: 4px 8px; border-radius: 999px;
  align-items: center; gap: 6px; border: 1px solid;
}
.state::before { content: ''; display: block; width: 8px; height: 8px; border-radius: 50%; }
.state.open { background: #e6fcf5; color: #067647; border-color: #a6f4d2; }
.state.open::before { background: #12b76a; }
.state.closed { background: #fff1f2; color: #c01048; border-color: #f9a4bc; }
.state.closed::before { background: #e11d48; }
@media (min-width: 1024px) { .state { display: inline-flex; } }
@media (max-width: 1023.98px) { .header-nav { display: none; } }
@media (max-width: 767.98px) { .search-open-btn { display: inline-flex; } .hamburger { margin-left: -12px; } }


/* ========== MENU MOBILE ========== */
.mobile { position: fixed; inset: 0; z-index: 60; background: rgba(30, 41, 59, .2); opacity: 0; pointer-events: none; transition: opacity .3s ease; }
.mobile.open { opacity: 1; pointer-events: auto; }
.mobile .sheet { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: var(--bg); display: flex; flex-direction: column; transform: translateY(100%); transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1); box-shadow: none; }
.mobile.open .sheet { transform: translateY(0); }
.mobile .head { display: flex; justify-content: space-between; align-items: center; padding: 16px var(--pad-x); border-bottom: 1px solid var(--line); padding-top: calc(16px + env(safe-area-inset-top)); }
.mobile a { border-bottom: none; }
.mobile .mobile-panel { padding: 24px var(--pad-x); display: flex; flex-direction: column; gap: 24px; height: 100%; overflow-y: auto; }
.mobile .cta { display: flex; flex-direction: column; gap: 12px; margin-top: auto; padding-top: 16px; padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
.mobile .socials { display: flex; justify-content: center; gap: 16px; padding-top: 24px; margin-top: 24px; border-top: 1px solid var(--line); }
.mobile .socials a { color: var(--muted); }
.mobile .socials a:hover { color: var(--accent); transform: translateY(-2px); }
.mobile .socials svg { width: 28px; height: 28px; }

/* ========== NAVIGAZIONE MOBILE ========== */
.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 16px 0;
}
.mobile-nav a {
    font-size: 18px;
    font-weight: 700;
    padding: 12px;
    border-radius: 12px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
    background-color: var(--surface);
    color: var(--accent-darker);
}


/* ========== INTRO MENU MOBILE ========== */
.mobile-intro { text-align: center; padding-bottom: 24px; }
.mobile-intro img { width: 100%; max-width: 250px; border-radius: var(--radius-md); margin: 0 auto 16px; }
.mobile-intro p { font-size: 16px; color: var(--muted); margin: 0; max-width: 35ch; margin-left: auto; margin-right: auto; }

/* ========== MODALI & POPUP ========== */
.modal-base { position: fixed; inset: 0; z-index: 80; display: flex; padding: 1rem; opacity: 0; pointer-events: none; transition: opacity .25s ease; }
.modal-base .dialog { position: relative; width: 100%; background: var(--bg); box-shadow: var(--shadow-lg); transition: transform .25s ease; }
.modal-base .backdrop { position: absolute; inset: 0; background: rgba(30, 41, 59, .6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.modal-base .close { position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; border-radius: 50%; background: none; border: none; cursor: pointer; display: grid; place-items: center; color: var(--muted); transition: var(--transition); z-index: 10; }
.modal-base .close:hover { background: var(--surface); color: var(--text); transform: rotate(90deg); }
.modal-base .close .material-symbols-outlined { font-size: 28px; }
.promo-modal { justify-content: center; align-items: center; }
.promo-modal.open { opacity: 1; pointer-events: auto; }
.promo-modal .dialog { max-width: 480px; border-radius: var(--radius-lg); text-align: center; padding: 40px; transform: scale(0.95); }
.promo-modal.open .dialog { transform: scale(1); }
.promo-modal .icon-background { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; background-color: var(--surface); display: grid; place-items: center; }
.promo-modal .icon-background .material-symbols-outlined {
  font-size: 32px;
  width: 32px;
  height: 32px;
  color: var(--accent);
}
.promo-modal h3 { margin: 8px 0; }
.promo-modal p { color: var(--muted); margin-bottom: 24px; }
.promo-modal .actions { display: flex; flex-direction: column; gap: 12px; }

/* ========== FLOATING SWITCHER ========== */
.floating-switcher {
    position: fixed;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    z-index: 40;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 8px;
    border-radius: 99px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--line);
}
.switch-btn {
    width: 48px; height: 48px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: grid;
    place-items: center;
    background-color: transparent;
    color: var(--muted);
    transition: var(--transition);
    position: relative;
}
.switch-btn:hover {
    color: var(--accent);
    background-color: var(--surface);
}
.switch-btn[data-switch="lab"]:hover {
    color: var(--accent-lab);
    background-color: var(--surface-lab);
}
.switch-btn.active {
    background: linear-gradient(45deg, var(--accent), var(--accent-lighter));
    color: #fff;
    box-shadow: 0 3px 15px -3px rgba(194, 37, 92, 0.6);
}
.switch-btn[data-switch="lab"].active {
    background: linear-gradient(45deg, var(--accent-lab), var(--accent-lab-lighter));
    box-shadow: 0 3px 15px -3px rgba(37, 99, 235, 0.6);
}
.switch-btn img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

@media (max-width: 768px) {
  .floating-switcher { right: 12px; }
  .switch-btn { width: 44px; height: 44px; }
  .switch-btn img { width: 24px; height: 24px; }
}

/* ========== SEZIONI ========== */
.hero {
  position: relative; padding: 120px var(--pad-x); min-height: 70vh;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center; color: #fff; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(23, 30, 43, 0.5), rgba(23, 30, 43, 0.5)), url('https://images.pexels.com/photos/7579831/pexels-photo-7579831.jpeg?auto=compress&cs=tinysrgb&w=1920');
  background-color: #171e2b;
  background-size: cover; background-position: center;
  animation: kenburns 30s ease-in-out infinite alternate;
  z-index: 1;
}
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.1); } }
.hero-content {
  position: relative; z-index: 2; display: flex; flex-direction: column;
  align-items: center; gap: 24px; max-width: 700px;
}
.hero-content h1 {
  font-size: clamp(38px, 6vw, 60px); font-weight: 800; line-height: 1.2; margin: 0;
  background: linear-gradient(45deg, var(--accent-lighter), #FFF);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 4px 15px rgba(0,0,0,0.2); opacity: 0;
  transform: translateY(30px);
  animation: title-fade-in 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.2s forwards;
}
@keyframes title-fade-in { to { opacity: 1; transform: translateY(0); } }
.hero-actions {
  display:flex; gap:12px; margin-top: 16px; flex-wrap: wrap; justify-content: center;
}

.features-carousel-section {
  background: var(--surface); padding: 24px 0; border-bottom: 1px solid var(--line);
}
.features-carousel-wrapper {
  max-width: 1180px; margin: auto; overflow: hidden; position: relative;
  -webkit-mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent);
  mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent);
}
.features-carousel-wrapper:hover .features-carousel-track { animation-play-state: paused; }
.features-carousel-track {
  display: flex; width: fit-content; animation: scroll-features 25s linear infinite;
}
.feature-item {
  display: flex; align-items: center; gap: 12px; padding: 0 24px; color: var(--muted);
  font-weight: 600; white-space: nowrap; font-size: 15px;
}
/* STILE ICONE CAROSELLO (AGGIUNTO) */
.feature-item .material-symbols-outlined {
  font-size: 22px;
  color: var(--accent);
  flex-shrink: 0;
}
@keyframes scroll-features { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.section { padding: 96px 0; }
.section.alt { background: #fafafa; } 
.section-head { max-width: 65ch; margin: 0 auto 56px auto; text-align: center; }
.section-head h2 { margin: 0 0 16px; }
.section-head .kicker { font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); font-size: 15px; margin-bottom: 12px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 28px; margin-top: 48px; }
.service-head { display: flex; align-items: center; gap: 16px; }
.banner-wrapper { padding: 96px 0; }
.banner {
  color: #fff; padding: 56px; border-radius: var(--radius-lg);
  background-color: var(--accent);
  background-image: linear-gradient(90deg, var(--accent) 0%, var(--accent-lighter) 100%), url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  background-blend-mode: overlay;
}
.banner .container { gap: 24px; padding: 0; }
.banner h3 { margin: 0; font-size: clamp(24px, 4vw, 32px); }
.banner p { margin: 8px 0 0 0; opacity: 0.9; }
.feature-list { list-style: none; margin: 24px 0; padding: 0; display: grid; gap: 16px; }
.feature-list li { display: flex; gap: 16px; align-items: center; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--bg); }
.ico-wrap-color { width: 48px; height: 48px; flex-shrink: 0; display: grid; place-items: center; border-radius: 12px; }
.ico-wrap-color .material-symbols-outlined {
  font-size: 26px;
  width: 26px;
  height: 26px;
}
.panel { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; background: var(--bg); }
.panel h3 { margin: 0 0 8px 0; font-size: 24px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.chip { padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; font-weight: 600; font-size: 14px; background-color: #faf5f5; }
.contact-cards { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media(min-width:768px) { .contact-cards { grid-template-columns: repeat(2, 1fr); } }
.contact-card { display: flex; gap: 16px; align-items: center; padding: 24px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-md); }
.contact-card .tiny { font-size: 14px; color: var(--muted); margin-top: 4px; }
.contact-card a { border-bottom: none; }
.lab-features { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 20px; }
.lab-features li { display: flex; align-items: flex-start; gap: 16px; }
.lab-features .material-symbols-outlined {
  font-size: 24px;
  width: 24px;
  height: 24px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 3px;
}

.lab-logo {
    height: 50px;
    width: auto;
    margin-bottom: 16px;
}

/* ========== CAROUSEL GALLERIA ========== */
.carousel-container {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch; 
  scrollbar-width: none; 
  margin: 0 calc(var(--pad-x) * -1); 
  padding: 10px var(--pad-x); 
}
.carousel-container::-webkit-scrollbar {
  display: none; 
}
.carousel-track {
  display: flex;
  gap: 20px;
}
.carousel-slide {
  flex: 0 0 80%; 
  scroll-snap-align: center; 
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}
.carousel-slide:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
}
.carousel-slide img {
  display: block;
  width: 100%;
  height: 400px; 
  object-fit: cover; 
  background-color: var(--surface); 
}
@media (min-width: 768px) {
  .carousel-slide {
    flex-basis: 40%; 
  }
}
@media (min-width: 1024px) {
  .carousel-slide {
    flex-basis: 30%; 
  }
}

/* ========== FOOTER ========== */
.site-footer {
  color: #cbd5e1; font-size: 16px;
  background: #1e293b; background: linear-gradient(165deg, #29374d 0%, #0f172a 100%);
}
.site-footer a { color: #e2e8f0; border-bottom: none; }
.site-footer a:hover { color: var(--accent-lighter); text-decoration: underline; }
.footer-top { padding: 80px 0; border-bottom: 1px solid #334155; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 48px 32px; }
.footer-brand .name { font-weight: 800; font-size: 26px; color: #fff; }
.footer-brand .name span { color: var(--accent-lighter); }
.foot-desc { margin: 16px 0 0 0; line-height: 1.7; max-width: 40ch; }
.foot-head { font-weight: 700; margin: 0 0 20px 0; color: var(--accent-lighter); font-size: 16px; letter-spacing: .04em; text-transform: uppercase; }
.footlinks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.hours-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 15px; }
.hours-list li { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 10px; border-bottom: 1px solid #334155; }
.hours-list li:last-child { border-bottom: none; }
.hours-list span:last-child { font-weight: 600; color: #fff; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: 16px; padding: 24px 0; font-size: 14px; color: #94a3b8;
}
.footer-bottom a { color: #cbd5e1; }
.footer-bottom .mini-nav { display: flex; gap: 24px; }
@media (max-width: 768px) {
  .footer-bottom { flex-direction: column; justify-content: center; text-align: center; }
}

/* ========== FIX ACCESSIBILITÀ ========== */
@media (prefers-reduced-motion: reduce) {
  .hero::before {
    animation: none;
  }
  .features-carousel-track {
    animation: none;
    flex-wrap: wrap; 
    justify-content: center;
    transform: translateX(0) !important;
  }
  .features-carousel-wrapper {
    -webkit-mask-image: none; 
    mask-image: none;
  }
  .reveal {
      opacity: 1; 
      transform: translateY(0);
  }
}