/* ==========================================================================
   Relax Your Body — foglio di stile
   ========================================================================== */

/* ---- Caratteri (ospitati in locale, licenza OFL) ------------------------- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/inter-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/inter-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/assets/fonts/newsreader-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/assets/fonts/newsreader-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---- Variabili ----------------------------------------------------------- */
:root {
  color-scheme: light;

  --bg: #fffcf5;
  --card: #f4eee2;
  --sand: #f0e9db;
  --sand-deep: #e8dfcd;
  --ink: #252525;
  --ink-2: rgba(37, 37, 37, 0.75);
  --ink-3: rgba(37, 37, 37, 0.56);
  --line: rgba(37, 37, 37, 0.14);
  --line-soft: rgba(37, 37, 37, 0.08);
  --sale: #a3261b;
  --ok: #2f5d3a;
  --white: #fff;

  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --gutter: clamp(16px, 4.2vw, 40px);
  --section: clamp(52px, 6.4vw, 96px);
  --radius: 8px;
  --radius-btn: 9px;
  --header-h: 68px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---- Base ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-2);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-wrap: break-word;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }

h1, h2, h3, h4 { color: var(--ink); font-weight: 500; }

a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 3px; }

[hidden] { display: none !important; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  padding: 10px 16px; background: var(--ink); color: var(--white); border-radius: 6px;
}
.skip:focus { top: 12px; }

.container {
  width: min(100% - 2 * var(--gutter), 1420px);
  margin-inline: auto;
}

.container--left { max-width: 980px; margin-left: max(var(--gutter), calc((100% - 1420px) / 2)); }

.icon { flex: none; }

/* ---- Tipografia ---------------------------------------------------------- */
.display, .h1, .h2, .h3 {
  font-family: var(--serif);
  font-weight: 450;
  color: var(--ink);
  text-wrap: balance;
}
.display { font-size: clamp(38px, 4.3vw, 60px); line-height: 1.03; letter-spacing: -0.032em; }
.h1 { font-size: clamp(34px, 3.6vw, 50px); line-height: 1.06; letter-spacing: -0.03em; }
.h2 { font-size: clamp(28px, 2.7vw, 38px); line-height: 1.1; letter-spacing: -0.03em; }
.h3 { font-size: clamp(22px, 2vw, 28px); line-height: 1.15; letter-spacing: -0.025em; }

.lead { font-size: clamp(17px, 1.35vw, 20px); line-height: 1.38; letter-spacing: -0.015em; color: var(--ink-2); text-wrap: pretty; }

.eyebrow {
  font-size: 11px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2);
}

.link { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.link:hover { text-decoration-thickness: 2px; }

.linkbtn { padding: 0; border: 0; background: none; text-align: left; }

/* ---- Pulsanti ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 10px 24px;
  border: 1px solid transparent; border-radius: var(--radius-btn);
  font-size: 15px; font-weight: 500; line-height: 1.2; letter-spacing: -0.01em; text-align: center;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn:active { transform: scale(0.985); }
.btn--dark { background: var(--ink); color: var(--white); }
.btn--dark:hover { background: #000; }
.btn--light { background: var(--sand); color: var(--ink); }
.btn--light:hover { background: var(--sand-deep); }
.btn--glass { background: rgba(255, 252, 245, 0.92); color: var(--ink); border-color: rgba(255, 255, 255, 0.5); }
.btn--glass:hover { background: var(--white); }
.btn--outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--outline:hover { background: var(--ink); color: var(--white); }
.btn--sm { min-height: 38px; padding: 6px 16px; font-size: 14px; border-radius: 6px; }
.btn--block { width: 100%; }

/* ---- Barra annunci e intestazione --------------------------------------- */
.announce {
  background: var(--ink); color: rgba(255, 255, 255, 0.86);
  font-size: 13px; line-height: 1.3; text-align: center;
}
.announce a {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 38px; padding: 8px var(--gutter);
}
.announce a:hover { color: var(--white); }

.header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.header.is-stuck { border-bottom-color: var(--line-soft); box-shadow: 0 6px 24px -18px rgba(37, 37, 37, 0.5); }
.header__in {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
  min-height: var(--header-h);
}

.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); justify-self: start; }
.logo img { width: 30px; height: 30px; }
.logo span { font-family: var(--serif); font-size: 23px; font-weight: 500; letter-spacing: -0.03em; line-height: 1; white-space: nowrap; }

.nav__list { display: flex; align-items: center; gap: clamp(20px, 3.4vw, 56px); }
.nav__item { position: relative; display: flex; align-items: center; gap: 2px; }
.nav__link {
  display: inline-flex; align-items: center; min-height: var(--header-h);
  font-size: 14px; color: var(--ink-2);
  transition: color 0.15s var(--ease);
}
.nav__link:hover, .nav__link[aria-current] { color: var(--ink); }
.nav__link[aria-current] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.nav__toggle {
  display: inline-grid; place-items: center; width: 28px; height: 28px; padding: 0;
  border: 0; border-radius: 6px; background: none; color: var(--ink-2);
}
.nav__toggle .icon { transition: transform 0.2s var(--ease); }
.nav__toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
.nav__contact { display: none; }

