/* ==========================================================================
   TN Barbershop — style.css
   Token, base, componenti e sezioni. Layout responsive in responsive.css,
   movimento in animations.css.
   ========================================================================== */

/* ---------- Font (self-hosted, stessi font del sito originale) ---------- */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../assets/fonts/fraunces-latin-opsz-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("../assets/fonts/fraunces-latin-opsz-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../assets/fonts/manrope-latin-wght-normal.woff2") format("woff2");
}

/* ---------- Design tokens ---------- */
:root {
  /* Nero */
  --black-950: #070907;
  --black-900: #0c0f0c;
  --black-800: #141914;
  --black-700: #1e251f;

  /* Royal green */
  --green-800: #08432b;
  --green-700: #0b5d3b;
  --green-600: #0f7249;
  --green-300: #62c796; /* testo/dettagli su fondo scuro */

  /* Marrone */
  --brown-800: #3a2616;
  --brown-600: #6b4630;
  --brown-400: #a07553;

  /* Beige */
  --beige-50: #f7f1e6;
  --beige-100: #ede3d0;
  --beige-200: #ddd0b6;
  --beige-400: #b9a783;

  /* Alias semantici (cambiano in base alla superficie) */
  --bg: var(--beige-50);
  --fg: var(--black-900);
  --fg-soft: var(--brown-600);
  --accent: var(--green-700);
  --line: rgba(12, 15, 12, 0.16);
  --focus: var(--green-700);

  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --max: 1240px;
  --gutter: clamp(20px, 4vw, 40px);
  --header-h: 84px;
  --radius: 18px;
  --ease: cubic-bezier(0.22, 0.8, 0.24, 1);
}

.on-dark {
  --bg: var(--black-900);
  --fg: var(--beige-50);
  --fg-soft: var(--beige-400);
  --accent: var(--green-300);
  --line: rgba(247, 241, 230, 0.16);
  --focus: var(--beige-100);
}
.on-light {
  --bg: var(--beige-50);
  --fg: var(--black-900);
  --fg-soft: var(--brown-600);
  --accent: var(--green-700);
  --line: rgba(12, 15, 12, 0.16);
  --focus: var(--green-700);
}

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

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

body {
  margin: 0;
  background: var(--black-950);
  color: var(--beige-50);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.is-locked { overflow: hidden; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 450;
  letter-spacing: -0.015em;
  line-height: 1.08;
}
h1 em, h2 em, h3 em, .brand__name em, .footer__name em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
address { font-style: normal; }

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

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1.15em; height: 1.15em; flex: none; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 300;
  padding: 12px 18px;
  background: var(--beige-50);
  color: var(--black-900);
  border-radius: 10px;
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform 0.25s var(--ease);
}
.skip-link:focus { transform: none; }

