/* Koka Spa · Latte e Cioccolato — proposta di restyling */
:root {
  --cacao: #4a3428;
  --cacao-scuro: #33231b;
  --cacao-chiaro: #6b4e3d;
  --latte: #f6efe6;
  --panna: #ecdfcd;
  --caramello: #d9a46a;
  --caramello-testo: #845528;
  --inchiostro: #2a1d17;
  --grigio: #6a5a50;
  --wrap: 1200px;
  --gutter: clamp(18px, 4.5vw, 44px);
  --display: "Gilda Display", "Didot", Georgia, serif;
  --text: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.25, .7, .25, 1);
  --wave-h: clamp(36px, 5.5vw, 76px);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
[id] { scroll-margin-top: 76px; }
body { margin: 0; font-family: var(--text); font-size: 1.0625rem; line-height: 1.7; color: var(--inchiostro); background: var(--latte); overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; margin: 0; line-height: 1.02; letter-spacing: -.015em; }
h2 { font-size: clamp(2.4rem, 6.2vw, 4.4rem); margin-bottom: .4em; }
h3 { font-size: 1.9rem; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; z-index: 100; background: var(--cacao); color: var(--latte); padding: .6em 1em; }
.skip:focus { left: 8px; top: 8px; }
:focus-visible { outline: 3px solid var(--caramello); outline-offset: 3px; }
.tiny { font-size: .82rem; color: var(--grigio); }

.preview-strip { height: 28px; line-height: 28px; font-size: .74rem; letter-spacing: .05em; text-align: center; background: var(--cacao-scuro); color: var(--panna); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 12px; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(246, 239, 230, .96); transition: box-shadow .3s var(--ease); }
.site-header.is-compact { box-shadow: 0 1px 0 rgba(74, 52, 40, .15), 0 10px 24px -14px rgba(74, 52, 40, .35); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; transition: height .3s var(--ease); }
.is-compact .header-inner { height: 60px; }
.brand { text-decoration: none; display: flex; flex-direction: column; line-height: 1; color: var(--cacao); }
.brand-name { font-family: var(--display); font-size: 1.85rem; letter-spacing: -.01em; transition: font-size .3s var(--ease); }
.is-compact .brand-name { font-size: 1.55rem; }
.brand-sub { font-size: .68rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--caramello-testo); margin-top: 5px; }
.menu-toggle { width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(74, 52, 40, .3); background: transparent; color: var(--cacao); display: grid; place-items: center; cursor: pointer; }
.mt-lines { width: 20px; height: 10px; position: relative; display: block; }
.mt-lines i { position: absolute; left: 0; right: 0; height: 2px; background: currentColor; border-radius: 2px; transition: transform .3s var(--ease), top .3s var(--ease); }
.mt-lines i:first-child { top: 0; }
.mt-lines i:last-child { top: 8px; }
[aria-expanded="true"] .mt-lines i:first-child { top: 4px; transform: rotate(45deg); }
[aria-expanded="true"] .mt-lines i:last-child { top: 4px; transform: rotate(-45deg); }
.nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--latte); border-top: 1px solid rgba(74, 52, 40, .15); box-shadow: 0 20px 30px -20px rgba(74, 52, 40, .4); visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .25s, transform .25s var(--ease), visibility 0s .25s; }
.nav.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .25s, transform .25s var(--ease); }
.nav ul { list-style: none; margin: 0; padding: 10px var(--gutter) 26px; }
.nav a { display: block; text-decoration: none; padding: .75rem 0; font-family: var(--display); font-size: 1.6rem; color: var(--cacao); border-bottom: 1px solid rgba(74, 52, 40, .1); }
.nav-wa a { font-family: var(--text); font-size: 1rem; font-weight: 700; border: 0; margin-top: 12px; color: var(--caramello-testo); }
@media (min-width: 980px) {
  .menu-toggle { display: none; }
  .nav { position: static; visibility: visible; opacity: 1; transform: none; background: none; border: 0; box-shadow: none; }
  .nav ul { display: flex; align-items: center; gap: 1.7rem; padding: 0; }
  .nav a { font-family: var(--text); font-size: .95rem; font-weight: 600; padding: .3rem 0; border: 0; position: relative; }
  .nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 6px; background: no-repeat center/100% 100% url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 6'%3E%3Cpath d='M0 3c5-4 10-4 15 0s10 4 15 0 7-3 10-2' fill='none' stroke='%23d9a46a' stroke-width='1.6'/%3E%3C/svg%3E"); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
  .nav a:hover::after, .nav a:focus-visible::after { transform: scaleX(1); }
  .nav-wa a { margin: 0; background: var(--cacao); color: var(--latte); padding: .6rem 1.1rem; border-radius: 999px; }
  .nav-wa a::after { display: none; }
  .nav-wa a:hover { background: var(--cacao-chiaro); }
}

