/*
  BR-Service UI System
  Palette comes from the provided logo:
  - Orange: #F39415
  - Grey:   #5C5C5B
*/

:root{
  --bg: #ffffff;
  --bg-elev: #f6f7f9;
  --bg-elev-2: #eef1f5;
  --text: #0b1220;
  --text-2: #1b2435;
  /* Muted is tuned for readability in both themes */
  --muted: #334155;
  --muted-2: #475569;
  --border: rgba(11,18,32,.12);
  --shadow: 0 10px 30px rgba(11,18,32,.10);
  --shadow-soft: 0 8px 18px rgba(11,18,32,.07);
  --accent: #F39415; /* logo orange */
  --accent-2: #5C5C5B; /* logo grey */
  --accent-soft: rgba(243,148,21,.14);
  --radius: 18px;
  --container: 1120px;
  --ring: rgba(243,148,21,.55);
  --ring-2: rgba(11,18,32,.18);
}

html[data-theme="dark"]{
  --bg: #0b0f14;
  --bg-elev: #111827;
  --bg-elev-2: #0f1722;
  --text: #f4f6fb;
  --text-2: #e7ebf6;
  --muted: #c9d2e6;
  --muted-2: #aeb9d3;
  --border: rgba(244,246,251,.12);
  --shadow: 0 14px 40px rgba(0,0,0,.45);
  --shadow-soft: 0 10px 22px rgba(0,0,0,.35);
  --accent-soft: rgba(243,148,21,.20);
  --ring: rgba(243,148,21,.6);
  --ring-2: rgba(244,246,251,.16);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background: var(--bg);
  color: var(--text);
  line-height:1.45;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Better keyboard navigation */
:focus-visible{
  outline: 3px solid var(--ring);
  outline-offset: 3px;
}

a{color:inherit; text-decoration:none}
img{max-width:100%; display:block}

.container{max-width:var(--container); margin:0 auto; padding:0 24px}
.section{padding:84px 0}
.section.tight{padding:56px 0}


/* =========================================================
   NAVBAR (UPDATED: logo grande + menu centrato + destra IG)
   Mantiene funzioni: sticky, blur background, hover underline,
   icon button styling e responsive.
   ========================================================= */

/* =======================
   NAVBAR
   ======================= */
.nav{
  position: fixed;         /* ✅ sempre visibile */
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;            /* ✅ sopra a tutto */

  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

/* ✅ evita che il contenuto finisca sotto la navbar */
body{
  padding-top: 76px; /* altezza nav */
}

.nav-inner{
  display: flex;
  align-items: center;
  position: relative;
}

.brand{
  margin-right: auto;   /* logo a sinistra */
}

.nav-right{
  margin-left: auto;    /* <<< QUESTO BLOCCA TUTTO A DESTRA */
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
}

/* =======================
   LOGO GRANDE (come sketch)
   ======================= */
.brand{
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0;
  gap: 0;
  font-weight: 800;
  letter-spacing: .2px;
}

.brand img{
  height: 64px;              /* <<< DESKTOP resta 64px */
  width: auto;
  object-fit: contain;
  display: block;
}

/* =======================
   MENU CENTRALE
   ======================= */
.nav-links{
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  
  display: flex;
  gap: 42px;
  font-weight: 700;
  color: var(--text);
}

.nav-links a{
  position: relative;
  padding: 6px 2px;
  border-radius: 999px;
}

.nav-links a::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:-6px;
  height:2px;
  border-radius:999px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .2s ease;
  opacity:.85;
}

.nav-links a:hover::after{
  transform: scaleX(1);
}

.nav-links a.active::after{
  transform: scaleX(1);
}

/* =======================
   DESTRA: INSTAGRAM + THEME
   ======================= */
.nav-right{
  margin-left: auto;
}

/* icon button (override pulito e coerente) */
.icon-btn{
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 76%, var(--bg-elev));
  color: var(--text);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}

.icon-btn:hover{
  transform: translateY(-1px);
  background: var(--bg-elev);
  border-color: color-mix(in srgb, var(--accent) 22%, var(--border));
}

