/* =========================================================
   Zefiro di Oksi - foglio di stile
   Mobile-first, palette pastello (rosa/beige), tipografia calda.
   Pensato per essere scansionato da smartphone tramite QR code.
   ========================================================= */

/* ---------- Reset leggero ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Nunito", "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;       /* >=16px, leggibile senza zoom */
  line-height: 1.7;
  color: #4a3a36;
  background-color: #fbf3ec;
  background-image:
    radial-gradient(rgba(180,140,120,0.06) 1px, transparent 1px),
    radial-gradient(rgba(180,140,120,0.05) 1px, transparent 1px);
  background-size: 22px 22px, 33px 33px;
  background-position: 0 0, 11px 11px;
  -webkit-font-smoothing: antialiased;
  text-align: left;       /* niente giustificazione su mobile */
}

img { max-width: 100%; height: auto; display: block; }

p { margin: 0 0 1em; overflow-wrap: break-word; word-wrap: break-word; }

/* ---------- Variabili di stile ---------- */
:root {
  --rosa:        #e8b4c4;
  --rosa-scuro:  #c98ea1;
  --beige:       #f6e8d8;
  --beige-chiaro:#fbf3ec;
  --crema:       #fff7ec;
  --verde:       #7a8c5b;
  --marrone:     #4a3a36;
  --marrone-chiaro:#7a6157;

  --serif: "Cormorant Garamond", "Playfair Display", Georgia, "Times New Roman", serif;
  --sans:  "Nunito", "Helvetica Neue", Arial, sans-serif;

  --raggio: 18px;
  --ombra:  0 4px 14px rgba(120, 80, 60, 0.10);
  --ombra-hover: 0 8px 22px rgba(120, 80, 60, 0.16);
}

/* ---------- Tipografia ---------- */
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  color: #3a2a26;
  letter-spacing: 0.2px;
  margin-top: 0;
  text-align: center;
}
h1 { font-size: 2.1rem;  line-height: 1.15; }
h2 { font-size: 1.6rem;  line-height: 1.2;  margin-bottom: .6em; }
h3 { font-size: 1.2rem;  line-height: 1.3; }

a {
  color: var(--rosa-scuro);
  text-decoration: underline;
  text-underline-offset: 3px;
}
a:hover, a:focus { color: #a86b80; }

/* ---------- Layout principale ---------- */
.container {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 22px;
}

/* ---------- Header / Navigazione ---------- */
.site-header {
  background-color: #fff7ec;
  border-bottom: 1px solid #ecd9c2;
  position: sticky;
  top: 0;
  z-index: 20;
  box-shadow: 0 2px 8px rgba(120,80,60,0.04);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  max-width: 960px;
  margin: 0 auto;
  gap: 12px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #3a2a26;
  min-width: 0;
}
.brand-logo {
  width: 44px;
  height: auto;
  flex-shrink: 0;
  display: block;
}
.brand-name {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.1;
}
.brand-tag {
  display: block;
  font-family: var(--sans);
  font-size: 0.7rem;
  color: var(--marrone-chiaro);
  letter-spacing: 0.5px;
}

/* Bottone menu: solo testo "Menu", niente icona hamburger */
.nav-toggle {
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  color: #3a2a26;
  background: var(--rosa);
  border: 2px solid #d99aac;
  border-radius: 999px;
  padding: 10px 20px;
  cursor: pointer;
  min-height: 44px;
  flex-shrink: 0;
  transition: background-color .15s ease, transform .08s ease;
}
.nav-toggle:hover { background-color: #e0a3b5; }
.nav-toggle:active { transform: translateY(1px); }
.nav-toggle:focus-visible {
  outline: 3px solid var(--rosa-scuro);
  outline-offset: 2px;
}

.nav {
  background: #fff7ec;
  border-top: 1px solid #ecd9c2;
}
.nav-list {
  list-style: none;
  margin: 0;
  padding: 8px 18px 16px;
  display: none;
  flex-direction: column;
  gap: 4px;
}
.nav-list.is-open { display: flex; }
.nav-list a {
  display: block;
  padding: 14px 12px;
  border-radius: 12px;
  font-size: 1.05rem;
  text-decoration: none;
  color: #3a2a26;
  min-height: 48px;
}
.nav-list a:hover,
.nav-list a:focus-visible,
.nav-list a[aria-current="page"] {
  background: #f6e8d8;
  color: #3a2a26;
}

/* ---------- Hero ---------- */
.hero {
  padding-top: 24px;
  padding-bottom: 20px;
  text-align: center;
}

.logo-hero {
  width: min(82%, 440px);
  height: auto;
  margin: 0 auto 4px;
  display: block;
}
.hero-tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--marrone-chiaro);
  margin: 8px 4px 18px;
  line-height: 1.4;
  text-wrap: balance;     /* distribuisce meglio le righe */
}
.hero p {
  text-align: left;
  margin-bottom: 1em;
}
.hero-cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
  margin-top: 16px;
}
.hero-cta .btn { width: 100%; }