.sub {
  position: absolute; top: 100%; left: 50%; z-index: 5;
  width: min(92vw, 400px); padding: 8px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 24px 48px -24px rgba(37, 37, 37, 0.35);
  opacity: 0; visibility: hidden; transform: translate(-50%, -6px);
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease), visibility 0.18s;
}
.nav__item--sub:hover .sub,
.nav__item--sub:focus-within .sub,
.nav__item--sub.is-open .sub { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.sub__list a {
  display: flex; align-items: center; gap: 14px; padding: 8px; border-radius: 8px; color: var(--ink);
  transition: background-color 0.15s var(--ease);
}
.sub__list a:hover { background: var(--card); }
.sub__thumb { flex: none; width: 52px; height: 52px; padding: 5px; border-radius: 6px; background: var(--card); }
.sub__list strong { display: block; font-size: 15px; font-weight: 500; }
.sub__list small { display: block; font-size: 13px; color: var(--ink-3); }
.sub__all a { justify-content: space-between; padding: 12px 10px; font-size: 14px; font-weight: 500; border-top: 1px solid var(--line-soft); border-radius: 0 0 8px 8px; margin-top: 4px; }

.header__tools { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.header__phone { display: inline-flex; align-items: center; gap: 8px; margin-right: 12px; font-size: 14px; color: var(--ink-2); white-space: nowrap; }
.header__phone:hover { color: var(--ink); }
.cartlink, .burger {
  position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 0; border-radius: 50%; background: none; color: var(--ink);
  transition: background-color 0.15s var(--ease);
}
.cartlink:hover, .burger:hover { background: var(--card); }
.cartlink__count {
  position: absolute; top: 3px; right: 1px;
  min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; background: var(--sale); color: var(--white);
  font-size: 11px; font-weight: 600; line-height: 18px; text-align: center; letter-spacing: 0;
}
.cartlink.is-bump { animation: bump 0.4s var(--ease); }
@keyframes bump { 40% { transform: scale(1.18); } }
.burger { display: none; }
.burger__close { display: none; }

@media (max-width: 1080px) {
  .header__phone span { display: none; }
  .header__phone { margin-right: 0; width: 44px; height: 44px; justify-content: center; border-radius: 50%; color: var(--ink); }
  .header__phone:hover { background: var(--card); }
}

@media (max-width: 860px) {
  :root { --header-h: 60px; }
  .header__in { grid-template-columns: 1fr auto; gap: 8px; }
  .logo span { font-size: 21px; }
  .header__phone { display: none; }

  /* Senza JavaScript il menu resta visibile sotto l'intestazione */
  .nav { grid-column: 1 / -1; grid-row: 2; padding-bottom: 12px; }
  .nav__list { flex-wrap: wrap; gap: 4px 20px; }
  .nav__link { min-height: 40px; font-size: 15px; }
  .nav__toggle, .sub { display: none; }

  .js .burger { display: inline-grid; }
  .js .nav {
    position: fixed; inset: 0; top: var(--nav-top, 98px); z-index: 40;
    display: none; flex-direction: column; gap: 24px;
    padding: 8px var(--gutter) 32px; overflow-y: auto; overscroll-behavior: contain;
    background: var(--bg); border-top: 1px solid var(--line-soft);
  }
  .js .nav-open .nav { display: flex; }
  .js .nav-open .burger__open { display: none; }
  .js .nav-open .burger__close { display: block; }
  .js .nav__list { flex-direction: column; align-items: stretch; flex-wrap: nowrap; gap: 0; }
  .js .nav__item { flex-wrap: wrap; justify-content: space-between; border-bottom: 1px solid var(--line-soft); }
  .js .nav__link { flex: 1; min-height: 58px; font-family: var(--serif); font-size: 26px; letter-spacing: -0.03em; color: var(--ink); }
  .js .nav__link[aria-current] { text-decoration: none; }
  .js .nav__toggle { display: inline-grid; width: 44px; height: 44px; }
  .js .sub {
    position: static; display: none; width: 100%; padding: 0 0 12px;
    border: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; transition: none;
  }
  .js .nav__item--sub.is-open .sub { display: block; }
  .js .nav__item--sub:hover .sub, .js .nav__item--sub:focus-within .sub { transform: none; }
  .js .nav__contact { display: grid; gap: 14px; font-size: 15px; color: var(--ink); }
  .js .nav__contact a { display: inline-flex; align-items: center; gap: 10px; }
}

/* ---- Sezioni ------------------------------------------------------------- */
.section { padding-block: var(--section); }
.section--tight { padding-block: calc(var(--section) * 0.62); }
.section--flush-top { padding-top: 0; }
.section--sand { background: var(--card); }

.sechead { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 32px; margin-bottom: clamp(24px, 3vw, 40px); }
.sechead__text { max-width: 760px; }
.sechead .lead { margin-top: 12px; }
.sechead__link { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; color: var(--ink); white-space: nowrap; }
.sechead__link .icon { transition: transform 0.2s var(--ease); }
.sechead__link:hover .icon { transform: translateX(4px); }

/* ---- Hero ---------------------------------------------------------------- */
.hero { position: relative; background: #f1e6d3; overflow: hidden; }
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 72% 32%; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(250, 240, 222, 0.94) 0%, rgba(250, 240, 222, 0.72) 30%, rgba(250, 240, 222, 0) 58%);
}
.hero__in {
  position: relative; display: flex; flex-direction: column; justify-content: center;
  min-height: clamp(460px, 38vw, 640px); padding-block: 56px;
}
.hero__text { max-width: 540px; }
.hero__text .lead { margin-top: 18px; color: var(--ink); max-width: 30em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

@media (max-width: 760px) {
  .hero { background: var(--bg); }
  .hero__media { position: relative; aspect-ratio: 4 / 3; }
  .hero__media::after { display: none; }
  .hero__media img { object-position: 78% 50%; }
  .hero__in { min-height: 0; padding-block: 28px 8px; }
  .hero__cta .btn { flex: 1 1 100%; }
  .hero__cta .btn--glass { background: var(--sand); border-color: transparent; }
}

/* ---- Schede prodotto ----------------------------------------------------- */
.tile { position: relative; display: flex; flex-direction: column; min-width: 0; }
.tile__media {
  position: relative; aspect-ratio: 1 / 1.06;
  display: grid; place-items: center; padding: 9%;
  background: var(--card); border-radius: var(--radius); overflow: hidden;
}
.tile__media img { width: 100%; height: 100%; object-fit: contain; transition: transform 0.5s var(--ease); }
.tile:hover .tile__media img { transform: scale(1.045); }
.tile__body { padding-top: 14px; }
.tile__name { font-family: var(--sans); font-size: 15px; font-weight: 500; line-height: 1.3; letter-spacing: -0.02em; color: var(--ink); }
.tile__name a::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: var(--radius); }
.tile__text {
  margin-top: 4px; font-size: 14px; line-height: 1.38; color: var(--ink-2);
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden;
}
.tile__price { margin-top: 12px; font-size: 15px; }

.price { color: var(--ink); white-space: nowrap; }
.price--sale { color: var(--sale); }
.price--old { color: var(--ink-3); margin-left: 2px; }

.badge {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  padding: 5px 10px; border-radius: 999px;
  background: var(--sale); color: var(--white);
  font-size: 11px; font-weight: 500; line-height: 1.2; letter-spacing: 0;
}

.add--round { position: absolute; right: 10px; bottom: 10px; z-index: 2; }
.add__btn {
  display: grid; place-items: center; width: 40px; height: 40px; padding: 0;
  border: 1px solid var(--line); border-radius: 50%;
  background: var(--bg); color: var(--ink);
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.add__btn:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }
.add__btn:active { transform: scale(0.94); }
.add.is-busy .add__btn { opacity: 0.6; pointer-events: none; }

.grid { display: grid; gap: clamp(28px, 3vw, 44px) 20px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1080px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 12px; } }