.icon-btn:active{transform: translateY(0)}

.icon{
  width: 20px;
  height: 20px;
}


/* =======================
   BUTTONS
   ======================= */
.btn{
  display:inline-flex; align-items:center; gap:10px;
  padding:12px 18px;
  border-radius: 12px;
  font-weight:700;
  border:1px solid var(--border);
  background: var(--bg);
  box-shadow: var(--shadow-soft);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
  position:relative;
  overflow:hidden;
}
.btn::before{
  content:"";
  position:absolute;
  inset:-2px;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,.16) 20%, transparent 40%);
  transform: translateX(-120%);
  transition: transform .55s ease;
  pointer-events:none;
}
.btn:hover{transform: translateY(-1px); box-shadow: var(--shadow)}
.btn:hover::before{transform: translateX(120%)}
.btn:active{transform: translateY(0)}
.btn.primary{
  background: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 65%, #000);
  color: #151515;
}
.btn.ghost{
  background: transparent;
  box-shadow:none;
}
.btn.ghost:hover{background: var(--bg-elev)}
.btn .arrow{transition: transform .15s ease}
.btn:hover .arrow{transform: translateX(2px)}


/* =======================
   HERO
   ======================= */
.hero{
  padding:72px 0 24px;
  position:relative;
  overflow:hidden;
}
.hero-grid{
  display: grid;
  grid-template-columns: minmax(520px, 1fr) 1.2fr;
  gap: 44px;
  align-items: center;
}
.kicker{display:inline-flex; gap:10px; align-items:center; padding:8px 12px; border-radius:999px; background: var(--accent-soft); border:1px solid var(--border); color: var(--muted); font-weight:700}
.kicker-dot{height:10px; width:10px; border-radius:999px; background: var(--accent)}
.h1{
  font-size: clamp(40px, 5.4vw, 64px);
  line-height:1.02;
  margin:16px 0 14px;
  letter-spacing:-.02em;
}
.h1 .accent{color: var(--accent)}
.sub{
  font-size:18px;
  color: var(--muted);
  max-width: 58ch;
}
.hero-actions{
  display: flex;
  gap: 14px;
  flex-wrap: nowrap;   /* <<< QUESTA È LA CHIAVE */
  margin-top: 22px;
}

.hero-actions .btn{
  white-space: nowrap;
}

.hero-visual{
  position:relative;
  min-height:420px;
  display:grid; place-items:center;
}

.device{
  width: 100%;
  max-width: 650px; /* <-- aumenta questo per ingrandire */
  filter: drop-shadow(0 10px 20px rgba(11,18,32,.12));
  transform: none !important;
  animation: none !important;
  transition: none;
  will-change: auto;
}

.grid3{display:grid; grid-template-columns:repeat(3,1fr); gap:18px}
.card{
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding:22px;
  box-shadow: var(--shadow-soft);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}
.card:hover{
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: color-mix(in srgb, var(--accent) 26%, var(--border));
  background: linear-gradient(180deg, color-mix(in srgb, var(--bg-elev) 88%, var(--accent-soft)), var(--bg-elev));
}
.card h3{margin:10px 0 8px; font-size:18px}
.card p{margin:0; color: var(--muted)}
.badge{
  display:inline-flex; align-items:center; gap:8px;
  font-weight:800;
  color: var(--accent);
}
.badge svg{width:18px; height:18px}

.section-title{
  text-align:center;
  margin-bottom:26px;
}
.section-title h2{
  margin:0;
  font-size:34px;
  letter-spacing:-.02em;
}
.section-title p{margin:10px auto 0; color: var(--muted); max-width:72ch}

.steps{
  display:grid; grid-template-columns: repeat(3, 1fr); gap:18px;
}
.step{
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding:22px;
  position:relative;
  overflow:hidden;
}
.step .num{
  position:absolute; right:18px; top:14px;
  font-size:23px; font-weight:900;
  color: color-mix(in srgb, var(--accent) 78%, transparent);
}
.step h3{margin:0 0 8px; font-size:18px}
.step p{margin:0; color: var(--muted)}