/* ---------- Tipografia di sezione ---------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 22px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: "";
  width: 36px;
  height: 1px;
  background: currentColor;
}
.eyebrow--center { justify-content: center; }
.eyebrow--center::after {
  content: "";
  width: 36px;
  height: 1px;
  background: currentColor;
}

.section { padding-block: clamp(80px, 11vw, 150px); background: var(--bg); color: var(--fg); }
.section__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px 60px;
  flex-wrap: wrap;
  margin-bottom: clamp(36px, 5vw, 64px);
}
.section__title { font-size: clamp(2.1rem, 4.6vw, 3.6rem); max-width: 16ch; }
.section__intro { max-width: 36ch; margin: 0; color: var(--fg-soft); }

/* ---------- Pulsanti ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: transform 0.3s var(--ease), background-color 0.3s ease,
    color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.btn:active { transform: scale(0.96); }
.btn--solid { background: var(--green-700); color: var(--beige-50); }
.btn--ghost { border-color: rgba(247, 241, 230, 0.45); color: var(--beige-50); background: transparent; }
.btn--light { background: var(--beige-50); color: var(--black-900); }
.btn__arrow { transition: transform 0.3s var(--ease); }

.link-btn {
  padding: 4px 0;
  border: 0;
  background: none;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: rgba(247, 241, 230, 0.4);
  cursor: pointer;
}

@media (hover: hover) {
  .btn--solid:hover { background: var(--green-600); box-shadow: 0 10px 28px rgba(11, 93, 59, 0.45); transform: translateY(-2px); }
  .btn--ghost:hover { background: var(--beige-50); color: var(--black-900); border-color: var(--beige-50); transform: translateY(-2px); }
  .btn--light:hover { background: var(--beige-100); transform: translateY(-2px); }
  .btn:hover .btn__arrow { transform: translateX(5px); }
  .link-btn:hover { text-decoration-color: currentColor; }
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  color: var(--beige-50);
  transition: background-color 0.4s ease, box-shadow 0.4s ease;
}
.site-header.is-scrolled {
  background: rgba(7, 9, 7, 0.88);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(247, 241, 230, 0.1);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
  transition: height 0.4s var(--ease);
}
.site-header.is-scrolled .site-header__inner { height: 72px; }

.brand { position: relative; z-index: 2; display: flex; align-items: center; gap: 12px; }
.brand__logo { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.brand__name { font-family: var(--font-serif); font-size: 1.2rem; font-weight: 500; letter-spacing: -0.01em; }

.nav { display: flex; align-items: center; gap: 36px; }
.nav__list { display: flex; gap: 30px; }
.nav__link {
  position: relative;
  padding: 8px 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: rgba(247, 241, 230, 0.82);
  transition: color 0.25s ease;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--green-300);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.nav__link.is-active { color: var(--beige-50); }
.nav__link.is-active::after { transform: scaleX(1); }
@media (hover: hover) {
  .nav__link:hover { color: var(--beige-50); }
  .nav__link:hover::after { transform: scaleX(1); }
}
.nav__cta { min-height: 44px; padding: 0 22px; }

.nav-toggle {
  position: relative;
  z-index: 2;
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(247, 241, 230, 0.3);
  border-radius: 50%;
  background: rgba(7, 9, 7, 0.4);
  cursor: pointer;
}
.nav-toggle__bar {
  position: absolute;
  left: 14px;
  right: 14px;
  height: 2px;
  background: var(--beige-50);
  border-radius: 2px;
  transition: transform 0.4s var(--ease), top 0.4s var(--ease);
}
.nav-toggle__bar:nth-child(1) { top: 19px; }
.nav-toggle__bar:nth-child(2) { top: 27px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { top: 23px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { top: 23px; transform: rotate(-45deg); }

.progress { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; pointer-events: none; }
.progress__bar {
  display: block;
  height: 100%;
  background: var(--green-300);
  transform: scaleX(0);
  transform-origin: left;
}

/* ---------- Floating WhatsApp ---------- */
.float-cta {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--green-700);
  color: var(--beige-50);
  border: 1px solid rgba(247, 241, 230, 0.25);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  transition: transform 0.3s var(--ease), background-color 0.3s ease;
}
.float-cta .icon { width: 30px; height: 30px; }
.float-cta:active { transform: scale(0.92); }
@media (hover: hover) {
  .float-cta:hover { background: var(--green-600); transform: scale(1.08); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--header-h) + 24px) 0 64px;
  background: var(--black-950);
  color: var(--beige-50);
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(55% 60% at 78% 45%, rgba(11, 93, 59, 0.5), transparent 72%);
}
.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: clamp(32px, 6vw, 96px);
}
.hero__eyebrow { color: var(--green-300); }
.hero__title { font-size: clamp(2.9rem, 7vw, 6rem); line-height: 1; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.hero__title .line > span { display: block; }
.hero__lead { max-width: 46ch; margin: 28px 0 0; font-size: clamp(1.02rem, 1.6vw, 1.18rem); color: rgba(247, 241, 230, 0.78); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.chips li {
  padding: 7px 16px;
  border: 1px solid rgba(247, 241, 230, 0.22);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--beige-200);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }

.hero__media { position: relative; justify-self: center; width: min(100%, 460px); }
.hero__media::before {
  content: "";
  position: absolute;
  inset: -16px 16px 16px -16px;
  border: 1px solid rgba(185, 167, 131, 0.45);
  border-radius: 999px 999px 22px 22px;
}
.hero__arch {
  position: relative;
  margin: 0;
  aspect-ratio: 3 / 4;
  border-radius: 999px 999px 22px 22px;
  overflow: hidden;
  background: var(--black-800);
  will-change: transform;
}
.hero__arch img { width: 100%; height: 100%; object-fit: cover; }
.hero__chip {
  position: absolute;
  left: -14%;
  bottom: 9%;
  z-index: 2;
  width: 34%;
  margin: 0;
  aspect-ratio: 1 / 1;
  border: 5px solid var(--black-950);
  border-radius: 50%;
  overflow: hidden;
  background: var(--black-950);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.55);
}
.hero__chip img { width: 100%; height: 100%; object-fit: cover; }
.hero__place {
  position: absolute;
  right: -6px;
  bottom: -18px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 10px 18px;
  background: var(--beige-50);
  color: var(--black-900);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
}
.hero__place .icon { color: var(--green-700); }

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 18px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  transform: translateX(-50%);
}
.hero__scroll span {
  display: block;
  width: 1px;
  height: 34px;
  background: linear-gradient(var(--beige-400), transparent);
}

