/* WaitEAT — componenti del sito (dal design originale) + token.
   Tailwind (utilities) è caricato via CDN nelle pagine. */
@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=DM+Sans:wght@400;500;600;700&family=Fraunces:opsz,wght@9..144,600;9..144,700&display=swap');

:root{
  --background:36 52% 95%; --foreground:21 33% 17%; --border:32 23% 83%;
  --card:38 58% 97%; --card-foreground:21 33% 17%;
  --primary:15 57% 42%; --primary-foreground:36 52% 95%;
  --secondary:157 18% 34%; --muted:34 26% 89%; --muted-foreground:22 16% 42%;
  --accent:42 82% 65%;
  --app-font-sans:'DM Sans',system-ui,-apple-system,sans-serif;
  --app-font-serif:'Fraunces',Georgia,serif;
  --app-font-mono:'DM Mono',ui-monospace,monospace;
  --radius:1rem;
  --shadow-soft:0 20px 60px rgba(91,53,33,.11); --shadow-card:0 10px 30px rgba(91,53,33,.08);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:var(--app-font-sans);color:hsl(var(--foreground));background:hsl(var(--background));-webkit-font-smoothing:antialiased}
a{text-decoration:none;color:inherit}
img,svg{display:block}
.font-display{font-family:var(--app-font-serif)}
.font-mono{font-family:var(--app-font-mono)}