/* Fila di sei schede: griglia su schermi larghi, scorrimento orizzontale sui piccoli */
.rail { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 1240px) {
  .rail {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(210px, 24%);
    gap: 14px; overflow-x: auto; overscroll-behavior-x: contain;
    margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); padding-bottom: 12px;
    scroll-snap-type: x proximity; scroll-padding-inline: var(--gutter);
    scrollbar-width: thin; scrollbar-color: var(--line) transparent;
  }
  .rail > * { scroll-snap-align: start; }
}
@media (max-width: 720px) { .rail { grid-auto-columns: 62%; } }

/* ---- Schede editoriali --------------------------------------------------- */
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.feature {
  position: relative; display: flex; align-items: flex-end;
  min-height: clamp(440px, 46vw, 680px);
  border-radius: var(--radius); overflow: hidden; background: #3a332c; color: var(--white);
  isolation: isolate;
}
.feature img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.feature:hover img { transform: scale(1.03); }
.feature::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(24, 20, 16, 0) 34%, rgba(24, 20, 16, 0.5) 62%, rgba(24, 20, 16, 0.86) 100%);
}
.feature__body { padding: clamp(20px, 2.6vw, 36px); max-width: 620px; }
.feature__body .h2 { color: var(--white); }
.feature__body p { margin-top: 10px; font-size: clamp(16px, 1.25vw, 18px); line-height: 1.4; color: rgba(255, 255, 255, 0.9); }
.feature__body .btn { margin-top: 22px; }
.feature__tag { position: absolute; top: 20px; left: 20px; padding: 7px 12px; border-radius: 999px; background: rgba(255, 252, 245, 0.92); color: var(--ink); font-size: 12px; font-weight: 500; }
@media (max-width: 860px) {
  .duo { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .feature { min-height: 0; aspect-ratio: 4 / 5; }
}

/* ---- Collegamenti alle categorie ---------------------------------------- */
.cats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 20px; }
.cat {
  display: flex; align-items: center; gap: 16px; min-height: 88px; padding: 14px 20px 14px 14px;
  background: var(--card); border-radius: var(--radius); color: var(--ink);
  transition: background-color 0.2s var(--ease);
}
.cat:hover { background: var(--sand-deep); }
.cat__thumb { flex: none; width: 60px; height: 60px; }
.cat__thumb img { width: 100%; height: 100%; object-fit: contain; }
.cat__name { flex: 1; font-size: clamp(16px, 1.3vw, 18px); line-height: 1.25; letter-spacing: -0.02em; text-wrap: balance; }
.cat .icon { transition: transform 0.2s var(--ease); }
.cat:hover .icon { transform: translateX(4px); }
@media (max-width: 980px) { .cats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .cats { grid-template-columns: minmax(0, 1fr); gap: 10px; } .cat { min-height: 76px; } }