/* ---------- Chi siamo ---------- */
.about__grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  align-items: center;
  gap: clamp(40px, 8vw, 110px);
}
.about__media { position: relative; }
.about__media::before {
  content: "";
  position: absolute;
  inset: 22px -22px -22px 22px;
  border: 1px solid var(--brown-400);
  border-radius: var(--radius);
}
.about__media img {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--beige-100);
}
.about__note {
  position: absolute;
  right: -20px;
  bottom: 36px;
  z-index: 2;
  max-width: 190px;
  margin: 0;
  padding: 20px 22px;
  background: var(--green-700);
  color: var(--beige-50);
  border-radius: 12px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.12rem;
  line-height: 1.3;
}
.about__text p { max-width: 54ch; color: var(--fg-soft); }
.about__text .section__title { margin-bottom: 30px; max-width: 15ch; }
.about__text .about__lead {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  line-height: 1.4;
  color: var(--fg);
}
.stats { display: flex; flex-wrap: wrap; gap: 28px 52px; margin: 40px 0 0; padding-top: 32px; border-top: 1px solid var(--line); }
.stats div { min-width: 0; }
.stats dt { font-family: var(--font-serif); font-size: clamp(1.9rem, 3vw, 2.4rem); line-height: 1.1; color: var(--green-700); }
.stats dd { margin: 4px 0 0; font-size: 0.88rem; color: var(--fg-soft); }

/* ---------- Servizi / listino ---------- */
.services { background: var(--black-900); }
.filter { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: clamp(32px, 5vw, 56px); }
.filter__btn {
  min-height: 46px;
  padding: 0 26px;
  border: 1px solid rgba(247, 241, 230, 0.3);
  border-radius: 999px;
  background: transparent;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.25s var(--ease);
}
.filter__btn:active { transform: scale(0.95); }
.filter__btn[aria-pressed="true"] { background: var(--beige-50); color: var(--black-900); border-color: var(--beige-50); }
@media (hover: hover) {
  .filter__btn[aria-pressed="false"]:hover { border-color: var(--beige-50); }
}

.menu { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: clamp(36px, 6vw, 90px); align-items: start; }
.menu:has(.menu__col[hidden]) { grid-template-columns: minmax(0, 720px); }
.menu__col[hidden] { display: none; }
.menu__head { display: flex; align-items: center; gap: 16px; padding-bottom: 20px; border-bottom: 1px solid var(--beige-400); }
.menu__head h3 { font-size: clamp(1.8rem, 3vw, 2.3rem); }
.tag {
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--green-700);
  color: var(--beige-50);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.tag--brown { background: var(--brown-600); }

.price-row {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(16px, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.price-row::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: var(--green-300);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease);
}
.price-row__name {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  transition: transform 0.4s var(--ease);
}
.price-row--star .price-row__name::after {
  content: "Il più scelto";
  display: inline-block;
  margin-left: 12px;
  padding: 3px 10px;
  border: 1px solid var(--green-300);
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green-300);
  vertical-align: middle;
}
.price-row__dots { align-self: end; margin-bottom: 0.5em; border-bottom: 1px dotted rgba(247, 241, 230, 0.35); height: 1px; }
.price-row__price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  font-weight: 500;
  white-space: nowrap;
  line-height: 1.1;
}
.price-row__from {
  font-family: var(--font-sans);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--beige-400);
}
.price-row__book {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(247, 241, 230, 0.28);
  border-radius: 50%;
  transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.3s var(--ease);
}
.price-row__book:active { transform: scale(0.9); }
@media (hover: hover) {
  .price-row:hover::after { transform: scaleX(1); }
  .price-row:hover .price-row__name { transform: translateX(8px); }
  .price-row__book:hover { background: var(--green-700); border-color: var(--green-700); }
}

