/* Quelli del Team Building: stili del sito
   Palette presa dal marchio: blu notte, arancione, giallo. */

:root {
  --blu: #05234f;
  --blu-scuro: #031634;
  --blu-tavolo: #0b3269;
  --arancio: #ef6c00;
  --arancio-testo: #b34d00; /* arancione scurito per testo piccolo su sfondo chiaro */
  --giallo: #f8b500;
  --carta: #f3f6fb;
  --bianco: #ffffff;
  --linea: #d5dcea;
  --grigio: #46537a;

  --font: "Avenir Next", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --larghezza: 1120px;
  --gutter: clamp(20px, 4vw, 40px);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--blu);
  background: var(--bianco);
}

img, svg { max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; line-height: 1.1; letter-spacing: -0.02em; font-weight: 800; }

:focus-visible { outline: 3px solid var(--arancio); outline-offset: 3px; }

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

/* ---------- Bottoni ---------- */
.btn {
  display: inline-block;
  padding: 0.85em 1.5em;
  background: var(--arancio);
  color: var(--blu-scuro);
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  border: 2px solid var(--arancio);
  border-radius: 999px;
  cursor: pointer;
  transition: background-color .18s, color .18s, border-color .18s;
}
.btn:hover { background: var(--giallo); border-color: var(--giallo); }
.btn-chiaro { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn-chiaro:hover { background: #fff; color: var(--blu-scuro); border-color: #fff; }
.btn-piccolo { padding: 0.5em 1.1em; font-size: 0.95rem; }
.btn-pieno { width: 100%; font-size: 1.05rem; }

/* ---------- Testata ---------- */
.testata {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--linea);
  backdrop-filter: blur(8px);
}
.testata-dentro {
  max-width: var(--larghezza); margin: 0 auto;
  padding: 10px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.marchio { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.marchio-simbolo { width: 46px; height: 46px; flex: none; }
.marchio-testo { display: flex; flex-direction: column; line-height: 1; }
.marchio-sopra { font-size: 0.78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--arancio-testo); }
.marchio-nome { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.01em; margin-top: 4px; text-transform: uppercase; }

.menu { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 30px); }
.menu a:not(.btn) { text-decoration: none; font-weight: 600; font-size: 0.97rem; padding: 6px 0; border-bottom: 2px solid transparent; }
.menu a:not(.btn):hover { border-bottom-color: var(--arancio); }

.menu-toggle {
  display: none;
  font: inherit; font-weight: 700; color: var(--blu);
  background: none; border: 2px solid var(--blu); border-radius: 999px;
  padding: 6px 16px; cursor: pointer;
}

/* ---------- Hero ---------- */
.hero { background: var(--blu-scuro); color: #fff; overflow: hidden; }
.hero-dentro {
  max-width: var(--larghezza); margin: 0 auto;
  padding: clamp(40px, 7vw, 88px) var(--gutter) clamp(36px, 5vw, 56px);
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center; gap: clamp(24px, 5vw, 64px);
}
.hero h1 { font-size: clamp(2.2rem, 4.9vw, 3.9rem); text-wrap: balance; }
.hero-intro { margin: 24px 0 0; font-size: 1.15rem; max-width: 34em; color: #d6e0f2; }
.hero-azioni { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 14px; }

.tavolo { margin: 0; }
.tavolo svg { width: 100%; height: auto; display: block; max-width: 540px; margin-left: auto; }
.tavolo-alone { fill: rgba(255,255,255,.04); }
.tavolo-piano { fill: var(--blu-tavolo); }
.tavolo-anello { fill: none; stroke: rgba(255,255,255,.09); stroke-width: 2; }
.posto-bordo { fill: rgba(255,255,255,.04); stroke: #fff; stroke-width: 3; stroke-dasharray: 7 6; }
.posto-libero text { fill: #fff; font: 800 21px var(--font); letter-spacing: -0.01em; }

@keyframes arriva {
  from { opacity: 0; transform: scale(.55); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes respira {
  0%, 100% { stroke-opacity: 1; }
  50% { stroke-opacity: .35; }
}
@media (prefers-reduced-motion: no-preference) {
  .posto { transform-box: fill-box; transform-origin: center; animation: arriva .5s cubic-bezier(.2,.9,.3,1.2) both; animation-delay: calc(var(--i) * .13s + .15s); }
  .posto-libero .posto-bordo { animation: respira 2.6s ease-in-out 1.2s 3; }
}

.dati {
  max-width: var(--larghezza); margin: 0 auto;
  padding: 0 var(--gutter) clamp(32px, 4vw, 48px);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
}
.dati > div { padding: 18px 24px 0 0; border-top: 1px solid rgba(255,255,255,.2); }
.dati dt { font-size: 0.9rem; color: #aebfdc; font-weight: 600; }
.dati dd { margin: 2px 0 0; font-size: 1.15rem; font-weight: 700; }

/* ---------- Sezioni ---------- */
.sezione { padding: clamp(64px, 9vw, 112px) 0; }
.sezione-carta { background: var(--carta); }
.colonna { max-width: var(--larghezza); margin: 0 auto; padding: 0 var(--gutter); }
.colonna-2 { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 6vw, 80px); align-items: start; }

h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); text-wrap: balance; }
.sottotitolo { margin: 16px 0 0; color: var(--grigio); max-width: 36em; }
.testo p { max-width: 34em; }
.testo p:last-child { margin-bottom: 0; }
.nota { margin: 36px 0 0; color: var(--grigio); font-size: 0.97rem; max-width: 46em; }
a:not(.btn):not(.marchio):not(.salta) { text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* Ingredienti: righe, non schede */
.ingredienti { margin-top: 44px; border-top: 1px solid var(--linea); }
.ingrediente {
  display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(16px, 6vw, 80px); padding: 28px 0; border-bottom: 1px solid var(--linea);
}
.ingrediente h3 { font-size: 1.35rem; display: flex; align-items: flex-start; gap: 14px; }
.ingrediente p { margin: 0; max-width: 34em; }
.pallino { width: 18px; height: 18px; border-radius: 50%; flex: none; margin-top: 0.12em; }
.pallino-arancio { background: var(--arancio); }
.pallino-blu { background: var(--blu); }
.pallino-giallo { background: var(--giallo); }

/* Sequenza: questa è una vera sequenza, quindi ha i numeri */
.sequenza { list-style: none; margin: 0; padding: 0; counter-reset: passo; position: relative; }
.sequenza::before { content: ""; position: absolute; left: 17px; top: 18px; bottom: 18px; width: 2px; background: var(--linea); }
.sequenza li { counter-increment: passo; position: relative; padding: 0 0 26px 58px; max-width: 34em; }
.sequenza li:last-child { padding-bottom: 0; }
.sequenza li::before {
  content: counter(passo);
  position: absolute; left: 0; top: -2px;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--blu); color: #fff; font-weight: 800; font-size: 0.95rem;
  display: grid; place-items: center;
}
.sequenza li:nth-child(odd)::before { background: var(--arancio); color: var(--blu-scuro); }
.sequenza strong { display: block; font-size: 1.12rem; }

/* Date */
.date { margin-top: 40px; border-top: 1px solid var(--linea); }
.data-evento {
  display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr) auto;
  gap: 24px; align-items: center; padding: 28px 0; border-bottom: 1px solid var(--linea);
}
.data-evento h3 { font-size: 1.4rem; }
.data-evento .luogo { margin: 4px 0 0; color: var(--grigio); }
.data-evento p { margin: 0; }
.data-evento .dettagli { margin-top: 6px; color: var(--grigio); font-size: .95rem; }
.data-evento .esaurito { font-weight: 800; color: var(--arancio-testo); }
.date-vuoto { padding: 32px 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--linea); }
.date-vuoto p { margin: 0; max-width: 36em; }

/* Welcome box */
.sezione-box { background: var(--giallo); }
.sezione-box h2 { color: var(--blu-scuro); }
.sottotitolo-box { margin: 16px 0 0; max-width: 30em; }
.box-elenco { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; }
.box-elenco li { padding-left: 22px; border-left: 4px solid var(--blu); }
.box-elenco h3 { font-size: 1.3rem; margin-bottom: 6px; }
.box-elenco p { margin: 0; max-width: 32em; }

/* Prezzi */
.prezzi { margin-top: 44px; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.listino-riga { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 26px 0; border-top: 1px solid var(--linea); }
.listino-riga h3 { font-size: 1.35rem; }
.listino-riga p { margin: 4px 0 0; color: var(--grigio); }
.listino-riga .prezzo { margin: 0; text-align: right; color: var(--grigio); white-space: nowrap; }
.prezzo span { font-size: clamp(2.4rem, 5vw, 3.4rem); font-weight: 800; letter-spacing: -0.03em; color: var(--blu); }
.listino-evidenza .prezzo span { color: var(--arancio-testo); }
.collega { padding: 24px 0 0; border-top: 1px solid var(--linea); }
.collega h3 { font-size: 1.2rem; }
.collega p { margin: 6px 0 0; max-width: 34em; }

.incluso { background: var(--carta); padding: 28px; border-radius: 4px; border-left: 6px solid var(--arancio); }
.incluso h3 { font-size: 1.2rem; margin-bottom: 14px; }
.incluso ul { list-style: none; margin: 0 0 24px; padding: 0; }
.incluso li { padding: 8px 0 8px 28px; position: relative; }
.incluso li::before { content: ""; position: absolute; left: 0; top: 1.05em; width: 12px; height: 12px; border-radius: 50%; background: var(--giallo); }

/* FAQ: apertura animata, risponde a un'azione dell'utente */
.faq details { border-top: 1px solid var(--linea); }
.faq details:last-child { border-bottom: 1px solid var(--linea); }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 40px 20px 0; font-weight: 700; font-size: 1.1rem; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-size: 1.6rem; font-weight: 400; line-height: 1; transition: transform .2s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { margin: 0 0 22px; max-width: 34em; color: var(--grigio); }
@media (prefers-reduced-motion: no-preference) {
  .faq details[open] p { animation: apri .22s ease-out; }
  @keyframes apri { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
}

/* Prenota */
.sezione-prenota { background: var(--blu-scuro); color: #fff; }
.sezione-prenota h2 { color: #fff; }
.colonna-prenota { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 6vw, 80px); align-items: start; }
.prenota-testo p { color: #d6e0f2; max-width: 28em; }
.prenota-testo h2 + p { margin-top: 18px; }
.contatti { font-size: 1.15rem; font-weight: 700; }
.contatti a { color: #fff; }

.modulo { background: #fff; color: var(--blu); padding: clamp(22px, 4vw, 36px); border-radius: 4px; display: grid; gap: 18px; }
.campo-coppia { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.campo label { display: block; font-weight: 700; font-size: 0.95rem; margin-bottom: 6px; }
.facolt { font-weight: 400; color: var(--grigio); }
.campo input, .campo select, .campo textarea {
  width: 100%; font: inherit; color: var(--blu); background: #fff;
  border: 2px solid var(--linea); border-radius: 6px; padding: 12px 14px;
}
.campo input:focus, .campo select:focus, .campo textarea:focus { border-color: var(--blu); outline: 3px solid rgba(239,108,0,.35); outline-offset: 0; }
.campo textarea { resize: vertical; min-height: 110px; }
.campo-spunta { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: 0.95rem; }
.campo-spunta input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--arancio); }
.campo-spunta label { line-height: 1.45; }
.campo .errore, .campo-spunta .errore { grid-column: 1 / -1; }
.invalido input, .invalido select, .invalido textarea { border-color: #b3261e; }
.msg-errore { color: #b3261e; font-size: 0.9rem; font-weight: 600; margin-top: 6px; }
.campo-spunta .msg-errore { grid-column: 2; margin-top: 0; }
.trappola { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.esito { margin: 0; font-weight: 700; min-height: 1.5em; }
.esito.ok { color: #0a6b3a; }
.esito.ko { color: #b3261e; }
.btn[disabled] { opacity: .65; cursor: progress; }

/* Piede */
.piede { background: var(--blu-scuro); color: #d6e0f2; border-top: 1px solid rgba(255,255,255,.12); --fig-a: #fff; }
.piede-dentro { max-width: var(--larghezza); margin: 0 auto; padding: 40px var(--gutter) 16px; display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-between; }
.piede-marchio { display: flex; gap: 16px; align-items: center; max-width: 30em; }
.piede-marchio p { margin: 0; font-size: 0.95rem; }
.piede-marchio strong { color: #fff; }
.piede-simbolo { width: 56px; height: 56px; flex: none; }
.piede-contatti { margin: 0; font-size: 0.97rem; }
.piede-contatti a { color: #fff; }
.piede-copy { max-width: var(--larghezza); margin: 0 auto; padding: 0 var(--gutter) 28px; font-size: 0.85rem; color: #8fa3c8; }

/* ---------- Pagina informativa ---------- */
.documento { max-width: 760px; margin: 0 auto; padding: 48px var(--gutter) 80px; }
.documento h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 8px; }
.documento h2 { font-size: 1.4rem; margin: 40px 0 10px; }
.documento p, .documento li { max-width: 40em; }
.documento .agg { color: var(--grigio); margin-bottom: 32px; }

/* ---------- Mobile ---------- */
@media (max-width: 860px) {
  .menu-toggle { display: inline-block; }
  .menu {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--linea); padding: 8px var(--gutter) 20px;
  }
  .menu.aperto { display: flex; }
  .menu a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--linea); }
  .menu .btn { margin-top: 16px; text-align: center; }

  .hero-dentro { grid-template-columns: 1fr; }
  .tavolo svg { margin: 0 auto; max-width: 420px; }
  .dati { grid-template-columns: 1fr; }
  .dati > div { padding-bottom: 14px; }

  .colonna-2, .ingrediente, .prezzi, .colonna-prenota { grid-template-columns: 1fr; }
  .data-evento { grid-template-columns: 1fr; gap: 14px; }
  .listino-riga { flex-direction: column; align-items: flex-start; gap: 8px; }
  .listino-riga .prezzo { text-align: left; }
}

@media (max-width: 520px) {
  .campo-coppia { grid-template-columns: 1fr; }
  .marchio-nome { font-size: 1.1rem; }
  .marchio-simbolo { width: 40px; height: 40px; }
  .btn { width: 100%; text-align: center; }
  .btn-piccolo { width: auto; }
}
