/* =========================================================
   PREZZLY — Foglio di stile principale
   Stile editoriale, minimale e professionale
   Base neutra chiara · accento lime usato con parsimonia
   ========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@500;600;700&family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&display=swap');

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Neutri */
  --ink:        #1A1C20;   /* testo principale (quasi nero) */
  --ink-soft:   #6E727A;   /* testo secondario */
  --line:       #EAE7E0;   /* bordi sottili */
  --bg:         #FAF9F6;   /* sfondo carta caldo */
  --bg-2:       #FFFFFF;   /* superfici chiare */
  --card:       #FFFFFF;

  /* Accento (lime del logo) — solo tocchi mirati */
  --accent:     #C6F24E;
  --accent-ink: #46520F;   /* lime scuro per testo leggibile */
  --accent-soft: rgba(198, 242, 78, .28);

  /* Sezione scura (contrasto editoriale) */
  --dark:       #16181C;

  /* Tipografia */
  --font-brand: 'Fredoka', 'Segoe UI', sans-serif;
  --font-head:  'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body:  'Inter', 'Segoe UI', sans-serif;

  /* Layout */
  --maxw: 1180px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(20, 20, 25, .07);
  --shadow-soft: 0 4px 16px rgba(20, 20, 25, .05);
  --shadow-hover: 0 18px 40px rgba(20, 20, 25, .12);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.18; font-weight: 600; color: var(--ink); letter-spacing: -.01em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .76rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--accent); }

.section { padding: 84px 0; }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: 14px; }
.section-head p { color: var(--ink-soft); font-size: 1.06rem; }

/* ---------- Bottoni ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-weight: 600; font-size: .94rem;
  padding: 13px 24px; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s, color .18s;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #000; transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 249, 246, .85);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; }

/* Logo wordmark */
.brand { display: flex; align-items: center; gap: 9px; font-family: var(--font-brand); font-weight: 600; font-size: 1.5rem; letter-spacing: -.01em; color: var(--ink); text-transform: lowercase; }
.brand img { display: block; }
.site-header .brand img { height: 30px; width: auto; }
.site-footer .brand img { height: 42px; width: 150px; object-fit: cover; object-position: center; border-radius: 8px; }
.brand .dot { position: relative; width: 14px; height: 14px; margin-top: -10px; }
.brand .dot::before, .brand .dot::after, .brand .dot span {
  content: ""; position: absolute; bottom: 0; width: 2.5px; height: 9px;
  background: var(--accent); border-radius: 3px;
}
.brand .dot::before { left: 0; transform: rotate(-22deg); }
.brand .dot span { left: 5.5px; }
.brand .dot::after { right: 0; transform: rotate(22deg); }
/* Sul footer scuro il marchio diventa chiaro */
.site-footer .brand { color: #fff; }

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-family: var(--font-body); font-weight: 500; font-size: .95rem; color: var(--ink-soft); transition: color .15s; }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 14px; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .25s; border-radius: 2px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 78px 0 38px; overflow: hidden; }
.hero .container { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 60px; align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 5vw, 3.7rem); font-weight: 500; line-height: 1.08; margin-bottom: 22px; }
.hero h1 .hl { background: linear-gradient(transparent 58%, var(--accent-soft) 58%); padding: 0 2px; }
.hero p { font-size: 1.14rem; color: var(--ink-soft); max-width: 510px; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-trust { display: flex; gap: 34px; margin-top: 40px; flex-wrap: wrap; }
.hero-trust .num { font-family: var(--font-head); font-weight: 600; font-size: 1.7rem; color: var(--ink); }
.hero-trust .lbl { font-size: .85rem; color: var(--ink-soft); }

.hero-visual { position: relative; }
.hero-card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 18px; border: 1px solid var(--line);
}
.hero-card .thumb { height: 230px; border-radius: 12px; background: #F1EFE9; display: flex; align-items: center; justify-content: center; }
.hero-card .thumb svg { width: 80px; height: 80px; color: #B7B4AB; }
.hero-card .thumb { overflow: hidden; }
.hero-card .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Foto reali nelle card */
.guide-card .cover { overflow: hidden; }
.guide-card .cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.prod-card .ph { overflow: hidden; padding: 0; }
.prod-card .ph img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 10px; }
.article .pick .ph { overflow: hidden; }
.article .pick .ph img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 12px; }
.hero-card .meta { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; }
.hero-card .tag { font-size: .72rem; font-weight: 700; color: var(--accent-ink); background: var(--accent-soft); padding: 4px 11px; border-radius: 999px; font-family: var(--font-body); letter-spacing: .02em; }
.hero-card h3 { font-size: 1.12rem; margin-top: 10px; font-weight: 600; }
.hero-float {
  position: absolute; bottom: -22px; left: -22px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-soft); padding: 12px 16px; display: flex; align-items: center; gap: 10px;
}
.hero-float .ico { width: 38px; height: 38px; border-radius: 10px; background: var(--ink); color: var(--accent); display: grid; place-items: center; }
.hero-float .ico svg { width: 20px; height: 20px; }
.hero-float strong { font-family: var(--font-body); font-weight: 600; font-size: .9rem; display: block; color: var(--ink); }
.hero-float small { color: var(--ink-soft); font-size: .78rem; }