.menu__col--donna {
  padding: clamp(26px, 3vw, 38px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(247, 241, 230, 0.04);
}
.menu__col--donna .menu__head { border-bottom-color: rgba(185, 167, 131, 0.5); }
.plain-list { margin: 8px 0 0; }
.plain-list li { padding: 14px 0; border-bottom: 1px solid var(--line); font-family: var(--font-serif); font-size: 1.25rem; }
.menu__note { margin: 24px 0 22px; color: var(--beige-200); }

/* ---------- Galleria ---------- */
.gallery { background: var(--beige-100); }
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(3, clamp(190px, 24vw, 310px));
  gap: clamp(10px, 1.4vw, 18px);
}
.gallery__item { min-width: 0; min-height: 0; }
.gallery__item--1 { grid-column: 1 / 3; grid-row: 1 / 3; }
.gallery__item--2 { grid-column: 3; grid-row: 1; }
.gallery__item--3 { grid-column: 4; grid-row: 1 / 3; }
.gallery__item--4 { grid-column: 3; grid-row: 2; }
.gallery__item--5 { grid-column: 1; grid-row: 3; }
.gallery__item--6 { grid-column: 2; grid-row: 3; }
.gallery__item--7 { grid-column: 3; grid-row: 3; }
.gallery__item--8 { grid-column: 4; grid-row: 3; }
.gallery__btn {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 12px;
  overflow: hidden;
  background: var(--beige-200);
  cursor: zoom-in;
}
.gallery__btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(7, 9, 7, 0.55));
  opacity: 0;
  transition: opacity 0.4s ease;
}
.gallery__btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  transition: transform 0.9s var(--ease);
}
.gallery__btn:active img { transform: scale(1.04); }
@media (hover: hover) {
  .gallery__btn:hover img { transform: scale(1.06); }
  .gallery__btn:hover::after { opacity: 1; }
}
.gallery__note { max-width: 58ch; margin: 36px 0 0; color: var(--fg-soft); font-size: 0.92rem; }

/* ---------- CTA ---------- */
.cta {
  padding-block: clamp(80px, 11vw, 140px);
  background: var(--green-700);
  color: var(--beige-50);
  --accent: var(--beige-200);
  --focus: var(--beige-50);
  text-align: center;
}
.cta__inner { display: flex; flex-direction: column; align-items: center; }
.cta__title { max-width: 20ch; font-size: clamp(2rem, 5vw, 3.9rem); }
.cta__title em { color: var(--beige-200); }
.cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 40px; }

/* ---------- Dove siamo ---------- */
.location { background: var(--beige-50); }
.location__card {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  background: var(--black-900);
  color: var(--beige-50);
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(12, 15, 12, 0.22);
}
.location__copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: clamp(30px, 5vw, 64px); }
.location__title { font-size: clamp(2rem, 3.8vw, 3rem); margin-bottom: 22px; }
.location__address { margin-bottom: 20px; font-family: var(--font-serif); font-size: 1.3rem; line-height: 1.4; }
.location__copy p { color: var(--beige-400); margin-bottom: 28px; }
.location__map { position: relative; min-height: 420px; background: var(--black-800); }
.location__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.location__map iframe[hidden] { display: none; }
.map-consent {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 28px;
  text-align: center;
  background:
    repeating-linear-gradient(45deg, rgba(247, 241, 230, 0.035) 0 1px, transparent 1px 18px),
    var(--black-800);
}
.map-consent[hidden] { display: none; }
.map-consent p { max-width: 36ch; margin: 0; color: var(--beige-200); font-size: 0.92rem; }
.map-consent__icon { width: 40px; height: 40px; color: var(--green-300); }