/* ---- Trio: testo + due schede ------------------------------------------- */
.trio { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.trio__text { padding-right: clamp(0px, 2vw, 32px); }
.trio__text .lead { margin-top: 16px; }
.pcard { display: flex; flex-direction: column; height: 100%; background: var(--card); border-radius: var(--radius); overflow: hidden; }
.pcard__media { aspect-ratio: 1 / 0.94; overflow: hidden; }
.pcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.pcard:hover .pcard__media img { transform: scale(1.03); }
.pcard__body { display: flex; flex: 1; flex-direction: column; gap: 10px; padding: clamp(16px, 1.8vw, 24px); }
.pcard__body p { flex: 1; font-size: 15px; line-height: 1.45; }
.pcard__body .btn { margin-top: 6px; }
@media (max-width: 1080px) {
  .trio { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trio__text { grid-column: 1 / -1; max-width: 640px; padding: 0 0 8px; }
}
@media (max-width: 620px) { .trio { grid-template-columns: minmax(0, 1fr); gap: 14px; } }

/* ---- Blocco diviso ------------------------------------------------------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: var(--card); border-radius: var(--radius); overflow: hidden; }
.split__media { min-height: clamp(320px, 34vw, 520px); }
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.split__body { display: flex; flex-direction: column; justify-content: space-between; gap: 32px; padding: clamp(24px, 3.4vw, 56px); }
.split__body .lead { margin-top: 18px; }
.split__body p + p { margin-top: 14px; }
.split--reverse .split__media { order: 2; }
@media (max-width: 860px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .split__media { min-height: 0; aspect-ratio: 3 / 2; }
  .split--reverse .split__media { order: 0; }
}

/* ---- Servizi ------------------------------------------------------------- */
.perks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-block: 1px solid var(--line); }
.perk { display: flex; flex-direction: column; gap: 8px; padding: clamp(20px, 2.4vw, 32px) clamp(16px, 2vw, 28px); border-left: 1px solid var(--line); }
.perk:first-child { border-left: 0; padding-left: 0; }
.perk .icon { color: var(--ink); margin-bottom: 6px; }
.perk h3 { font-size: 16px; font-weight: 500; letter-spacing: -0.02em; }
.perk p { font-size: 14px; line-height: 1.45; }
@media (max-width: 980px) {
  .perks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .perk { padding-inline: 16px; }
  .perk:nth-child(odd) { border-left: 0; padding-left: 0; }
  .perk:nth-child(n + 3) { border-top: 1px solid var(--line); }
}
@media (max-width: 520px) {
  .perks { grid-template-columns: minmax(0, 1fr); }
  .perk { border-left: 0; padding-inline: 0; }
  .perk + .perk { border-top: 1px solid var(--line); }
}

/* ---- FAQ ----------------------------------------------------------------- */
.faqwrap { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 32px clamp(32px, 6vw, 96px); align-items: start; }
.faqwrap__text .lead { margin-top: 16px; }
.faqwrap__text .btn { margin-top: 24px; }
@media (max-width: 900px) { .faqwrap { grid-template-columns: minmax(0, 1fr); } }

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 20px 0; cursor: pointer; list-style: none;
  font-size: clamp(16px, 1.3vw, 18px); font-weight: 500; line-height: 1.3; letter-spacing: -0.02em; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { transition: transform 0.25s var(--ease); }
.faq details[open] summary .icon { transform: rotate(45deg); }
.faq__answer { padding: 0 44px 22px 0; max-width: 760px; }
.faq__answer p + p, .faq__answer p + ul, .faq__answer ul + p { margin-top: 10px; }
.faq__answer ul { padding-left: 18px; list-style: disc; }
.faq__answer a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.faqgroup + .faqgroup { margin-top: clamp(40px, 5vw, 64px); }
.faqgroup > .h3 { margin-bottom: 16px; }

/* ---- Moduli -------------------------------------------------------------- */
.leadwrap { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 32px clamp(32px, 6vw, 96px); align-items: start; }
.leadwrap__text .lead { margin-top: 16px; }
@media (max-width: 900px) { .leadwrap { grid-template-columns: minmax(0, 1fr); } }

.contactlist { display: grid; gap: 18px; margin-top: 28px; }
.contactlist li { display: flex; gap: 14px; align-items: flex-start; }
.contactlist .icon { margin-top: 2px; color: var(--ink); }
.contactlist strong { display: block; font-size: 13px; font-weight: 500; color: var(--ink-3); }
.contactlist a, .contactlist span { color: var(--ink); font-size: 16px; }
.contactlist a:hover { text-decoration: underline; text-underline-offset: 3px; }

.panel { padding: clamp(20px, 2.8vw, 40px); background: var(--card); border-radius: var(--radius); }
.section--sand .panel { background: var(--bg); }

.form { display: grid; gap: 20px; }
.form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field--wide { grid-column: 1 / -1; }
@media (max-width: 560px) { .form__grid { grid-template-columns: minmax(0, 1fr); } }

.field label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 500; color: var(--ink); }
.field__opt { font-weight: 400; color: var(--ink-3); }
.field input, .field textarea, .field select {
  display: block; width: 100%; min-height: 48px; padding: 12px 14px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 8px;
  font-size: 16px; line-height: 1.35; color: var(--ink);
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.section--sand .field input, .section--sand .field textarea { background: var(--white); }
.field textarea { resize: vertical; min-height: 130px; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); opacity: 1; }
.field input:hover, .field textarea:hover { border-color: rgba(37, 37, 37, 0.4); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.field--error input, .field--error textarea { border-color: var(--sale); }
.field__error { margin-top: 6px; font-size: 13px; line-height: 1.35; color: var(--sale); }

.check { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; align-items: start; font-size: 14px; line-height: 1.45; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--ink); }
.check a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.check .field__error { grid-column: 2; margin-top: 0; }

