/* Esemdemì – stile condiviso (home, Impressum, Privacy & Cookie Policy) */

:root {
  --ink: #2b2b29;          /* sfondo sezioni (come sito attuale) */
  --hero: #3c3c3b;         /* colore base del bg-1.jpg */
  --gold: #c69c6d;         /* oro CTA sito attuale */
  --gold-cursor: #a79665;  /* oro puntatore sito attuale */
  --text: #ffffff;
  --text-soft: rgba(255, 255, 255, .78);
  --hairline: rgba(198, 156, 109, .28);
  --gutter: clamp(24px, 4vw, 64px);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: "Josefin Sans", system-ui, sans-serif;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  background-color: var(--hero);
  background-image: url("../assets/bg-1.jpg");
  background-size: cover;
  background-position: 100% 50%;   /* immagine larga: ancorata a destra (tavolo + ombra chef) */
  background-repeat: no-repeat;
  isolation: isolate;
  overflow: hidden;
}

/* Velo base: su touch/mobile sostituisce lo spotlight e uniforma il tono con la sezione sotto */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(120% 80% at 15% 40%, rgba(0,0,0,0) 0%, rgba(0,0,0,.18) 60%),
    linear-gradient(to bottom, rgba(0,0,0,.22), rgba(0,0,0,.30));
  pointer-events: none;
}

/* Sfumatura verso la sezione successiva (sempre attiva) */
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 28%;
  z-index: 1;
  background: linear-gradient(to bottom, rgba(43,43,41,0), var(--ink));
  pointer-events: none;
}

/* Spotlight (solo desktop): area chiara attorno al puntatore, resto scurito – come sito attuale */
.spotlight {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.2s var(--ease);
  background:
    radial-gradient(circle at var(--sx, 22%) var(--sy, 72%),
      rgba(198,156,109,.06) 0,
      rgba(198,156,109,0) 140px),
    radial-gradient(circle at var(--sx, 22%) var(--sy, 72%),
      transparent 100px,
      rgba(0,0,0,.30) 200px);
}

.logo-box {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;
  width: clamp(96px, 10vw, 200px);
  aspect-ratio: 200 / 248;
  background: #fff;
  display: grid;
  place-items: center;
}
.logo-box img { width: 64%; }
a.logo-box { transition: opacity .4s var(--ease); }
a.logo-box:hover { opacity: .92; }

.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 var(--gutter) 0 15.25vw;
  margin-top: 6vh;
}

.hero h1 {
  margin: 0;
  font-weight: 100;
  font-size: clamp(36px, 5.65vw, 128px);
  line-height: 1;
  letter-spacing: .01em;
  text-transform: uppercase;
}
.hero h1 .line { display: block; overflow: hidden; padding-block: .04em; }
.hero h1 .line > span {
  display: inline-block;
  transform: translateY(105%);
  animation: rise 1.4s var(--ease) forwards;
}
.hero h1 .line:nth-child(2) > span { animation-delay: .14s; }
.hero h1 .line:nth-child(3) > span { animation-delay: .28s; }

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: clamp(20px, 4vh, 44px);
  z-index: 2;
  width: 1px;
  height: 56px;
  background: linear-gradient(to bottom, rgba(198,156,109,0), var(--gold));
  transform-origin: top;
  opacity: 0;
  animation: fade 1s 1.4s var(--ease) forwards, cue 2.6s 2.4s var(--ease) infinite;
}

/* ---------- INTRO ---------- */
.intro {
  padding: clamp(80px, 12vw, 180px) var(--gutter) clamp(40px, 6vw, 90px);
}
.intro__text {
  max-width: 62rem;
  margin-left: calc(25vw - var(--gutter) + 3.5vw);
}
.intro p {
  margin: 0;
  font-size: clamp(18px, 1.55vw, 26px);
  line-height: 1.7;
  font-weight: 300;
  color: var(--text-soft);
}
.intro p::first-line { color: var(--text); }

/* ---------- LOCALI ---------- */
.venues {
  padding: clamp(60px, 8vw, 120px) var(--gutter) clamp(90px, 11vw, 170px);
}
.venues h2 {
  margin: 0 0 clamp(48px, 6vw, 96px);
  text-align: center;
  font-weight: 400;
  font-size: clamp(26px, 2.6vw, 40px);
  line-height: 1;
  letter-spacing: .02em;
}
.venues h2::after {
  content: "";
  display: block;
  width: 48px;
  height: 1px;
  margin: 28px auto 0;
  background: var(--gold);
}