/* ---------- Footer ---------- */
.site-footer { padding: clamp(60px, 8vw, 96px) 0 32px; background: var(--black-950); color: var(--beige-50); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; padding-bottom: 56px; }
.footer__brand { display: flex; align-items: flex-start; gap: 18px; }
.footer__logo { width: 64px; height: 64px; border-radius: 50%; flex: none; }
.footer__name { margin: 0 0 12px; font-family: var(--font-serif); font-size: 1.6rem; line-height: 1.1; }
.footer__text { max-width: 34ch; margin: 0; color: var(--beige-400); font-size: 0.94rem; }
.footer__heading { margin: 0 0 18px; font-family: var(--font-sans); font-size: 0.74rem; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; color: var(--green-300); }
.footer__col { display: flex; flex-direction: column; align-items: flex-start; }
.footer__col a, .footer__col p { margin: 0 0 10px; color: var(--beige-200); font-size: 0.95rem; transition: color 0.25s ease; }
@media (hover: hover) {
  .footer__col a:hover { color: var(--green-300); }
}
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 28px;
  padding-top: 26px;
  border-top: 1px solid rgba(247, 241, 230, 0.14);
  color: var(--beige-400);
  font-size: 0.84rem;
}
.footer__legal { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer__legal a { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(247, 241, 230, 0.4); }

/* ---------- Lightbox ---------- */
.lightbox {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(7, 9, 7, 0.96);
  color: var(--beige-50);
}
.lightbox[open] { display: grid; grid-template-columns: 72px 1fr 72px; align-items: center; }
.lightbox::backdrop { background: rgba(7, 9, 7, 0.96); }
.lightbox__figure { display: grid; justify-items: center; gap: 14px; margin: 0; min-width: 0; max-height: 100%; padding: 16px 0; }
.lightbox__img { width: auto; max-width: 100%; height: auto; max-height: calc(100vh - 110px); max-height: calc(100dvh - 110px); object-fit: contain; border-radius: 10px; touch-action: pan-y; }
.lightbox__caption { color: var(--beige-400); font-size: 0.88rem; text-align: center; }
.lightbox__btn {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  margin: auto;
  border: 1px solid rgba(247, 241, 230, 0.3);
  border-radius: 50%;
  background: rgba(247, 241, 230, 0.06);
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s var(--ease);
}
.lightbox__btn .icon { width: 22px; height: 22px; }
.lightbox__btn:active { transform: scale(0.92); }
.lightbox__close { position: absolute; top: 16px; right: 16px; z-index: 2; margin: 0; }
@media (hover: hover) {
  .lightbox__btn:hover { background: var(--green-700); }
}

/* ---------- Cookie banner e centro preferenze (costruiti da js/cookies.js) ---------- */
.cookie-banner {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 200;
  width: min(460px, calc(100% - 40px));
  padding: 24px;
  background: var(--black-900);
  color: var(--beige-50);
  border: 1px solid rgba(247, 241, 230, 0.2);
  border-radius: 20px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner__title { margin: 0 0 8px; font-size: 1.35rem; }
.cookie-banner__text { margin: 0 0 18px; color: var(--beige-200); font-size: 0.9rem; line-height: 1.55; }
.cookie-banner__text a { text-decoration: underline; text-underline-offset: 3px; }
.cookie-banner__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cookie-banner__actions .btn { min-height: 46px; padding: 0 14px; font-size: 0.88rem; }
.cookie-banner__actions .btn--custom { grid-column: 1 / -1; }

.prefs {
  width: min(620px, calc(100% - 28px));
  max-height: calc(100dvh - 28px);
  padding: 0;
  border: 0;
  border-radius: 24px;
  background: var(--beige-50);
  color: var(--black-900);
  --fg-soft: var(--brown-600);
  --accent: var(--green-700);
  --focus: var(--green-700);
  overflow: hidden;
}
.prefs[open] { display: flex; flex-direction: column; }
.prefs::backdrop { background: rgba(7, 9, 7, 0.7); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.prefs__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 28px 28px 0; }
.prefs__title { font-size: 1.7rem; }
.prefs__close {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}
.prefs__body { overflow-y: auto; padding: 14px 28px 8px; }
.prefs__intro { color: var(--brown-600); font-size: 0.92rem; }
.prefs__intro a { text-decoration: underline; text-underline-offset: 3px; color: var(--black-900); }
.pref { padding: 20px 0; border-top: 1px solid var(--line); }
.pref__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.pref__name { margin: 0; font-family: var(--font-serif); font-size: 1.2rem; font-weight: 500; }
.pref__desc { margin: 8px 0 0; color: var(--brown-600); font-size: 0.88rem; line-height: 1.55; }
.pref__list { margin: 8px 0 0; padding-left: 18px; list-style: disc; color: var(--brown-600); font-size: 0.85rem; }
.pref__unused { margin: 4px 0 0; padding-top: 18px; border-top: 1px solid var(--line); color: var(--brown-600); font-size: 0.86rem; }

.switch { position: relative; display: inline-flex; align-items: center; gap: 12px; flex: none; cursor: pointer; }
.switch--locked { cursor: default; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: inherit; }
.switch__track { position: relative; width: 50px; height: 30px; border-radius: 999px; background: var(--beige-400); transition: background-color 0.3s ease; }
.switch__track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--beige-50);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  transition: transform 0.35s var(--ease);
}
.switch input:checked + .switch__track { background: var(--green-700); }
.switch input:checked + .switch__track::after { transform: translateX(20px); }
.switch input:disabled + .switch__track { opacity: 0.7; }
.switch input:focus-visible + .switch__track { outline: 3px solid var(--green-700); outline-offset: 3px; }
.switch__state { min-width: 5.2em; font-size: 0.8rem; font-weight: 700; color: var(--black-900); }