/* ---------- Bottoni (grandi, tondi) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 14px 24px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .08s ease, background-color .15s ease, box-shadow .15s ease;
  text-align: center;
  line-height: 1.2;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 3px solid var(--rosa-scuro); outline-offset: 2px; }

.btn-primary {
  background-color: var(--rosa);
  color: #3a2a26;
  border-color: #d99aac;
  box-shadow: var(--ombra);
}
.btn-primary:hover { background-color: #e0a3b5; box-shadow: var(--ombra-hover); }

.btn-secondary {
  background-color: var(--crema);
  color: #3a2a26;
  border-color: #d6bfa6;
  box-shadow: var(--ombra);
}
.btn-secondary:hover { background-color: #f1e2c9; box-shadow: var(--ombra-hover); }

/* ---------- Sezioni ---------- */
.section {
  padding-top: 26px;
  padding-bottom: 26px;
}
.section + .section { padding-top: 4px; }

.section-title {
  margin-bottom: 22px;
  position: relative;
}
.section-title::after {
  content: "";
  display: block;
  width: 50px;
  height: 2px;
  background: var(--rosa);
  margin: 10px auto 0;
  border-radius: 2px;
  opacity: .7;
}

/* ---------- Testo lungo ---------- */
.prose p {
  font-size: 1.03rem;
  margin-bottom: 1.15em;
  line-height: 1.75;
  text-wrap: pretty;
}

/* ---------- Box informativo ---------- */
.info-box {
  background: var(--beige);
  border: 1px solid #ecd9c2;
  border-radius: var(--raggio);
  padding: 24px 22px;
  box-shadow: var(--ombra);
  position: relative;
  margin: 0;
}
.info-box::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px dashed rgba(201,142,161,0.35);
  border-radius: calc(var(--raggio) - 6px);
  pointer-events: none;
}
.info-box-deco {
  display: block;
  width: 36px;
  height: auto;
  margin: 0 auto 10px;
  opacity: .9;
}
.info-box p { margin: 0; font-size: 1.02rem; line-height: 1.7; }
.info-cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}
.info-cta .btn { width: 100%; }

/* ---------- Lista gusti ---------- */
.flavor-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: grid;
  gap: 12px;
}
.flavor-list:last-child { margin-bottom: 0; }

.flavor {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: #fff7ec;
  border: 1px solid #ecd9c2;
  border-radius: var(--raggio);
  padding: 16px 18px;
  box-shadow: var(--ombra);
  min-width: 0;          /* permette al testo di andare a capo */
}
.flavor-dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 2px;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.05);
}
.flavor-text {
  flex: 1 1 auto;
  min-width: 0;          /* fondamentale per il wrap */
}
.flavor-name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.15rem;
  color: #3a2a26;
  display: block;
  margin-bottom: 2px;
}
.flavor-desc {
  color: var(--marrone-chiaro);
  font-size: 0.98rem;
  line-height: 1.5;
}

.flavor-soon {
  background: #fbf3ec;
  border-style: dashed;
  opacity: .88;
}
.flavor-soon .flavor-name::after {
  content: " · in arrivo";
  font-family: var(--sans);
  font-weight: 400;
  font-style: italic;
  font-size: 0.8rem;
  color: var(--rosa-scuro);
}

.flavor-note {
  text-align: center;
  font-style: italic;
  color: var(--marrone-chiaro);
  margin: 22px 0 0;
  font-size: 1rem;
}

/* ---------- Galleria ---------- */
.gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.gallery-item {
  background: #fff7ec;
  border: 1px solid #ecd9c2;
  border-radius: var(--raggio);
  overflow: hidden;
  box-shadow: var(--ombra);
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform .15s ease, box-shadow .15s ease;
}
.gallery-item:hover { box-shadow: var(--ombra-hover); }
.gallery-item:active { transform: scale(0.99); }
.gallery-img-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, #fbf3ec 0%, #f6e8d8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.gallery-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gallery-caption {
  padding: 10px 14px 14px;
  font-size: 0.92rem;
  color: var(--marrone-chiaro);
  text-align: center;
  font-style: italic;
}