.venues__list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 1320px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.venue {
  display: grid;
  place-items: center;
  min-height: clamp(170px, 14vw, 230px);
  padding: 24px clamp(24px, 3vw, 56px);
}
.venue + .venue { border-left: 1px solid var(--hairline); }
.venue img {
  width: var(--w);
  opacity: .82;
  transition: opacity .6s var(--ease), transform .8s var(--ease);
}
.venue:hover img { opacity: 1; transform: translateY(-4px); }
.venue a { display: block; border-radius: 2px; }
.venue a:focus-visible { outline: 1px solid var(--gold); outline-offset: 12px; }
.venue a:focus-visible img { opacity: 1; }

.venue--tree   img { --w: clamp(165px, 14.5vw, 235px); }
.venue--viaggio img { --w: clamp(145px, 12.5vw, 205px); }
.venue--irma   img { --w: clamp(96px, 7.8vw, 125px); }

/* ---------- FOOTER ---------- */
.footer {
  position: relative;
  background: #232321;
  padding: clamp(64px, 8vw, 120px) var(--gutter) 0;
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.75;
}
.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--gutter);
  right: var(--gutter);
  height: 1px;
  background: linear-gradient(to right, rgba(198,156,109,0), var(--gold) 50%, rgba(198,156,109,0));
  opacity: .45;
}
.footer__wrap { max-width: 1320px; margin: 0 auto; }
.footer a { color: inherit; text-decoration: none; transition: color .4s var(--ease); }
.footer a:hover, .footer a:focus-visible { color: var(--gold); }

.footer__top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  padding-bottom: clamp(48px, 6vw, 80px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer__wordmark {
  margin: 0;
  font-weight: 200;
  font-size: clamp(30px, 3.4vw, 52px);
  line-height: 1;
  letter-spacing: .14em;
  color: var(--text);
}
.footer__claim {
  margin: 14px 0 0;
  font-size: 13px;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--gold);
}
.footer__cta { text-align: right; }
.footer__label {
  display: block;
  margin-bottom: 10px;
  font-size: 12px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
}
.footer__mail {
  position: relative;
  display: inline-block;
  font-weight: 200;
  font-size: clamp(24px, 2.6vw, 40px);
  line-height: 1.2;
  color: var(--text) !important;
}
.footer__mail::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .7s var(--ease);
}
.footer__mail:hover::after, .footer__mail:focus-visible::after { transform: scaleX(1); transform-origin: left; }

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding: clamp(40px, 5vw, 64px) 0;
}
.footer h3 {
  margin: 0 0 16px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold);
}
.footer address { font-style: normal; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer__strong { color: var(--text); }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 24px 0 32px;
  border-top: 1px solid rgba(255,255,255,.08);
  font-size: 12px;
  letter-spacing: .08em;
  color: rgba(255,255,255,.4);
}
.footer__top-link { display: inline-flex; align-items: center; gap: 10px; }
.footer__top-link span { display: inline-block; transition: transform .5s var(--ease); }
.footer__top-link:hover span { transform: translateY(-3px); }

@media (max-width: 1024px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
  .footer__top { flex-direction: column; align-items: flex-start; }
  .footer__cta { text-align: left; }
  .footer__grid { grid-template-columns: 1fr; gap: 36px; }
  .footer__bottom { flex-direction: column; }
}

/* ---------- PAGINE INTERNE (Impressum, Privacy) ---------- */
.hero--page {
  min-height: clamp(440px, 68vh, 780px);
  min-height: clamp(440px, 68svh, 780px);
  align-items: flex-end;
}
.hero--page .hero__inner {
  margin-top: 0;
  padding-bottom: clamp(56px, 10vh, 120px);
}
.hero--page h1 { font-size: clamp(40px, 5.2vw, 108px); }
.hero__back {
  position: absolute;
  top: clamp(28px, 3.4vw, 52px);
  right: var(--gutter);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: rgba(255,255,255,.72);
  text-decoration: none;
  transition: color .4s var(--ease);
}
.hero__back span { display: inline-block; transition: transform .5s var(--ease); }
.hero__back:hover, .hero__back:focus-visible { color: var(--gold); }
.hero__back:hover span { transform: translateX(-4px); }