.cta{
  background: linear-gradient(135deg, rgba(243,148,21,.95), rgba(243,148,21,.55));
  border-radius: 24px;
  padding:40px;
  color:#151515;
  border: 1px solid rgba(0,0,0,.08);
  display:flex; align-items:center; justify-content:space-between;
  gap:22px;
}
.cta h3{margin:0; font-size:30px; line-height:1.05}
.cta p{margin:10px 0 0; max-width:66ch; opacity:.92}
.cta-actions{display:flex; gap:12px; flex-wrap:wrap}
.btn.dark{
  background:#151515; color:#fff; border-color: rgba(0,0,0,.2)
}
.btn.dark:hover{box-shadow: 0 16px 34px rgba(0,0,0,.25)}

.faq{max-width: 860px; margin: 0 auto; display:grid; gap:14px}
details{
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding:18px 18px;
  transition: border-color .18s ease, background .18s ease;
}
details:hover{border-color: color-mix(in srgb, var(--accent) 22%, var(--border))}
summary{
  cursor:pointer;
  font-weight:800;
  list-style:none;
  display:flex; align-items:center; justify-content:space-between;
  gap:18px;
}
summary::-webkit-details-marker{display:none}
details p{margin:12px 0 0; color: var(--muted)}
.chev{transition: transform .2s ease}
details[open] .chev{transform: rotate(180deg)}

.footer{
  padding:36px 0 46px;
  border-top: 1px solid var(--border);
  color: var(--muted);
}
.footer-grid{
  display:grid; grid-template-columns: 1.2fr .8fr; gap:18px;
  align-items:start;
}
.small{font-size:14px; color: var(--muted)}

.hr{height:1px; background: var(--border); margin:18px 0}

/* catalog */
.toolbar{
  display:flex; gap:10px; flex-wrap:wrap;
  margin: 16px 0 24px;
  align-items:center;
  justify-content:space-between;
}
.pills{display:flex; gap:10px; flex-wrap:wrap}
.pill{
  padding:10px 12px;
  border-radius:999px;
  border:1px solid var(--border);
  background: var(--bg);
  font-weight:800;
  color: var(--muted);
  cursor:pointer;
  transition: transform .15s ease, background .15s ease;
}
.pill:hover{transform: translateY(-1px); background: var(--bg-elev); color: var(--text)}
.pill.active{
  background: var(--accent-soft);
  color: var(--text);
  border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
}
.products{display:grid; grid-template-columns: repeat(3, 1fr); gap:18px}
.products[data-empty="true"]{
  grid-template-columns:1fr;
}
.prod h3{margin:0 0 8px; font-size:18px}
.price{font-weight:900; font-size:22px}
.meta{margin:10px 0 0; padding-left:18px; color: var(--muted)}
.meta li{margin:6px 0}

.toolbar .search{
  flex: 1 1 320px;
  max-width: 420px;
  display:flex;
  gap:10px;
  align-items:center;
  justify-content:flex-end;
}
.input{
  width:100%;
  padding:12px 14px;
  border-radius: 14px;
  border:1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  box-shadow: var(--shadow-soft);
}
.input::placeholder{color: var(--muted-2)}
.input:focus{outline:none}

.empty{
  border:1px dashed var(--border);
  border-radius: var(--radius);
  background: var(--bg-elev);
  padding:18px;
  color: var(--muted);
}

/* motion */
.reveal{opacity:0; transform: translateY(12px); transition: opacity .65s ease, transform .65s ease}
.reveal.in{opacity:1; transform: translateY(0)}
.float{animation: floaty 4.8s ease-in-out infinite}
@keyframes floaty{
  0%,100%{transform: translateY(0) rotate(-8deg)}
  50%{transform: translateY(-10px) rotate(-6deg)}
}

/* Hero tilt driven by CSS vars from JS */
.tilt{
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .18s ease;
}

