/* ============================================================
   Layout — barra annuncio, marquee, header, drawer, footer,
   pagine policy (usato da index e da pages/*.html)
   ============================================================ */

:focus-visible{ outline:2px solid currentColor; outline-offset:2px; }
body.no-scroll{ overflow:hidden; }

/* ---------- 1. Barra annuncio ---------- */
.announce{ background:var(--red); color:#fff; min-height:36px; display:flex; align-items:center; justify-content:center; padding:4px 16px; }
.announce-text{ margin:0; display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:3px 10px; font-size:13px; font-weight:700; text-transform:uppercase; letter-spacing:.05em; line-height:1.35; text-align:center; }
.announce-timer{ background:rgba(0,0,0,.25); border-radius:4px; padding:2px 8px; white-space:nowrap; }

/* ---------- 2. Marquee ---------- */
.marquee{ background:var(--navy-2); color:#fff; height:50px; display:flex; align-items:center; overflow:hidden; }
.mq-track{ display:flex; width:max-content; animation:mq-scroll 35s linear infinite; }
.marquee:hover .mq-track{ animation-play-state:paused; }
.mq-group{ display:flex; align-items:center; flex:none; gap:190px; padding-right:190px; }
.mq-item{ font-size:15px; font-weight:600; text-transform:uppercase; letter-spacing:.06em; white-space:nowrap; }
@keyframes mq-scroll{ to{ transform:translateX(-50%); } }

/* ---------- 3. Header ---------- */
.site-header{ background:#fff; border-bottom:1px solid var(--line); }
.header-grid{ display:grid; grid-template-columns:1fr auto 1fr; align-items:center; gap:20px; min-height:130px; padding-top:16px; padding-bottom:16px; }
.header-left{ display:flex; flex-direction:column; align-items:flex-start; gap:12px; }
.hamburger{ display:none; width:40px; height:40px; margin:-8px; align-items:center; justify-content:center; color:var(--ink); border-radius:8px; }
.main-nav{ display:flex; flex-wrap:wrap; gap:8px 28px; }
.main-nav a{ font-size:14px; font-weight:500; letter-spacing:.06em; }
.main-nav a:hover{ color:var(--navy); }
.product-chip{ display:block; width:fit-content; max-width:100%; background:var(--navy); color:#fff; font-size:12px; font-weight:700; letter-spacing:.03em; line-height:1.3; padding:6px 12px; border-radius:4px; }
.header-logo img{ height:70px; width:auto; }
.header-actions{ display:flex; align-items:center; justify-content:flex-end; gap:14px; }
.icon-btn{ position:relative; display:inline-flex; align-items:center; justify-content:center; width:38px; height:38px; color:var(--ink); }
.icon-btn:hover{ color:var(--navy); }
.cart-badge{ position:absolute; top:0; right:-2px; min-width:17px; height:17px; padding:0 4px; display:flex; align-items:center; justify-content:center; background:var(--navy); color:#fff; font-size:10px; font-weight:700; line-height:1; border-radius:999px; }
.cart-badge[hidden]{ display:none; }

/* Drawer mobile */
.drawer{ position:fixed; inset:0; z-index:1000; visibility:hidden; transition:visibility 0s .3s; }
.drawer.open{ visibility:visible; transition-delay:0s; }
.drawer-overlay{ position:absolute; inset:0; background:rgba(0,0,0,.5); opacity:0; transition:opacity .3s; }
.drawer.open .drawer-overlay{ opacity:1; }
.drawer-panel{ position:absolute; top:0; bottom:0; left:0; width:85%; max-width:360px; background:#fff; padding:18px 22px 28px; display:flex; flex-direction:column; gap:22px; overflow-y:auto; transform:translateX(-100%); transition:transform .3s ease; }
.drawer.open .drawer-panel{ transform:none; }
.drawer-head{ display:flex; align-items:center; justify-content:space-between; gap:12px; }
.drawer-logo img{ height:44px; width:auto; }
.drawer-close{ width:40px; height:40px; margin:-8px; display:inline-flex; align-items:center; justify-content:center; border-radius:8px; }
.drawer-nav{ display:flex; flex-direction:column; gap:6px; }
.drawer-nav a{ padding:10px 0; font-size:15px; font-weight:500; letter-spacing:.06em; border-bottom:1px solid var(--line); }
.drawer-chip{ margin-top:6px; }

/* ---------- 4. Footer ---------- */
.footer-wave{ line-height:0; }
.footer-wave svg{ display:block; width:100%; height:clamp(56px,6vw,84px); }
.wave-back{ fill:#B8C2D6; }
.wave-front{ fill:var(--navy); }
.site-footer{ color:#fff; }
.footer-body{ background:var(--navy); margin-top:-1px; padding-bottom:26px; }
.footer-grid{ display:grid; grid-template-columns:1.05fr 1fr 1.25fr; gap:40px; align-items:start; padding-top:14px; padding-bottom:44px; }
.footer-logo{ width:160px; height:auto; }
.footer-col h3{ color:#fff; font-size:24px; margin-bottom:16px; }
.footer-links ul{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:10px; }
.footer-links a{ color:#fff; }
.footer-links a:hover{ text-decoration:underline; }
.footer-news p{ margin:0 0 16px; }
.news-input{ width:100%; background:transparent; border:1px solid #fff; border-radius:8px; color:#fff; font:inherit; font-size:14px; padding:12px 14px; }
.news-input::placeholder{ color:rgba(255,255,255,.75); }
.news-btn{ width:100%; margin-top:12px; background:#fff; color:var(--navy); font-weight:700; font-size:15px; letter-spacing:.02em; padding:12px 16px; border-radius:8px; transition:filter .2s; }
.news-btn:hover{ filter:brightness(.94); }
.news-msg{ min-height:1.4em; margin:10px 0 0; font-size:14px; }
.news-msg.is-error{ color:var(--yellow); }
.footer-bottom{ border-top:1px solid rgba(255,255,255,.15); padding-top:22px; display:flex; flex-direction:column; align-items:center; gap:14px; }
.payments{ display:flex; flex-wrap:wrap; justify-content:center; gap:8px; }
.pay-badge{ background:#fff; color:var(--ink); border-radius:4px; padding:5px 9px; font-size:9px; font-weight:600; letter-spacing:.03em; line-height:1; }
.copyright{ margin:0; font-size:13px; }

/* ---------- 5. Pagine policy ---------- */
.page-header{ background:#fff; border-bottom:1px solid var(--line); }
.page-header-inner{ min-height:76px; display:flex; align-items:center; justify-content:space-between; gap:16px; }
.back-link{ display:inline-flex; align-items:center; gap:8px; font-size:14px; font-weight:600; letter-spacing:.04em; color:var(--navy); }
.back-link:hover{ text-decoration:underline; }
.page-header-brand img{ height:44px; width:auto; display:block; }
.page-main{ padding:44px 0 64px; }
.page-title{ font-size:clamp(26px,3vw,36px); margin-bottom:14px; }
.page-updated{ margin:0 0 26px; font-size:13px; color:var(--muted); }
.page-content{ max-width:760px; }
.page-content h2{ font-size:20px; margin:30px 0 10px; }
.page-content p{ margin:0 0 12px; }
.page-content ul{ margin:0 0 12px; padding-left:20px; }
.page-content li{ margin-bottom:6px; }
.page-footer-inner{ display:flex; flex-direction:column; align-items:center; gap:20px; padding:34px 0; text-align:center; }
.page-footer-inner .footer-logo{ width:140px; }
.page-footer-links{ list-style:none; margin:0; padding:0; display:flex; flex-wrap:wrap; justify-content:center; gap:8px 26px; }
.page-footer-links a{ color:#fff; }
.page-footer-links a:hover{ text-decoration:underline; }

/* ---------- Responsive (mobile <= 749px) ---------- */
@media (max-width:749px){
  .marquee{ height:40px; }
  .mq-group{ gap:120px; padding-right:120px; }
  .mq-item{ font-size:13px; }
  .header-grid{ min-height:86px; padding-top:10px; padding-bottom:10px; gap:10px; }
  .hamburger{ display:inline-flex; }
  .main-nav, .header-left .product-chip{ display:none; }
  .header-logo img{ height:52px; }
  .icon-account{ display:none; }
  .footer-grid{ grid-template-columns:1fr; gap:30px; padding-bottom:34px; }
  .footer-logo{ width:140px; }
  .footer-wave svg{ height:56px; }
}

@media (prefers-reduced-motion:reduce){
  .mq-track{ animation:none; }
  .drawer, .drawer-panel, .drawer-overlay{ transition:none; }
}
/* review: drawer come riferimento */
.drawer-brand{ font-family:var(--font-head); font-weight:700; font-size:17px; letter-spacing:.02em; color:var(--ink); }
.drawer-chip{ display:none !important; }
@media (max-width:749px){
  .site-footer .footer-brand, .site-footer .footer-col-logo{ display:none; }
  .payments{ gap:5px; flex-wrap:nowrap; }
  .pay-badge{ padding:5px 6px; font-size:8.5px; white-space:nowrap; }
}

/* logo raster (4.46:1) */
.header-logo img{ height:60px; }
.footer-logo{ width:230px; }
.page-header-brand img{ height:40px; }
@media (max-width:749px){
  .header-logo img{ height:38px; }
  .page-header-brand img{ height:34px; }
}