.page {
  padding: clamp(72px, 9vw, 140px) var(--gutter) clamp(90px, 11vw, 170px);
}
.page__wrap { max-width: 1180px; margin: 0 auto; }

/* Impressum */
.legal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--hairline);
}
.legal-card { padding: clamp(36px, 4vw, 56px) clamp(24px, 3vw, 48px) 0 0; }
.legal-card + .legal-card {
  border-left: 1px solid var(--hairline);
  padding-left: clamp(24px, 3vw, 48px);
}
.legal-card h2 {
  margin: 0 0 26px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold);
}
.legal-card__name {
  display: block;
  margin: 0 0 18px;
  font-size: clamp(24px, 2vw, 30px);
  font-weight: 200;
  line-height: 1.25;
  color: var(--text);
}
.legal-card p {
  margin: 0 0 1.2em;
  font-size: 17px;
  line-height: 1.75;
  color: var(--text-soft);
}
.legal-card__label {
  display: block;
  font-size: 11px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
}
.legal-card a, .pp-policy a.link {
  color: var(--text);
  text-decoration: none;
  background-image: linear-gradient(var(--gold), var(--gold));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0 1px;
  transition: background-size .6s var(--ease), color .4s var(--ease);
}
.legal-card a:hover, .legal-card a:focus-visible { color: var(--gold); background-size: 100% 1px; }
.legal-card a.legal-card__logo {
  display: inline-block;
  margin: 2px 0 24px;
  background: none;
}
.legal-card__logo img {
  width: clamp(150px, 11vw, 176px);
  opacity: .9;
  transition: opacity .4s var(--ease), transform .6s var(--ease);
}
.legal-card__logo:hover img, .legal-card__logo:focus-visible img { opacity: 1; transform: translateY(-2px); }

/* Privacy & Cookie Policy (blocco generato dal kit, stile scuro del sito) */
.pp-policy {
  max-width: 900px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-soft);
}
.pp-policy p { margin: 0 0 1em; }
.pp-policy ul { margin: 0 0 1em 1.2em; padding: 0; }
.pp-policy li { margin: 0 0 .4em; }
.pp-policy li::marker { color: var(--gold); }
.pp-policy strong { color: var(--text); font-weight: 400; }
.pp-policy a {
  color: var(--gold);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color .4s var(--ease);
}
.pp-policy a:hover { color: var(--text); }

.pp-section { margin: 0 0 clamp(64px, 8vw, 110px); scroll-margin-top: 40px; }
.pp-section:last-child { margin-bottom: 0; }
.pp-section > h2 {
  margin: 0 0 26px;
  font-size: clamp(28px, 2.8vw, 42px);
  font-weight: 200;
  line-height: 1.15;
  letter-spacing: .02em;
  color: var(--text);
}
.pp-section > h2::after {
  content: "";
  display: block;
  width: 40px;
  height: 1px;
  margin-top: 22px;
  background: var(--gold);
}
.pp-section > .pp-intro { margin-bottom: 32px; }

.pp-toggles { border-top: 1px solid var(--hairline); }
.pp-toggle { border-bottom: 1px solid var(--hairline); }
.pp-toggle-title { margin: 0; font-size: 14px; font-weight: 400; letter-spacing: .16em; }
.pp-toggle-btn {
  all: unset;
  display: flex;
  align-items: center;
  gap: 18px;
  width: 100%;
  box-sizing: border-box;
  padding: 22px 4px;
  cursor: pointer;
  color: var(--text);
  text-transform: uppercase;
  transition: color .4s var(--ease);
}
.pp-toggle-btn:hover { color: var(--gold); }
.pp-toggle-btn:focus-visible { outline: 1px solid var(--gold); outline-offset: 2px; }
.pp-toggle-icon { position: relative; flex: 0 0 14px; width: 14px; height: 14px; color: var(--gold); }
.pp-toggle-icon::before, .pp-toggle-icon::after { content: ""; position: absolute; background: currentColor; transition: transform .35s var(--ease); }
.pp-toggle-icon::before { left: 0; top: 6.5px; width: 14px; height: 1px; }
.pp-toggle-icon::after { left: 6.5px; top: 0; width: 1px; height: 14px; }
.pp-toggle.is-open .pp-toggle-icon::after { transform: rotate(90deg); }
.pp-toggle-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.pp-toggle-panel > div { overflow: hidden; }
.pp-toggle.is-open .pp-toggle-panel { grid-template-rows: 1fr; }
.pp-toggle-inner { padding: 0 4px 30px 36px; }