/* bottoni */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 50px; padding: .75rem 1.5rem; border-radius: 999px; font: 700 1rem var(--text); text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: background .25s, color .25s, transform .25s var(--ease), border-color .25s; }
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 20px; height: 20px; fill: currentColor; }
.btn-caramel { background: var(--caramello); color: var(--cacao-scuro); }
.btn-caramel:hover { background: #e6b77f; }
.btn-ghost { border-color: rgba(246, 239, 230, .6); color: var(--latte); }
.btn-ghost:hover { border-color: var(--caramello); color: var(--caramello); }
.btn-cacao { background: var(--cacao); color: var(--latte); width: 100%; }
.btn-cacao:hover { background: var(--cacao-chiaro); }

/* ONDA: firma del sito */
.wave { position: relative; height: var(--wave-h); overflow: hidden; }
.wave svg { position: absolute; left: 0; bottom: -1px; width: 200%; height: 100%; display: block; }
.w-front { animation: onda 26s linear infinite; }
.w-back { animation: onda 40s linear infinite; animation-delay: -13s; opacity: .55; height: 115% !important; }
@keyframes onda { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.wave-hero { background: var(--latte); }
.wave-hero .w-front { fill: var(--cacao); }
.wave-hero .w-back { fill: var(--caramello); }
.wave-down { background: var(--cacao); transform: scaleY(-1); }
.wave-down .w-front { fill: var(--latte); }
.wave-down .w-back { fill: var(--caramello); }
.wave-top { background: var(--latte); }
.wave-top .w-front { fill: var(--panna); }
.wave-top .w-back { fill: var(--caramello); opacity: .35; }
.wave-to-cacao .w-front { fill: var(--cacao); }
.wave-to-cacao .w-back { fill: var(--caramello); opacity: .5; }
.wave.is-paused svg { animation-play-state: paused; }

/* hero */
.hero-top { background: var(--latte); padding: clamp(18px, 4vw, 40px) 0 0; }
.eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--caramello-testo); margin-bottom: .2rem; }
.h-latte { display: block; font-size: clamp(5.6rem, 26vw, 17rem); line-height: .8; letter-spacing: -.045em; color: var(--cacao); margin-left: -.04em; }
.hero-bottom { background: var(--cacao); color: var(--latte); padding: 0 0 clamp(36px, 5vw, 64px); }
.hero-bottom-inner { display: grid; gap: 32px; }
.h-cioccolato { position: relative; font-family: var(--display); font-size: clamp(3.6rem, 15vw, 9.5rem); line-height: .85; letter-spacing: -.035em; margin: .08em 0 .35em; color: var(--latte); }
.h-cioccolato em { color: var(--caramello); font-style: italic; }
@media (min-width: 900px) { .h-cioccolato { margin-top: .02em; } .h-cioccolato em { display: block; font-size: .5em; line-height: .9; margin: 0 0 .02em .06em; } }
.lead { font-size: clamp(1.08rem, 2vw, 1.25rem); max-width: 40ch; color: rgba(246, 239, 230, .88); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6rem; }
.hero-status { display: flex; align-items: center; gap: .6rem; margin-top: 1.4rem; font-size: .95rem; color: rgba(246, 239, 230, .85); }
.hero-status .dot { width: 9px; height: 9px; border-radius: 50%; background: #b9ab9f; flex: none; }
.hero-status.is-open .dot { background: #9be0a3; box-shadow: 0 0 0 4px rgba(155, 224, 163, .18); }
.hero-status.is-closed .dot { background: var(--caramello); box-shadow: 0 0 0 4px rgba(217, 164, 106, .2); }
.hero-photo { margin: 0; position: relative; }
.hero-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 38% 50%; border-radius: 999px; }
.hero-photo figcaption { position: absolute; right: 12%; bottom: 6%; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; background: rgba(51, 35, 27, .75); padding: .2rem .55rem; border-radius: 99px; }
@media (max-width: 899px) {
  .hero-photo { width: 78%; margin: 6px auto 0; }
}
@media (min-width: 900px) {
  .hero-bottom-inner { grid-template-columns: 1.25fr .75fr; gap: 56px; align-items: start; }
  .hero-photo { margin-top: calc(-1 * clamp(160px, 17vw, 250px)); z-index: 2; }
  .hero-photo img { aspect-ratio: 4 / 5.6; }
  .hero-top-inner { position: relative; }
}

/* sezioni */
.sec { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.sec-head { display: grid; gap: 4px; margin-bottom: 2.4rem; }
.sec-head p { max-width: 44ch; color: var(--grigio); font-size: 1.1rem; }
@media (min-width: 900px) { .sec-head { grid-template-columns: 1.1fr 1fr; align-items: end; gap: 56px; } .sec-head p { margin-bottom: 1.4rem; } }

/* tabs */
.tablist { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 4px; margin: 0 0 22px; background: var(--panna); border-radius: 999px; width: max-content; max-width: 100%; }
.tablist::-webkit-scrollbar { display: none; }
.tablist button { flex: none; border: 0; background: transparent; font: 600 .98rem var(--text); color: var(--cacao); padding: .65rem 1.15rem; border-radius: 999px; cursor: pointer; min-height: 44px; transition: background .25s, color .25s; }
.tablist button:hover { background: rgba(74, 52, 40, .08); }
.tablist button[aria-selected="true"] { background: var(--cacao); color: var(--latte); }
@media (max-width: 559px) { .tablist { display: grid; grid-template-columns: 1fr 1fr; width: 100%; border-radius: 24px; } .tablist button { border-radius: 20px; } }
.tabpanel { display: grid; gap: 24px; align-items: center; animation: fadeIn .45s var(--ease); }
.tabpanel[hidden] { display: none; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.tabpanel img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 28px 28px 28px 140px; }
.tp-num { font-family: var(--display); font-size: 1.1rem; color: var(--caramello-testo); margin: 0 0 .3rem; }
.tp-text h3 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin-bottom: .5rem; }
.tp-text p { max-width: 42ch; }
.link-arrow { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; color: var(--caramello-testo); text-decoration: none; border-bottom: 1.5px solid currentColor; padding-bottom: 2px; }
.link-arrow::after { content: "→"; transition: transform .25s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }
@media (min-width: 900px) {
  .tabpanel { grid-template-columns: 1.25fr 1fr; gap: 64px; }
}

/* prenota */
.prenota { background: var(--panna); padding-top: 0; }
.prenota .wave-top { margin-bottom: clamp(40px, 6vw, 80px); }
.prenota-grid { display: grid; gap: 48px; }
.steps { list-style: none; margin: 1.6rem 0 0; padding: 0; display: grid; gap: 26px; }
.steps li { display: grid; grid-template-columns: 58px 1fr; gap: 18px; align-items: start; }
.steps li:nth-child(2) { margin-left: clamp(0px, 4vw, 48px); }
.steps li:nth-child(3) { margin-left: clamp(0px, 8vw, 96px); }
.s-n { width: 58px; height: 58px; border-radius: 50%; background: var(--cacao); color: var(--latte); display: grid; place-items: center; font-family: var(--display); font-size: 1.7rem; box-shadow: inset 0 -5px 0 rgba(0, 0, 0, .18); }
.steps h3 { font-size: 1.55rem; margin: .4rem 0 .2rem; }
.steps p { margin: 0; color: var(--grigio); }
.steps a { color: var(--cacao); font-weight: 700; }
.form { background: var(--latte); border-radius: 28px; padding: 28px 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px 14px; box-shadow: 0 30px 50px -36px rgba(74, 52, 40, .55); }
.form-title { grid-column: 1 / -1; font-family: var(--display); font-size: 2rem; line-height: 1.1; margin: 0; color: var(--cacao); }
.form-sub { grid-column: 1 / -1; margin: -6px 0 4px; color: var(--grigio); font-size: .95rem; }
.f-row { grid-column: 1 / -1; display: grid; gap: .35rem; }
.f-half { grid-column: span 2; }
@media (min-width: 520px) { .f-half { grid-column: span 1; } }
.form label { font-weight: 700; font-size: .9rem; color: var(--cacao); }
.opt { font-weight: 500; color: var(--grigio); }
.form input, .form select, .form textarea { width: 100%; font: 500 1rem var(--text); color: var(--inchiostro); background: #fffdf9; border: 1.5px solid #d7c6b2; border-radius: 14px; padding: .7rem .85rem; min-height: 50px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--cacao); box-shadow: 0 0 0 4px rgba(217, 164, 106, .35); }
.form [aria-invalid="true"] { border-color: #a23a1f; background: #fff4f0; }
.f-err { color: #a23a1f; font-size: .86rem; margin: 0; }
.form .btn { grid-column: 1 / -1; margin-top: 4px; }
.f-done { grid-column: 1 / -1; margin: 0; font-size: .92rem; color: var(--cacao); }
.f-done a { font-weight: 700; }
@media (min-width: 960px) {
  .prenota-grid { grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
  .form { padding: 38px 36px; margin-top: 12px; }
}

/* orari: la tavoletta */
.orari-grid { display: grid; gap: 36px; }
.badge { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; font-size: .95rem; padding: .4rem .95rem; border-radius: 999px; background: var(--panna); color: var(--cacao); }
.badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.badge.is-open { background: #dcecd9; color: #23592b; }
.badge.is-closed { background: #f2ddd0; color: #8a3517; }
.badge-note { color: var(--grigio); }
.tavoletta { background: var(--cacao); padding: 10px; border-radius: 16px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; box-shadow: 0 24px 40px -28px rgba(51, 35, 27, .8); }
.quadretto { position: relative; background: var(--cacao-chiaro); color: var(--latte); border-radius: 8px; padding: 16px 14px 14px; min-height: 104px; box-shadow: inset 0 3px 0 rgba(255, 255, 255, .1), inset 0 -6px 0 rgba(0, 0, 0, .22); display: flex; flex-direction: column; justify-content: space-between; transition: transform .3s var(--ease); }
.quadretto:hover { transform: translateY(-3px); }
.q-day { font-family: var(--display); font-size: 1.55rem; line-height: 1; }
.q-hours { font-size: .92rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.quadretto.is-closed { background: #efe4d6; color: #6f5a4d; box-shadow: inset 0 3px 0 rgba(255, 255, 255, .6), inset 0 -6px 0 rgba(74, 52, 40, .12); }
.quadretto.is-today { outline: 3px solid var(--caramello); outline-offset: -3px; }
.quadretto.is-today .q-day::after { content: "oggi"; font-family: var(--text); font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin-left: .5rem; vertical-align: middle; color: var(--caramello); }
.quadretto.is-closed.is-today .q-day::after { color: var(--caramello-testo); }
.quadretto.logo { background: var(--cacao); box-shadow: none; display: grid; place-items: center; font-family: var(--display); font-size: 2.6rem; color: var(--caramello); }
@media (min-width: 640px) { .tavoletta { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 960px) { .orari-grid { grid-template-columns: .8fr 1.4fr; gap: 72px; align-items: center; } }

/* chi siamo */
.noi { background: var(--latte); padding-top: 0; }
.noi-grid { display: grid; gap: 32px; }
.noi-photo { margin: 0; }
.noi-photo img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 160px 28px 28px 28px; }
.noi-text p { max-width: 48ch; }
@media (min-width: 900px) { .noi-grid { grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; } .noi-text { padding-top: 40px; } }

/* faq */
.faq { background: var(--panna); }
.faq-grid { display: grid; gap: 28px; }
.acc-item { border-bottom: 1px solid rgba(74, 52, 40, .2); }
.acc-item:first-child { border-top: 1px solid rgba(74, 52, 40, .2); }
.acc-item h3 { font-family: var(--text); font-size: 1.08rem; font-weight: 700; letter-spacing: 0; }
.acc-item button { width: 100%; text-align: left; background: none; border: 0; padding: 1.15rem 2.6rem 1.15rem 0; font: inherit; color: var(--cacao); cursor: pointer; position: relative; }
.acc-item button::after { content: ""; position: absolute; right: 4px; top: 50%; width: 12px; height: 12px; border-right: 2px solid var(--caramello-testo); border-bottom: 2px solid var(--caramello-testo); transform: translateY(-70%) rotate(45deg); transition: transform .3s var(--ease); }
.acc-item button[aria-expanded="true"]::after { transform: translateY(-30%) rotate(-135deg); }
.acc-panel { padding: 0 0 1.2rem; color: var(--grigio); max-width: 58ch; }
.acc-panel p { margin: 0; }
.acc-panel a { color: var(--cacao); font-weight: 700; }
@media (min-width: 900px) { .faq-grid { grid-template-columns: .8fr 1.2fr; gap: 80px; } }

/* dove */
.dove { background: var(--cacao); color: var(--latte); padding-bottom: clamp(64px, 8vw, 110px); }
.dove .wave-top { background: var(--panna); margin-bottom: clamp(40px, 6vw, 80px); }
.dove-grid { display: grid; gap: 36px; }
.contatti { margin: 1.4rem 0 1.8rem; display: grid; gap: 0; }
.contatti div { display: flex; justify-content: space-between; gap: 16px; padding: .8rem 0; border-bottom: 1px solid rgba(246, 239, 230, .18); }
.contatti dt { color: rgba(246, 239, 230, .7); }
.contatti dd { margin: 0; font-weight: 700; }
.contatti a { color: var(--caramello); text-decoration: none; }
.contatti a:hover { text-decoration: underline; }
.dove-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.map { border-radius: 28px; overflow: hidden; position: relative; background: var(--cacao-chiaro); min-height: 340px; }
.map::before { content: "Mappa · Viale Sempione 4/A, Arese"; position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--display); font-size: 1.3rem; color: var(--panna); }
.map iframe { position: relative; display: block; width: 100%; height: 380px; border: 0; }
@media (min-width: 900px) { .dove-grid { grid-template-columns: .9fr 1.2fr; gap: 64px; align-items: center; } .map iframe { height: 440px; } }

/* footer */
.footer { background: var(--cacao-scuro); color: rgba(246, 239, 230, .78); padding: 44px 0 30px; font-size: .95rem; }
.footer a { color: var(--caramello); }
.f-brand { font-family: var(--display); font-size: 2.2rem; color: var(--latte); margin-bottom: .4rem; }
.credits { font-size: .8rem; opacity: .7; margin-top: 1.4rem; }

/* barra azioni */
.action-bar { position: fixed; z-index: 60; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(3, 1fr); background: var(--cacao-scuro); border-radius: 999px; padding: 5px; box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .5); }
.action-bar a { display: flex; align-items: center; justify-content: center; gap: .4rem; min-height: 50px; border-radius: 999px; color: var(--latte); text-decoration: none; font-size: .86rem; font-weight: 700; }
.action-bar svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.action-bar a:first-child svg { fill: currentColor; stroke: none; }
.action-bar .ab-wa { background: var(--caramello); color: var(--cacao-scuro); }
.action-bar .ab-wa svg { fill: currentColor; stroke: none; }
@media (max-width: 979px) { .footer { padding-bottom: 110px; } }
@media (min-width: 980px) { .action-bar { display: none; } }

/* reveal */
.js .rv { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js .rv.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .rv { opacity: 1; transform: none; }
}