/* micro-interactions */
.btn[data-magnetic="true"]{will-change: transform}
.btn .ripple{
  position:absolute;
  border-radius:999px;
  transform: translate(-50%,-50%);
  pointer-events:none;
  background: color-mix(in srgb, var(--accent) 45%, transparent);
  width: 10px; height: 10px;
  opacity:.65;
  animation: ripple .65s ease-out forwards;
}
@keyframes ripple{
  to{width: 440px; height: 440px; opacity:0}
}

/* glossy hover sheen for cards */
.card{
  position:relative;
  overflow:hidden;
}
.card::after{
  content:"";
  position:absolute;
  inset:-2px;
  background: radial-gradient(500px circle at var(--mx, 50%) var(--my, 30%), rgba(243,148,21,.12), transparent 55%);
  opacity:0;
  transition: opacity .25s ease;
  pointer-events:none;
}
.card:hover::after{opacity:1}

/* tilt cards (JS sets --rx/--ry) */
.card[data-tilt="true"]{
  transform: perspective(900px) rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg));
}
.card[data-tilt="true"]:hover{
  box-shadow: var(--shadow);
}

@keyframes blob{
  0%,100%{transform: translate(0,0) scale(1)}
  50%{transform: translate(26px,-18px) scale(1.06)}
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce){
  *{scroll-behavior:auto !important}
  .float{animation:none !important}
  .reveal{opacity:1 !important; transform:none !important}
  .btn::before{display:none}
  .tilt{transition:none}
}

/* responsive */
@media (max-width: 980px){
  .hero-grid{grid-template-columns: 1fr; gap:26px}
  .hero-visual{min-height: 340px}
  .grid3, .steps, .products{grid-template-columns:1fr}
  .cta{flex-direction:column; align-items:flex-start}
  .nav-links{display:none}
}

@media (max-width: 480px){
  .hero-actions{
    flex-direction: column;   /* mobile: uno sotto l’altro */
    align-items: stretch;
  }

  .hero-actions .btn{
    justify-content: center;  /* CTA centrati */
  }
}