.radio { display: grid; gap: 10px; }
.radio label {
  display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; padding: 14px 16px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 8px; cursor: pointer;
}
.radio label:has(input:checked) { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.radio input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--ink); }
.radio strong { font-size: 15px; font-weight: 500; color: var(--ink); }
.radio small { grid-column: 2; font-size: 13px; color: var(--ink-2); }

fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
legend { padding: 0; margin-bottom: 14px; font-family: var(--serif); font-size: 24px; font-weight: 450; letter-spacing: -0.025em; color: var(--ink); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.notice { padding: 16px 18px; border-radius: 8px; font-size: 15px; }
.notice--error { background: #f8e4df; color: #7a1c13; }
.notice--ok { padding: clamp(20px, 2.6vw, 32px); background: #e6eedf; color: #24452c; }
.notice--ok h3 { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 26px; font-weight: 450; letter-spacing: -0.025em; color: #1d3a25; }
.notice--ok p { margin-top: 10px; }
.notice--ok a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.notice--info { background: var(--card); color: var(--ink); }

/* ---- Intestazione di pagina e briciole ---------------------------------- */
.pagehead { padding-block: clamp(28px, 4vw, 56px) clamp(24px, 3vw, 40px); }
.pagehead .lead { margin-top: 14px; max-width: 46em; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px 8px; margin-bottom: 18px; font-size: 13px; color: var(--ink-3); }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--line); }
.crumbs a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.crumbs [aria-current] { color: var(--ink-2); }

.chips { display: flex; gap: 8px; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding: 2px var(--gutter) 10px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: inline-flex; align-items: center; min-height: 40px; padding: 8px 16px;
  border: 1px solid var(--line); border-radius: 999px;
  font-size: 14px; color: var(--ink); white-space: nowrap;
  transition: background-color 0.15s var(--ease), border-color 0.15s var(--ease), color 0.15s var(--ease);
}
.chip:hover { border-color: var(--ink); }
.chip[aria-current] { background: var(--ink); border-color: var(--ink); color: var(--white); }

.catblock + .catblock { margin-top: clamp(48px, 6vw, 88px); }

/* ---- Pagina prodotto ----------------------------------------------------- */
.pdp { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 32px clamp(32px, 5vw, 80px); align-items: start; }
.pdp__media {
  position: sticky; top: calc(var(--header-h) + 20px);
  display: grid; place-items: center; aspect-ratio: 1 / 1; padding: 9%;
  background: var(--card); border-radius: var(--radius);
}
.pdp__media img { width: 100%; height: 100%; object-fit: contain; }
.pdp__media .badge { top: 16px; left: 16px; }
.pdp__info .h1 { margin-top: 10px; }
.pdp__tagline { margin-top: 14px; font-size: 18px; line-height: 1.4; }
.pdp__price { margin-top: 22px; font-size: 22px; letter-spacing: -0.02em; }
.pdp__vat { margin-top: 4px; font-size: 13px; color: var(--ink-3); }
.pdp__buy { display: grid; grid-template-columns: auto 1fr; gap: 12px; margin-top: 24px; }
.pdp__points { display: grid; gap: 10px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.pdp__points li { display: flex; gap: 12px; font-size: 15px; color: var(--ink); }
.pdp__points .icon { margin-top: 2px; color: var(--ok); }
.pdp__notes { display: grid; gap: 10px; margin-top: 24px; padding: 18px 20px; background: var(--card); border-radius: var(--radius); font-size: 14px; }
.pdp__notes li { display: flex; gap: 12px; align-items: flex-start; }
.pdp__notes .icon { color: var(--ink); }
.pdp__notes a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.pdp__acc { margin-top: 28px; }
.pdp__acc .faq__answer { padding-right: 0; }
.pdp__disclaimer { margin-top: 20px; font-size: 13px; line-height: 1.45; color: var(--ink-3); }
@media (max-width: 900px) {
  .pdp { grid-template-columns: minmax(0, 1fr); }
  .pdp__media { position: relative; top: 0; aspect-ratio: 1 / 0.9; }
}

.qty { display: inline-grid; grid-template-columns: 44px 44px 44px; align-items: center; height: 48px; border: 1px solid var(--line); border-radius: var(--radius-btn); background: var(--bg); }
.qty button { display: grid; place-items: center; width: 44px; height: 46px; padding: 0; border: 0; background: none; color: var(--ink); border-radius: var(--radius-btn); }
.qty button:hover:not(:disabled) { background: var(--card); }
.qty button:disabled { color: var(--line); cursor: default; }
.qty input, .qty output {
  width: 44px; height: 46px; padding: 0; border: 0; background: none;
  font-size: 16px; font-weight: 500; text-align: center; color: var(--ink);
  appearance: textfield; -moz-appearance: textfield;
}
.qty output { display: grid; place-items: center; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty input:focus { outline: none; }
.qty:focus-within { border-color: var(--ink); }

.specs { width: 100%; border-collapse: collapse; font-size: 15px; }
.specs th, .specs td { padding: 11px 0; border-bottom: 1px solid var(--line-soft); text-align: left; vertical-align: top; }
.specs th { width: 42%; padding-right: 16px; font-weight: 400; color: var(--ink-2); }
.specs td { color: var(--ink); }
.specs tr:last-child th, .specs tr:last-child td { border-bottom: 0; }

/* ---- Carrello e ordine --------------------------------------------------- */
.cartgrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 400px); gap: 32px clamp(32px, 5vw, 72px); align-items: start; }
@media (max-width: 960px) { .cartgrid { grid-template-columns: minmax(0, 1fr); } }

.lines { border-top: 1px solid var(--line); }
.line { display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; gap: 8px 20px; padding: 20px 0; border-bottom: 1px solid var(--line); align-items: start; }
.line__thumb { grid-row: span 2; display: grid; place-items: center; aspect-ratio: 1; padding: 10px; background: var(--card); border-radius: var(--radius); }
.line__thumb img { width: 100%; height: 100%; object-fit: contain; }
.line__name { font-size: 16px; font-weight: 500; letter-spacing: -0.02em; color: var(--ink); }
.line__name a:hover { text-decoration: underline; text-underline-offset: 3px; }
.line__meta { margin-top: 2px; font-size: 14px; color: var(--ink-2); }
.line__total { font-size: 16px; font-weight: 500; color: var(--ink); text-align: right; white-space: nowrap; }
.line__actions { grid-column: 2 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.line__remove { display: inline-flex; align-items: center; gap: 6px; padding: 8px 0; border: 0; background: none; font-size: 14px; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
.line__remove:hover { color: var(--sale); }
.line .qty { height: 42px; grid-template-columns: 40px 40px 40px; }
.line .qty button, .line .qty output { width: 40px; height: 40px; }
@media (max-width: 520px) { .line { grid-template-columns: 84px minmax(0, 1fr); } .line__total { grid-column: 2; text-align: left; } .line__actions { grid-column: 1 / -1; } .line__thumb { grid-row: span 2; } }

.cart__under { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; font-size: 14px; }

.summary { position: sticky; top: calc(var(--header-h) + 20px); padding: clamp(20px, 2.2vw, 28px); background: var(--card); border-radius: var(--radius); }
@media (max-width: 960px) { .summary { position: static; } }
.summary h2 { font-family: var(--serif); font-size: 26px; font-weight: 450; letter-spacing: -0.025em; }
.totals { margin-top: 18px; }
.totals div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; font-size: 15px; }
.totals dd { color: var(--ink); white-space: nowrap; }
.totals__total { margin-top: 8px; padding-top: 16px !important; border-top: 1px solid var(--line); font-size: 18px !important; font-weight: 500; color: var(--ink); }
.totals__total small { display: block; font-size: 12px; font-weight: 400; color: var(--ink-3); }
.summary__hint { margin-top: 10px; padding: 10px 12px; border-radius: 6px; background: var(--bg); font-size: 13px; color: var(--ink); }
.summary .btn { margin-top: 20px; }
.summary__notes { display: grid; gap: 8px; margin-top: 20px; font-size: 13px; }
.summary__notes li { display: flex; gap: 10px; align-items: flex-start; }
.summary__notes .icon { color: var(--ink); }
.summary__lines { margin-top: 16px; border-top: 1px solid var(--line); }
.summary__lines li { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--ink); }
.summary__lines span.th { display: grid; place-items: center; width: 52px; height: 52px; padding: 5px; background: var(--bg); border-radius: 6px; }
.summary__lines small { display: block; color: var(--ink-3); }

.empty { max-width: 560px; padding-block: 12px 24px; }
.empty .lead { margin-top: 12px; }
.empty__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

.orderform { display: grid; gap: 36px; }

/* ---- Testi lunghi (pagine legali, chi siamo) ----------------------------- */
.prose { max-width: 780px; }
.prose > * + * { margin-top: 16px; }
.prose h2 { margin-top: 44px; font-family: var(--serif); font-size: clamp(24px, 2.2vw, 30px); font-weight: 450; line-height: 1.15; letter-spacing: -0.025em; }
.prose h3 { margin-top: 28px; font-size: 17px; font-weight: 500; letter-spacing: -0.02em; }
.prose ul, .prose ol { padding-left: 20px; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: 6px; }
.prose a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { font-weight: 500; color: var(--ink); }
.prose address { font-style: normal; }
.prose .updated { font-size: 14px; color: var(--ink-3); }
.prose .box { padding: 20px 22px; background: var(--card); border-radius: var(--radius); }
.prose .box > * + * { margin-top: 10px; }
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 14px; }
.table th, .table td { padding: 12px 14px; border-bottom: 1px solid var(--line-soft); text-align: left; vertical-align: top; }
.table th { font-weight: 500; color: var(--ink); background: var(--card); }
.table tr:last-child td { border-bottom: 0; }

.legalwrap { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 32px clamp(32px, 6vw, 96px); align-items: start; }
.legalnav { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 2px; font-size: 14px; }
.legalnav a { padding: 9px 12px; border-radius: 6px; color: var(--ink-2); }
.legalnav a:hover { background: var(--card); color: var(--ink); }
.legalnav a[aria-current] { background: var(--card); color: var(--ink); font-weight: 500; }
@media (max-width: 900px) {
  .legalwrap { grid-template-columns: minmax(0, 1fr); }
  .legalnav { position: static; display: flex; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding: 0 var(--gutter) 8px; scrollbar-width: none; }
  .legalnav::-webkit-scrollbar { display: none; }
  .legalnav a { flex: none; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; white-space: nowrap; }
}

/* ---- Chi siamo ----------------------------------------------------------- */
.intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px clamp(32px, 6vw, 96px); align-items: end; }
.intro .lead { max-width: 34em; }
@media (max-width: 860px) { .intro { grid-template-columns: minmax(0, 1fr); } }