/* ---------- Striscia fiducia ---------- */
.trust-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); }
.trust-strip .container { display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: 24px 22px; flex-wrap: wrap; }
.trust-strip a { font-family: var(--font-body); font-weight: 600; color: #BDB9B0; letter-spacing: .14em; font-size: .9rem; text-decoration: none; transition: color .2s; }
.trust-strip a:hover { color: var(--ink); }

/* ---------- Categorie ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.cat-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 20px; text-align: center; transition: transform .2s, box-shadow .2s, border-color .2s;
}
.cat-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); border-color: #DAD6CD; }
.cat-card .ic { width: 54px; height: 54px; margin: 0 auto 16px; border-radius: 14px; background: #F2F1EC; color: var(--ink); display: grid; place-items: center; }
.cat-card .ic svg { width: 26px; height: 26px; }
.cat-card h3 { font-size: 1.05rem; margin-bottom: 4px; font-weight: 600; }
.cat-card p { font-size: .82rem; color: var(--ink-soft); }

/* ---------- Card guide / articoli ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }

.guide-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s, border-color .2s;
}
.guide-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); border-color: #DAD6CD; }
.guide-card .cover { height: 196px; display: flex; align-items: center; justify-content: center; position: relative; }
.guide-card .cover svg { width: 60px; height: 60px; color: #4B4E55; opacity: .8; }
.cover.c1 { background: #EEF0E5; }
.cover.c2 { background: #ECECF1; }
.cover.c3 { background: #E6F0EA; }
.cover.c4 { background: #E8EEF2; }
.cover.c5 { background: #F3EAEC; }
.cover.c6 { background: #EFEDE8; }
.guide-card .body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.guide-card .tag { align-self: flex-start; font-size: .7rem; font-weight: 700; color: var(--accent-ink); background: var(--accent-soft); padding: 4px 11px; border-radius: 999px; font-family: var(--font-body); letter-spacing: .03em; margin-bottom: 14px; }
.guide-card h3 { font-size: 1.28rem; font-weight: 600; margin-bottom: 10px; }
.guide-card p { font-size: .94rem; color: var(--ink-soft); margin-bottom: 20px; flex: 1; }
.guide-card .read { font-family: var(--font-body); font-weight: 600; font-size: .9rem; color: var(--ink); display: inline-flex; align-items: center; gap: 6px; }
.guide-card .read svg { width: 16px; height: 16px; transition: transform .2s; }
.guide-card:hover .read svg { transform: translateX(4px); }
.guide-meta { display: flex; gap: 14px; font-size: .8rem; color: var(--ink-soft); margin-bottom: 14px; align-items: center; }

/* ---------- Vetrina prodotti (senza prezzi) ---------- */
.prod-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.prod-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 18px; transition: transform .2s, box-shadow .2s, border-color .2s;
}
.prod-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: #DAD6CD; }
.prod-card .ph { height: 150px; border-radius: 10px; background: #F2F1EC; display: grid; place-items: center; margin-bottom: 16px; }
.prod-card .ph svg { width: 50px; height: 50px; color: #9C9890; }
.prod-card .pill { font-size: .68rem; font-weight: 700; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .1em; font-family: var(--font-body); }
.prod-card h4 { font-size: 1.05rem; font-weight: 600; margin: 7px 0 6px; }
.prod-card p { font-size: .85rem; color: var(--ink-soft); margin-bottom: 14px; }
.prod-card .rating { display: flex; align-items: center; gap: 3px; margin-bottom: 16px; color: var(--ink); }
.prod-card .rating svg { width: 14px; height: 14px; }
.prod-card .rating span { color: var(--ink-soft); font-size: .8rem; margin-left: 6px; }

/* ---------- Striscia "come scegliamo" (blocco scuro) ---------- */
.how { background: var(--dark); color: #fff; border-radius: 24px; padding: 60px 48px; }
.how .eyebrow { color: #B7BAC2; }
.how .eyebrow::before { background: var(--accent); }
.how h2 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.3rem); }
.how .lead { color: #AEB2BD; max-width: 560px; margin: 14px 0 40px; font-size: 1.05rem; }
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.how-step .n { width: 42px; height: 42px; border-radius: 11px; background: var(--accent); color: var(--ink); display: grid; place-items: center; font-family: var(--font-head); font-weight: 600; margin-bottom: 16px; }
.how-step h3 { color: #fff; font-size: 1.15rem; font-weight: 600; margin-bottom: 8px; }
.how-step p { color: #9DA1AC; font-size: .92rem; }

/* ---------- Newsletter ---------- */
.news { background: var(--bg-2); border: 1px solid var(--line); border-radius: 24px; padding: 56px; text-align: center; }
.news h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: 12px; }
.news p { color: var(--ink-soft); max-width: 480px; margin: 0 auto 28px; }
.news form { display: flex; gap: 10px; max-width: 460px; margin: 0 auto; }
.news input { flex: 1; padding: 14px 18px; border-radius: 999px; border: 1.5px solid var(--line); font-family: var(--font-body); font-size: .95rem; background: var(--bg); color: var(--ink); }
.news input::placeholder { color: #A8A49B; }
.news input:focus { outline: none; border-color: var(--ink); }
.news small { display: block; margin-top: 16px; color: var(--ink-soft); font-size: .8rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: #9DA1AC; padding: 68px 0 30px; margin-top: 20px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 42px; border-bottom: 1px solid rgba(255,255,255,.09); }
.foot-brand .brand { margin-bottom: 16px; }
.foot-brand p { font-size: .9rem; color: #9DA1AC; max-width: 320px; }
.foot-col h4 { color: #fff; font-size: .8rem; font-family: var(--font-body); font-weight: 600; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 16px; }
.foot-col a { display: block; font-size: .9rem; color: #9DA1AC; padding: 6px 0; transition: color .15s; }
.foot-col a:hover { color: #fff; }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 26px; font-size: .82rem; color: #71757F; flex-wrap: wrap; gap: 12px; }
.foot-social { display: flex; gap: 12px; }
.foot-social a { width: 36px; height: 36px; border-radius: 10px; background: rgba(255,255,255,.07); display: grid; place-items: center; color: #C7CAD3; transition: background .2s, color .2s; }
.foot-social a:hover { background: var(--accent); color: var(--ink); }
.foot-social svg { width: 18px; height: 18px; }
.foot-disclaimer { font-size: .78rem; color: #71757F; margin-top: 20px; line-height: 1.7; }
.foot-disclaimer a { color: #9DA1AC; text-decoration: underline; }

/* ---------- Pagine interne ---------- */
.page-hero { padding: 70px 0 24px; text-align: center; }
.page-hero .eyebrow { justify-content: center; }
.page-hero h1 { font-size: clamp(2.1rem, 4vw, 3.1rem); font-weight: 500; margin-bottom: 16px; }
.page-hero p { color: var(--ink-soft); font-size: 1.1rem; max-width: 620px; margin: 0 auto; }
.breadcrumb { font-size: .85rem; color: var(--ink-soft); margin-bottom: 10px; }
.breadcrumb a:hover { color: var(--ink); text-decoration: underline; }

/* Articolo / guida */
.article { max-width: 740px; margin: 0 auto; }
.article .lead { font-size: 1.24rem; line-height: 1.6; color: #3C4047; margin-bottom: 32px; }
.article h2 { font-size: 1.7rem; font-weight: 600; margin: 42px 0 14px; }
.article h3 { font-size: 1.3rem; font-weight: 600; margin: 28px 0 10px; }
.article p { margin-bottom: 18px; color: #3C4047; font-size: 1.04rem; }
.article ul { margin: 0 0 18px 20px; color: #3C4047; }
.article li { margin-bottom: 9px; }
.article .note { background: #F2F1EC; border-left: 3px solid var(--accent); padding: 16px 22px; border-radius: 8px; margin: 26px 0; font-size: .98rem; color: var(--ink); }
.article .note a { color: var(--ink); text-decoration: underline; }
.article .pick {
  display: flex; gap: 22px; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px; margin: 22px 0; align-items: center;
}
.article .pick .ph { flex: 0 0 120px; height: 120px; border-radius: 12px; background: #F2F1EC; display: grid; place-items: center; }
.article .pick .ph svg { width: 46px; height: 46px; color: #9C9890; }
.article .pick h3 { margin: 0 0 6px; }
.article .pick .badge { font-size: .7rem; font-weight: 700; color: var(--accent-ink); background: var(--accent-soft); padding: 4px 11px; border-radius: 999px; font-family: var(--font-body); letter-spacing: .03em; display: inline-block; margin-bottom: 10px; }
.article .pick p { font-size: .94rem; margin-bottom: 14px; color: var(--ink-soft); }

/* Form contatti */
.form-card { max-width: 620px; margin: 0 auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 38px; box-shadow: var(--shadow-soft); }
.field { margin-bottom: 18px; }
.field label { display: block; font-family: var(--font-body); font-weight: 600; font-size: .9rem; margin-bottom: 7px; }
.field input, .field textarea { width: 100%; padding: 13px 16px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); font-family: var(--font-body); font-size: .95rem; background: var(--bg); color: var(--ink); }
.field input::placeholder, .field textarea::placeholder { color: #A8A49B; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); background: #fff; }
.field textarea { resize: vertical; min-height: 130px; }

/* Valori / chi siamo */
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.value-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.value-card .ic { width: 50px; height: 50px; border-radius: 12px; background: #F2F1EC; color: var(--ink); display: grid; place-items: center; margin-bottom: 18px; }
.value-card .ic svg { width: 25px; height: 25px; }
.value-card h3 { font-size: 1.18rem; font-weight: 600; margin-bottom: 8px; }
.value-card p { font-size: .92rem; color: var(--ink-soft); }

.tag-row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 24px; }
.tag-row .t { background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 8px 17px; font-size: .85rem; font-family: var(--font-body); font-weight: 500; color: var(--ink-soft); transition: border-color .2s, color .2s; cursor: default; }
.tag-row .t:hover { border-color: var(--ink); color: var(--ink); }
.tag-row .t { cursor: pointer; }
.tag-row .t.active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero .container { grid-template-columns: 1fr; gap: 44px; }
  .hero-visual { max-width: 440px; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .prod-grid { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .how { padding: 44px 28px; }
}
@media (max-width: 760px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute; top: 74px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 20px 22px; gap: 16px; box-shadow: var(--shadow);
  }
  .grid-3, .grid-2, .how-grid, .value-grid { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .news form { flex-direction: column; }
  .article .pick { flex-direction: column; text-align: center; }
  .article .pick .ph { flex-basis: auto; width: 100%; }
  .section { padding: 58px 0; }
}