.prefs__foot { display: flex; flex-wrap: wrap; gap: 10px; padding: 18px 28px 26px; border-top: 1px solid var(--line); }
.prefs__foot .btn { flex: 1 1 150px; min-height: 48px; padding: 0 16px; font-size: 0.88rem; }
.prefs .btn--outline { border-color: var(--black-900); color: var(--black-900); background: transparent; }
@media (hover: hover) {
  .prefs .btn--outline:hover { background: var(--black-900); color: var(--beige-50); }
}

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

/* ---------- Pagina legale (privacy.html) ---------- */
.legal-page { background: var(--beige-50); color: var(--black-900); }
.legal-header { position: static; background: var(--black-950); }
.legal-header .site-header__inner { height: 76px; }
.legal { padding: clamp(48px, 7vw, 96px) 0; background: var(--beige-50); color: var(--black-900); --fg-soft: var(--brown-600); --accent: var(--green-700); --focus: var(--green-700); }
.legal__inner { max-width: 780px; }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 14px; }
.legal h2 { margin: 52px 0 14px; font-size: clamp(1.5rem, 3vw, 2rem); }
.legal h3 { margin: 28px 0 8px; font-size: 1.2rem; }
.legal p, .legal li { color: #2c2a25; }
.legal ul { margin: 0 0 1em; padding-left: 22px; list-style: disc; }
.legal li { margin-bottom: 6px; }
.legal a { text-decoration: underline; text-underline-offset: 3px; color: var(--green-700); }
.legal__meta { color: var(--brown-600); font-size: 0.9rem; }
.todo { padding: 1px 8px; border-radius: 6px; background: var(--beige-200); border: 1px dashed var(--brown-600); font-weight: 700; color: var(--brown-800); }
.notice { margin: 28px 0; padding: 20px 24px; border-left: 4px solid var(--green-700); border-radius: 0 12px 12px 0; background: var(--beige-100); }
.notice p:last-child { margin-bottom: 0; }
.table-wrap { overflow-x: auto; margin: 16px 0 24px; }
.legal table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 0.92rem; }
.legal th, .legal td { padding: 12px 14px; border: 1px solid var(--beige-200); text-align: left; vertical-align: top; }
.legal th { background: var(--beige-100); font-weight: 700; }

/* Widget Chat posizionato in basso a sinistra per separarlo da WhatsApp */
.tn-chat-widget {
  position: fixed;
  bottom: 25px;
  left: 25px; /* Spostato a sinistra */
  z-index: 9999;
  font-family: inherit;
}

.tn-chat-window {
  position: absolute;
  bottom: 70px;
  left: 0; /* Si apre dal lato sinistro */
  right: auto;
  width: 340px;
  max-width: 90vw;
  height: 420px;
  background: #0f130f;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  overflow: hidden;
}

.tn-chat-window[hidden] {
  display: none !important;
}

.tn-chat-header {
  background: #161b16;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tn-chat-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
}

.status-dot {
  width: 8px;
  height: 8px;
  background-color: #25D366;
  border-radius: 50%;
  display: inline-block;
}

.tn-chat-close {
  background: none;
  border: none;
  color: #aaa;
  font-size: 1.4rem;
  cursor: pointer;
}

.tn-chat-body {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.9rem;
}

.message {
  padding: 10px 14px;
  border-radius: 8px;
  line-height: 1.4;
  max-width: 85%;
  word-break: break-word;
}

.message.bot {
  background: #1c231c;
  color: #e0e0e0;
  align-self: flex-start;
}

.message.user {
  background: #25D366;
  color: #fff;
  align-self: flex-end;
}

.tn-chat-footer {
  padding: 10px;
  background: #161b16;
  display: flex;
  gap: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.tn-chat-footer input {
  flex: 1;
  background: #070907;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  padding: 8px 12px;
  color: #fff;
  font-size: 0.9rem;
}

.tn-chat-footer input:focus {
  outline: none;
  border-color: #25D366;
}