.wide { border-radius: var(--radius); overflow: hidden; aspect-ratio: 21 / 9; background: var(--card); }
.wide img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 720px) { .wide { aspect-ratio: 3 / 2; } }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 28px; counter-reset: step; }
.step { padding-top: 20px; border-top: 1px solid var(--ink); counter-increment: step; }
.step::before { content: "0" counter(step); display: block; margin-bottom: 14px; font-size: 13px; font-weight: 500; color: var(--ink-3); letter-spacing: 0.04em; }
.step h3 { font-family: var(--serif); font-size: 24px; font-weight: 450; letter-spacing: -0.025em; }
.step p { margin-top: 10px; font-size: 15px; }
@media (max-width: 860px) { .steps { grid-template-columns: minmax(0, 1fr); } }

.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(24px, 4vw, 64px); }
.facts div { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); font-size: 15px; }
.facts dt { color: var(--ink-2); }
.facts dd { color: var(--ink); }
@media (max-width: 720px) { .facts { grid-template-columns: minmax(0, 1fr); } }

/* ---- Contatti ------------------------------------------------------------ */
.hours { display: grid; gap: 8px; font-size: 14px; }
.hours div { display: flex; justify-content: space-between; gap: 16px; }
.hours dd { color: var(--ink); white-space: nowrap; }