.site-shell{overflow-x:hidden;background:radial-gradient(circle at 82% 8%, rgba(240,196,107,.17), transparent 24rem), hsl(var(--background))}
.grain::after{content:'';position:fixed;inset:0;pointer-events:none;opacity:.055;z-index:20;background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='.32'/%3E%3C/svg%3E")}

.reveal{opacity:0;transform:translateY(22px);transition:opacity 700ms ease, transform 700ms ease}
.reveal.is-visible{opacity:1;transform:translateY(0)}
@media (prefers-reduced-motion:reduce){.reveal{opacity:1;transform:none;transition:none}}

.nav-link{color:hsl(var(--muted-foreground));transition:color 180ms ease}
.nav-link:hover{color:hsl(var(--foreground))}

.button-primary{display:inline-flex;align-items:center;justify-content:center;gap:.55rem;border-radius:999px;background:hsl(var(--primary));color:hsl(var(--primary-foreground));padding:.85rem 1.25rem;font-size:.88rem;font-weight:700;letter-spacing:-.01em;transition:transform 180ms ease, background-color 180ms ease;cursor:pointer;border:none}
.button-primary:hover{background:hsl(15 57% 35%);transform:translateY(-2px)}
.button-primary:active{transform:translateY(0)}
.button-secondary{display:inline-flex;align-items:center;justify-content:center;gap:.55rem;border:1px solid hsl(var(--border));border-radius:999px;background:rgba(255,251,241,.52);color:hsl(var(--foreground));padding:.82rem 1.2rem;font-size:.88rem;font-weight:700;transition:transform 180ms ease, border-color 180ms ease, background-color 180ms ease;cursor:pointer}
.button-secondary:hover{border-color:hsl(var(--primary));background:hsl(var(--card));transform:translateY(-2px)}

.section-wrap{width:min(1160px,calc(100% - 2.5rem));margin-inline:auto}
.eyebrow{display:inline-flex;align-items:center;gap:.55rem;color:hsl(var(--primary));font-family:var(--app-font-mono);font-size:.68rem;letter-spacing:.11em;text-transform:uppercase}
.eyebrow::before{content:'';width:1.5rem;height:1px;background:currentColor}

.hero-grid{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(390px,.95fr);gap:clamp(2.5rem,7vw,7rem);align-items:center}
.queue-art{position:relative;min-height:500px;border-radius:2rem;background:#dbe4d5;overflow:hidden;box-shadow:var(--shadow-soft)}
.queue-art::before{content:'';position:absolute;width:23rem;height:23rem;right:-8rem;top:-8rem;border-radius:50%;background:rgba(247,211,135,.8)}
.queue-art::after{content:'';position:absolute;width:19rem;height:19rem;left:-10rem;bottom:-9rem;border-radius:50%;background:rgba(176,102,75,.18)}
.queue-board{position:absolute;left:8%;top:13%;width:58%;min-height:350px;border:1px solid rgba(38,64,53,.14);border-radius:1.4rem;background:rgba(249,246,233,.87);padding:1.3rem;transform:rotate(-4deg);box-shadow:0 18px 34px rgba(42,68,56,.12);z-index:1}
.queue-row{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid rgba(38,64,53,.12);padding:.85rem .15rem;color:#264035}
.queue-row:last-child{border-bottom:0}
.queue-dot{width:.52rem;height:.52rem;border-radius:999px;background:#b4664b;display:inline-block}
.queue-row:nth-child(3) .queue-dot{background:#dfae4f}
.queue-row:nth-child(4) .queue-dot{background:#73907c}
.phone-art{position:absolute;width:42%;min-width:180px;right:8%;bottom:8%;border:7px solid #33483d;border-radius:2rem;background:#fbf7ed;padding:1rem;box-shadow:0 24px 38px rgba(37,59,49,.23);transform:rotate(6deg);z-index:2}
.phone-notch{width:28%;height:.3rem;margin:0 auto 1.4rem;border-radius:999px;background:#33483d}
.phone-progress{width:76%;height:.42rem;border-radius:999px;background:#dfae4f}
.scribble{position:absolute;right:4%;top:7%;color:#a4533d;font-family:var(--app-font-serif);font-size:1.1rem;font-style:italic;transform:rotate(9deg);z-index:3}
.number-line{display:grid;grid-template-columns:auto 1fr;gap:1.25rem;border-top:1px solid hsl(var(--border));padding-top:1.4rem}
.number-line + .number-line{margin-top:1.4rem}
.step-card{position:relative;min-height:27rem;overflow:hidden;border-radius:1.5rem;background:hsl(var(--card));box-shadow:var(--shadow-card)}
.step-card:nth-child(2){margin-top:3.5rem}
.step-card:nth-child(3){margin-top:1.25rem}
.step-card-visual{min-height:14rem;padding:1.5rem}
.calculator-slider{width:100%;accent-color:hsl(var(--primary))}
.calculator-slider::-webkit-slider-runnable-track{height:.42rem;border-radius:999px;background:hsl(var(--muted))}
.calculator-slider::-webkit-slider-thumb{width:1.2rem;height:1.2rem;margin-top:-.39rem;border:3px solid hsl(var(--card));border-radius:50%;background:hsl(var(--primary));box-shadow:0 2px 8px rgba(91,53,33,.2);-webkit-appearance:none;appearance:none}
.faq-item summary{cursor:pointer;list-style:none}
.faq-item summary::-webkit-details-marker{display:none}
.footer-grid{display:grid;grid-template-columns:1fr auto auto;gap:3rem}
.page-hero{position:relative;isolation:isolate;overflow:hidden}
.page-hero::after{content:'';position:absolute;width:22rem;height:22rem;right:-8rem;top:-8rem;border-radius:50%;background:rgba(223,174,79,.18);z-index:-1}
.ink-card{border:1px solid rgba(118,88,63,.18);border-radius:1.5rem;background:rgba(249,246,233,.72);box-shadow:var(--shadow-card)}
.quiet-link{color:hsl(var(--muted-foreground));transition:color 180ms ease}
.quiet-link:hover{color:hsl(var(--primary))}
.footer-link{color:#d4dfd1;transition:color 180ms ease, transform 180ms ease}
.footer-link:hover{color:#e7c47a;transform:translateX(2px)}
.form-field{display:grid;gap:.45rem;color:#403d35;font-size:.875rem;font-weight:600}
.form-field input{border:1px solid #ddcfb9;border-radius:.75rem;background:#fffaf0;padding:.78rem 1rem;color:#2f3d33;font-size:.875rem;font-weight:400;outline:none;transition:border-color 180ms ease, box-shadow 180ms ease}
.form-field input:focus{border-color:#b4664b;box-shadow:0 0 0 3px rgba(180,102,75,.13)}

@media (max-width:860px){
  .hero-grid{grid-template-columns:1fr}
  .queue-art{max-width:620px;min-height:450px;margin-inline:auto}
  .step-card:nth-child(2),.step-card:nth-child(3){margin-top:0}
  .footer-grid{grid-template-columns:1fr 1fr}
  .footer-grid>:first-child{grid-column:1 / -1}
}
@media (max-width:560px){
  .section-wrap{width:min(100% - 2rem,1160px)}
  .hero-grid{gap:2rem}
  .queue-art{min-height:390px;border-radius:1.4rem}
  .queue-board{min-height:280px;padding:.85rem}
  .phone-art{min-width:145px;border-width:5px;border-radius:1.4rem;padding:.7rem}
  .footer-grid{grid-template-columns:1fr;gap:1.6rem}
  .footer-grid>:first-child{grid-column:auto}
}