/* Placeholder discreto (visibile finché non ci sono le foto vere) */
.placeholder-tag {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(255,247,236,0.92);
  color: var(--marrone-chiaro);
  font-size: 0.7rem;
  font-style: italic;
  padding: 3px 8px;
  border-radius: 999px;
  letter-spacing: 0.3px;
  border: 1px solid #ecd9c2;
}

/* ---------- Contatti ---------- */
.contact-block {
  text-align: center;
  padding: 12px 6px 8px;
}
.contact-message {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--marrone-chiaro);
  margin: 14px auto 22px;
  max-width: 32ch;
  line-height: 1.4;
}
.btn-mail {
  background-color: var(--rosa);
  color: #3a2a26;
  border: 2px solid #d99aac;
  padding: 18px 32px;
  font-size: 1.15rem;
  border-radius: 999px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  box-shadow: var(--ombra);
  transition: background-color .15s ease, box-shadow .15s ease, transform .08s ease;
}
.btn-mail:hover { background-color: #e0a3b5; box-shadow: var(--ombra-hover); }
.btn-mail:active { transform: translateY(1px); }
.btn-mail:focus-visible { outline: 3px solid var(--rosa-scuro); outline-offset: 3px; }
.contact-email {
  margin-top: 24px;
  color: var(--marrone-chiaro);
  font-size: 0.95rem;
  word-break: break-all;
  line-height: 1.5;
}
.contact-email .placeholder-note {
  display: block;
  font-style: italic;
  font-size: 0.85rem;
  margin-top: 4px;
  opacity: .85;
}

/* ---------- Lista "consigli" ---------- */
.tips {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  display: grid;
  gap: 10px;
}
.tips li {
  background: #fff7ec;
  border: 1px solid #ecd9c2;
  border-radius: 14px;
  padding: 12px 16px 12px 44px;
  position: relative;
  font-size: 0.98rem;
  line-height: 1.5;
  color: var(--marrone);
  box-shadow: 0 2px 8px rgba(120,80,60,0.06);
}
.tips li::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23c98ea1'><path d='M12 2c-1 0-1.5 1-1 2 1 2 1 3-1 4-3 2-3 5-3 7 0 4 2 7 5 7s5-3 5-7c0-2 0-5-3-7-2-1-2-2-1-4 .5-1 0-2-1-2z'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: .8;
}

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 44px;
  padding: 22px 18px 32px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--marrone-chiaro);
  border-top: 1px solid #ecd9c2;
}
.site-footer .small {
  font-size: 0.78rem;
  opacity: .75;
  margin-top: 6px;
  line-height: 1.5;
}

/* ---------- Decoro floreale tra sezioni ---------- */
.divider-deco {
  display: block;
  width: 56px;
  margin: 18px auto;
  opacity: .55;
}

/* h1/logo: l'h1 vero resta agli screen reader ma non occupa spazio */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* =========================================================
   Desktop e tablet (>= 720px)
   ========================================================= */
@media (min-width: 720px) {
  body { font-size: 18px; }
  h1 { font-size: 2.8rem; }
  h2 { font-size: 2rem; }

  .nav-toggle { display: none; }
  .nav-list {
    display: flex !important;
    flex-direction: row;
    justify-content: center;
    gap: 6px;
    padding: 10px 18px 14px;
    flex-wrap: wrap;
  }
  .nav-list a {
    padding: 10px 16px;
    min-height: auto;
    font-size: 1rem;
  }

  .hero { padding: 40px 0 28px; }
  .hero-tagline { font-size: 1.35rem; }
  .hero p {
    text-align: center;
    max-width: 56ch;
    margin-left: auto;
    margin-right: auto;
  }
  .hero-cta {
    flex-direction: row;
    justify-content: center;
    align-items: center;
  }
  .hero-cta .btn { width: auto; }

  .info-cta {
    flex-direction: row;
    justify-content: center;
  }
  .info-cta .btn { width: auto; }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .section { padding: 36px 0; }
}

@media (min-width: 980px) {
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .container { max-width: 880px; }
}

/* ---------- Preferenze utente ---------- */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