/* ---- 404 ----------------------------------------------------------------- */
.notfound { padding-block: clamp(56px, 9vw, 140px); max-width: 720px; }
.notfound__code { font-family: var(--serif); font-size: clamp(88px, 14vw, 180px); line-height: 0.9; letter-spacing: -0.05em; color: var(--sand-deep); }
.notfound .h1 { margin-top: 12px; }
.notfound .lead { margin-top: 16px; }

/* ---- Piè di pagina ------------------------------------------------------- */
.footer { background: var(--card); border-top: 1px solid var(--line); font-size: 15px; }
.footer__top { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 28px 48px; padding-block: clamp(36px, 4.4vw, 60px); }
.footer__brand { max-width: 420px; }
.footer__brand p { margin-top: 14px; font-size: 16px; line-height: 1.45; }
.footer__contact { display: grid; gap: 12px; color: var(--ink); }
.footer__contact li { display: flex; align-items: flex-start; gap: 12px; }
.footer__contact .icon { margin-top: 2px; }
.footer__contact a:hover { text-decoration: underline; text-underline-offset: 3px; }

.footer__cols { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.footer__col { padding: 36px 24px 44px; border-left: 1px solid var(--line); }
.footer__col:first-child { border-left: 0; padding-left: 0; }
.footer__col:last-child { padding-right: 0; }
.footer__col h2 { margin-bottom: 14px; font-family: var(--sans); font-size: 11px; font-weight: 500; letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink-2); }
.footer__col ul { display: grid; gap: 9px; }
.footer__col a, .footer__col .linkbtn { color: var(--ink); line-height: 1.3; }
.footer__col a:hover, .footer__col .linkbtn:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 1080px) {
  .footer__cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer__col:nth-child(3n + 1) { border-left: 0; padding-left: 0; }
  .footer__col:nth-child(n + 4) { border-top: 1px solid var(--line); }
  .footer__col:last-child { padding-right: 24px; }
}
@media (max-width: 640px) {
  .footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__col { padding: 24px 16px 28px; }
  .footer__col:nth-child(n) { border-left: 1px solid var(--line); padding-left: 16px; }
  .footer__col:nth-child(odd) { border-left: 0; padding-left: 0; }
  .footer__col:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .footer__col:last-child { grid-column: 1 / -1; padding-right: 0; }
}