@media (max-width: 480px){
  /* CTA in colonna (già fatto) */
  .hero-actions{
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn{
    justify-content: center;
  }

  /* 🔥 NASCONDE IL FOLLETTO SU MOBILE */
  .hero-visual{
    display: none;
  }
}

@media (max-width: 480px){
  .h1{
    font-size: clamp(32px, 8vw, 40px);
  }
}

/* extra small: logo leggermente più piccolo */
@media (max-width: 480px){
  .brand img{height:34px}
}

/* =======================
   MOBILE MENU (DRAWER)
   ======================= */

.menu-btn{ display:none; } /* desktop: nascosto */

/* ✅ Mobile: nascondo menu centrale e mostro hamburger */
@media (max-width: 980px){
  .menu-btn{ display:grid; }
  .nav-links{ display:none; }
}

/* Catalogo: allinea descrizione a sinistra */
.section-title[style*="text-align:left"] p{
  margin-left: 0;
  margin-right: 0;
}

/* =======================
   FOOTER (white + compact + CTA inline)
   ======================= */

.footer-dark{
  background: #ffffff;               /* ✅ bianco */
  color: var(--text);
  border-top: 1px solid var(--border);
}

.footer-top{
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 24px;
  padding: 22px 0 18px;             /* ✅ più basso */
  align-items: start;
}

/* LOGO grande (come sketch) */
.footer-dark .brand img{
  height: 96px;                      /* ✅ aumenta qui se lo vuoi ancora più grande */
  width: auto;
}

/* Titoli */
.footer-title{
  font-size: 18px;
  font-weight: 900;
  margin: 0 0 10px;
  color: var(--text);
}

/* Liste */
.footer-list{
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-list li{
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
}
.footer-list a{ color: inherit; }
.footer-list a:hover{ color: var(--accent); }

/* Social + CTA in riga */
.footer-social-row{
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Bottone social tondo */
.footer-social-btn{
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  color: var(--text);
  box-shadow: var(--shadow-soft);
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.footer-social-btn:hover{
  transform: translateY(-1px);
  background: var(--bg-elev);
  border-color: color-mix(in srgb, var(--accent) 22%, var(--border));
}

/* CTA inline, armonico */
.footer-btn{
  height: 44px;                      /* ✅ stessa altezza del social */
  padding: 0 18px;
  border-radius: 14px;
  background: var(--accent);
  color: #151515;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid color-mix(in srgb, var(--accent) 65%, #000);
  box-shadow: var(--shadow-soft);
  transition: transform .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.footer-btn:hover{
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

/* Divider + bottom */
.footer-divider{
  height: 1px;
  background: var(--border);
  margin: 0;
}
.footer-bottom{
  text-align: center;
  padding: 14px 0 18px;              /* ✅ basso */
  font-size: 14px;
  color: var(--muted);
}

/* Responsive */
@media (max-width: 980px){
  .footer-top{
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }
}
@media (max-width: 480px){
  .footer-top{
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 18px 0 14px;
  }
  .footer-social-row{
    flex-wrap: wrap;
  }
}

.footer-bottom{
  text-align: center;
  padding: 22px 0 30px; /* ← più in basso rispetto a prima */
  font-size: 14px;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-powered{
  font-size: 13px;
  color: var(--muted-2);
}

.footer-powered a{
  color: var(--accent-2);
  font-weight: 700;
}

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

/* =======================
   FOOTER – SPACING FIX
   ======================= */

.footer{
  padding: 40px 0 0; /* spazio sopra */
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.footer-grid{
  display:grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 32px;
  align-items: center;
  padding-bottom: 32px; /* spazio sotto contenuto */
}

/* linea di separazione */
.footer-divider{
  height: 1px;
  background: var(--border);

  margin-top: 40px;   /* ← ABBASSA LA LINEA */
  margin-bottom: 0;
}

/* blocco finale copyright */
.footer-bottom{
  padding: 24px 0 28px; /* spazio uguale sopra/sotto */
  text-align: center;
  font-size: 14px;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* powered by */
.footer-powered{
  font-size: 13px;
  color: var(--muted-2);
}

.footer-powered a{
  color: var(--accent-2);
  font-weight: 700;
}

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

.footer-list a{
  color: inherit;
  font-weight: 600;
}

.footer-list a:hover{
  color: var(--accent);
  text-decoration: underline;
}

section[id]{
  scroll-margin-top: 90px; /* metti 76px se la nav è alta 76 */
}

/* =======================
   PREVENTIVO – NO HOVER / NO MOTION
   ======================= */

.preventivo-card,
.preventivo-card:hover{
  transform: none !important;
  box-shadow: var(--shadow-soft) !important;
  transition: none !important;
}

/* disabilita effetto glossy */
.preventivo-card::after{
  display: none !important;
}

/* disabilita reveal animation */
.preventivo-card.reveal{
  opacity: 1 !important;
  transform: none !important;
}

/* ===== PREVENTIVO TITLE ===== */
.preventivo-title {
  font-size: 58px;
  font-weight: 800;
}

@media (max-width: 768px) {
  .preventivo-title {
    font-size: 42px;
  }
}

/* accent già esiste, ma per sicurezza */
.preventivo-title .accent {
  color: var(--accent);
}

.preventivo-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: var(--accent);
  border-radius: 4px;
  margin-top: 10px;
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 2px;
  background: var(--accent); /* arancione */
  border-radius: 2px;
}

.nav-links a.active::after{ transform: scaleX(1); }

/* =====================================================
   ✅ SOLO MOBILE: logo grande + solo hamburger a destra
   (DESKTOP INALTERATO)
   ===================================================== */
@media (max-width: 980px){

  /* ✅ questa era la causa del “desktop piccolo”: ora è SOLO mobile */
  .nav .nav-inner{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
  }

  /* Logo più grande su mobile */
  .nav .brand img{
    height: 44px !important;  /* alza a 48 se vuoi */
    width: auto !important;
  }

  /* Nascondi tutto a destra tranne hamburger */
  .nav-right a.icon-btn,
  .nav-right button#themeToggle{
    display: none !important;
  }

  /* Mostra hamburger */
  .nav-right .menu-btn{
    display: grid !important;
  }
}

/* ===============================
   DRAWER "GLASS" + ANIMAZIONE
   =============================== */
.drawer{
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transition: opacity .25s ease;
}

.drawer.is-open{
  pointer-events: auto;
  opacity: 1;
}

.drawer-backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.25);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity .3s ease;
}

.drawer.is-open .drawer-backdrop{
  opacity: 1;
}

.drawer-panel{
  position:absolute;
  top: 10px;
  left: 10px;
  right: 10px;

  border-radius: 18px;
  padding: 16px;

  background: rgba(255,255,255,.72);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);

  border: 1px solid rgba(255,255,255,.55);
  box-shadow: 0 18px 50px rgba(0,0,0,.18);

  /* animazione */
  transform: translateY(-16px) scale(.96);
  opacity: 0;

  transition:
    transform .45s cubic-bezier(.22,1,.36,1),
    opacity .35s ease;
}

.drawer.is-open .drawer-panel{
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* Top row: logo + X */
.drawer-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(0,0,0,.08);
}

.drawer-brand img{
  height: 30px;
  width:auto;
  display:block;
}

/* Link verticali centrati */
.drawer-links{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap: 16px;
  padding: 18px 8px 8px;
}

.drawer-links a{
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration:none;
  color: var(--text);
  font-size: 18px;
  padding: 6px 8px;
}

/* animazione “stagger” link */
.drawer-links a{
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity .35s ease,
    transform .35s ease;
}
.drawer.is-open .drawer-links a{
  opacity: 1;
  transform: translateY(0);
}
.drawer.is-open .drawer-links a:nth-child(1){ transition-delay: .05s }
.drawer.is-open .drawer-links a:nth-child(2){ transition-delay: .10s }
.drawer.is-open .drawer-links a:nth-child(3){ transition-delay: .15s }
.drawer.is-open .drawer-links a:nth-child(4){ transition-delay: .20s }
.drawer.is-open .drawer-links a:nth-child(5){ transition-delay: .25s }

.drawer-links a:active{
  transform: scale(.98);
}

/* dark mode glass */
html[data-theme="dark"] .drawer-panel{
  background: rgba(20,20,20,.55);
  border: 1px solid rgba(255,255,255,.12);
}
html[data-theme="dark"] .drawer-top{
  border-bottom: 1px solid rgba(255,255,255,.12);
}
html[data-theme="dark"] .drawer-links a{
  color: var(--text);
}

/* =========================
   ACTIVE UNDERLINE - DRAWER (MOBILE)
   ========================= */
.drawer-links a{
  position: relative;
}

.drawer-links a::after{
  content:"";
  position:absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  border-radius: 999px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .2s ease;
  opacity: .85;
}

.drawer-links a.active::after{
  transform: scaleX(1);
}

/* ✅ FIX: backdrop sotto, pannello sopra (così i link sono cliccabili) */
.drawer-backdrop{
  z-index: 1;
}
.drawer-panel{
  z-index: 2;
}

/* ✅ underline ACTIVE anche nel drawer */
.drawer-links a{ position: relative; }

.drawer-links a::after{
  content:"";
  position:absolute;
  left:0; right:0;
  bottom:-6px;
  height:2px;
  border-radius:999px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .2s ease;
  opacity:.85;
}
.drawer-links a.active::after{
  transform: scaleX(1);
}

/* Drawer: bottone tema come voce menu */
.drawer-theme-btn{
  all: unset;
  cursor: pointer;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text);
  font-size: 18px;
  padding: 6px 8px;
}

/* underline attiva/hover coerente */
.drawer-theme-btn{
  position: relative;
}
.drawer-theme-btn::after{
  content:"";
  position:absolute;
  left:0; right:0;
  bottom:-6px;
  height:2px;
  border-radius:999px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin:center;
  transition: transform .2s ease;
  opacity:.85;
}
.drawer-theme-btn:hover::after{
  transform: scaleX(1);
}

/* dark mode */
html[data-theme="dark"] .drawer-theme-btn{
  color: var(--text);
}

/* =========================================
   MOBILE NAVBAR – LOGO EXTRA LARGE
   (DESKTOP INALTERATO)
   ========================================= */
@media (max-width: 980px) {

  /* navbar più alta */
  .nav {
    height: 104px;
  }

  body {
    padding-top: 104px;
  }

  /* allineamento verticale perfetto */
  .nav .nav-inner {
    height: 100%;
    align-items: center;
  }

  /* LOGO MOLTO PIÙ GRANDE */
  .nav .brand img {
    height: 68px;       /* 🔥 QUI LA DIMENSIONE DEL LOGO */
    width: auto;
  }

  /* hamburger centrato e proporzionato */
  .nav-right {
    display: flex;
    align-items: center;
    height: 100%;
  }

  .menu-btn {
    width: 52px;
    height: 52px;
  }

  .menu-btn svg {
    width: 26px;
    height: 26px;
  }
}

/* Drawer: azioni a destra (Instagram + Tema + X) */
.drawer-actions{
  display: flex;
  align-items: center;
  gap: 10px;
}

/* =====================================================
   FOOTER — SOLO MOBILE CENTRATO
   ===================================================== */
@media (max-width: 480px){

  .footer{
    text-align: center;
  }

  .footer-top{
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .footer-col{
    align-items: center;
    text-align: center;
  }

  .footer-col .brand{
    justify-content: center;
  }

  .footer-col .brand img{
    margin: 0 auto;
  }

  .footer-list{
    align-items: center;
  }

  .footer-list li{
    justify-content: center;
  }

  .footer-social-row{
    justify-content: center;
  }

  .footer-bottom{
    text-align: center;
    align-items: center;
  }
}

@media (max-width: 980px) {
  .acq-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
  .acq-row #nuovoHint {
    grid-column: 1 / -1;
    margin-top: -4px;
    color: var(--muted);
  }
}

.section-title-line{
  display: inline-block;
}

.section-title-line::after{
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: var(--accent);
  border-radius: 4px;
  margin-top: 10px;
}

.btn.white {
  background: #ffffff;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn.white:hover {
  background: var(--bg-elev);
  border-color: color-mix(in srgb, var(--accent) 25%, var(--border));
}

.footer-list li span {
  color: var(--muted);
}

.footer-list li:last-child span {
  color: #c44;
  font-weight: 600;
}

/* Footer: lista orari compatta e uniforme */
.footer-list.footer-hours{
  gap: 6px;
}

.footer-list.footer-hours li{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
}

/* Giorni (Lun–Ven, Sabato) */
.footer-list.footer-hours .k{
  font-weight: 600;          /* NON bold */
  color: var(--text);        /* stesso colore per tutti */
  white-space: nowrap;
}

/* Orari */
.footer-list.footer-hours .v{
  font-weight: 400;
  color: var(--muted);
  white-space: nowrap;
}

/* Mobile */
@media (max-width: 480px){
  .footer-list.footer-hours li{
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }
  .footer-list.footer-hours .v{
    white-space: normal;
  }
}

/* Footer ORARI — mobile centrato */
@media (max-width: 768px){
  .footer-list.footer-hours{
    align-items: center;
    text-align: center;
  }

  .footer-list.footer-hours li{
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
  }

  .footer-list.footer-hours .k,
  .footer-list.footer-hours .v{
    text-align: center;
  }
}

/* Desktop only */
@media (min-width: 981px){
  .footer-top{
    gap: 48px;
  }
}

.footer-hours li{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:16px;
}

.footer-hours .k{
  white-space:nowrap;
  flex:0 0 auto;
}

.footer-hours .v{
  white-space:nowrap;
  text-align:right;
  flex:1;
}

/* FIX: CTA button "Contattaci" invisibile in dark mode */
html[data-theme="dark"] .cta .cta-actions .btn:not(.primary):not(.dark){
  color: #fff;
  border-color: rgba(255,255,255,.22);
}

html[data-theme="dark"] .cta .cta-actions .btn:not(.primary):not(.dark):hover{
  border-color: rgba(255,255,255,.35);
}