.pp-table-wrap { overflow-x: auto; margin: 0 0 1.25em; -webkit-overflow-scrolling: touch; }
.pp-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.pp-table th, .pp-table td { border: 1px solid rgba(255,255,255,.12); padding: 10px 12px; text-align: left; vertical-align: top; }
.pp-table th { background: rgba(255,255,255,.04); color: var(--text); font-weight: 400; white-space: nowrap; }

@media (max-width: 900px) {
  .legal-grid { grid-template-columns: 1fr; }
  .legal-card, .legal-card + .legal-card { padding: 40px 0; border-left: 0; }
  .legal-card + .legal-card { border-top: 1px solid var(--hairline); }
}
@media (max-width: 767px) {
  .hero.hero--page { min-height: 62svh; align-items: flex-start; }
  .hero--page .hero__inner { padding-top: calc(clamp(96px, 10vw, 200px) * 248 / 200 + 56px); padding-bottom: 0; }
  .pp-toggle-inner { padding-left: 0; }
  .pp-toggle-btn { padding: 20px 0; }
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1.2s var(--ease), transform 1.2s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.venue.reveal:nth-child(2) { transition-delay: .12s; }
.venue.reveal:nth-child(3) { transition-delay: .24s; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Cursore custom (solo desktop) ---------- */
.cursor { display: none; }
.has-cursor .cursor { display: block; }
.has-cursor, .has-cursor * { cursor: none !important; }
.cursor span {
  position: fixed;
  top: 0;
  left: 0;
  border-radius: 50%;
  background: var(--gold-cursor);
  pointer-events: none;
  will-change: transform;
  opacity: 0;
  transition: opacity .4s var(--ease);
}
.cursor__dot  { width: 12px; height: 12px; margin: -6px 0 0 -6px; z-index: 1001; }
.cursor__halo { width: 12px; height: 12px; margin: -6px 0 0 -6px; z-index: 1000; }
.cursor__halo::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--gold-cursor);
  opacity: .22;
  transform: scale(2.2);
  transition: transform .45s var(--ease);
}
.cursor.is-visible span { opacity: 1; }
.cursor .cursor__halo { background: transparent; }
.cursor.is-hover .cursor__halo::after { transform: scale(5); }

/* ---------- Desktop ---------- */
@media (hover: hover) and (pointer: fine) {
  .has-cursor .hero::before { opacity: 0; }
  .has-cursor .spotlight { opacity: 1; }
  .hero::before { transition: opacity 1.2s var(--ease); }
}

/* ---------- Tablet / mobile ---------- */
@media (max-width: 900px) {
  .intro__text { margin-left: 0; }
}
@media (max-width: 767px) {
  .hero { align-items: flex-start; }
  .hero__inner { padding: 0 var(--gutter); margin-top: 0; padding-top: 42svh; }
  .hero h1 { font-size: clamp(34px, 9.6vw, 56px); line-height: 1.04; }
  .venues__list { grid-template-columns: 1fr; max-width: 420px; }
  .venue { min-height: 0; padding: 36px 0; }
  .venue + .venue { border-left: 0; border-top: 1px solid var(--hairline); }
  .venue--viaggio img { --w: 150px; }
  .venue--tree img { --w: 170px; }
  .venue--irma img { --w: 96px; }
}

@keyframes rise { to { transform: none; } }
@keyframes fade { to { opacity: 1; } }
@keyframes cue {
  0%   { transform: scaleY(0); transform-origin: top; }
  45%  { transform: scaleY(1); transform-origin: top; }
  55%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

@media (prefers-reduced-motion: reduce) {
  .hero h1 .line > span { animation: none; transform: none; }
  .scroll-cue { animation: none; opacity: 1; }
  .reveal { transition: none; opacity: 1; transform: none; }
  .venue img { transition: none; }
  .pp-toggle-panel, .pp-toggle-icon::before, .pp-toggle-icon::after { transition: none; }
  html { scroll-behavior: auto; }
}
  