.footer__bottom { background: var(--sand-deep); font-size: 13px; color: var(--ink-2); }
.footer__bottom-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 32px; padding-block: 18px; }
.footer__note { color: var(--ink-3); }

/* ---- Notifica «aggiunto al carrello» ------------------------------------ */
.toast {
  position: fixed; right: 16px; top: calc(var(--header-h) + 12px); z-index: 60;
  display: flex; align-items: center; gap: 14px; max-width: min(440px, calc(100vw - 32px));
  padding: 12px 12px 12px 16px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 24px 48px -20px rgba(37, 37, 37, 0.4);
  animation: toast-in 0.28s var(--ease);
}
.toast__text { display: flex; align-items: flex-start; gap: 10px; flex: 1; font-size: 14px; line-height: 1.35; color: var(--ink); }
.toast__text .icon { margin-top: 1px; color: var(--ok); }
.toast__close { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--ink-2); }
.toast__close:hover { background: var(--card); color: var(--ink); }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px); } }
@media (max-width: 520px) { .toast { left: 12px; right: 12px; max-width: none; flex-wrap: wrap; } .toast .btn { order: 3; flex: 1 1 100%; } }

/* ---- Banner dei cookie --------------------------------------------------- */
.cookie {
  position: fixed; left: 16px; bottom: 16px; z-index: 70;
  width: min(480px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow-y: auto;
  padding: 22px 24px 24px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 28px 60px -22px rgba(37, 37, 37, 0.5);
  font-size: 14px; line-height: 1.45;
}
.cookie h2 { padding-right: 36px; font-family: var(--serif); font-size: 22px; font-weight: 450; letter-spacing: -0.025em; }
.cookie p { margin-top: 8px; }
.cookie a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.cookie__close { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--ink-2); }
.cookie__close:hover { background: var(--card); color: var(--ink); }
.cookie__prefs { display: grid; gap: 10px; margin-top: 14px; padding: 14px; background: var(--card); border-radius: 8px; }
.cookie__opt { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; }
.cookie__opt input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--ink); }
.cookie__opt strong { font-weight: 500; color: var(--ink); }
.cookie__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
.cookie__actions .btn--light { grid-column: 1 / -1; }

/* ---- Movimento ridotto --------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

@media print {
  .announce, .header, .footer, .cookie, .toast { display: none !important; }
}
