/* =====================================================================
   EMA ACQUE MINERALI — FOGLIO DI STILE
   Palette, spaziature e tipografia in un unico posto (variabili :root).
   ===================================================================== */

:root {
  --ink: #0b2338;
  --ink-soft: #3d5768;
  --muted: #6b8395;
  --line: #dce8f1;
  --bg: #f5f9fc;
  --surface: #ffffff;
  --tint: #eaf4fb;
  --accent: #0a84c8;
  --accent-dark: #075e8f;
  --deep: #0b3d5c;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(11, 35, 56, .06), 0 10px 30px rgba(11, 35, 56, .07);
  --shadow-lg: 0 18px 45px rgba(11, 61, 92, .16);
  --wrap: 1080px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.18; margin: 0 0 .5em; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
a { color: var(--accent-dark); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 99;
  background: #fff; color: var(--ink); padding: 10px 16px; border-radius: 0 0 10px 0;
}
.skip:focus { left: 0; }

/* --- pulsanti ------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .7rem 1.15rem; border-radius: 999px;
  font-weight: 600; font-size: .95rem; text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 8px 20px rgba(10, 132, 200, .28); }
.btn--primary:hover { background: #0975b3; }
.btn--ghost { color: var(--ink); border-color: var(--line); background: #fff; }
.btn--light { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .45); }
.btn--light:hover { background: rgba(255, 255, 255, .22); }
.btn--lg { padding: .9rem 1.5rem; font-size: 1rem; }

/* --- testata ------------------------------------------------------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.brand__mark {
  display: grid; place-items: center; width: 38px; height: 38px;
  border-radius: 12px; background: linear-gradient(145deg, var(--accent), var(--deep));
  color: #fff; flex: none;
}
.brand__text { display: flex; flex-direction: column; line-height: 1.2; }
.brand__text strong { font-size: 1rem; letter-spacing: -.01em; white-space: nowrap; }
.brand__text small { font-size: .74rem; color: var(--muted); letter-spacing: .02em; text-transform: uppercase; white-space: nowrap; }
@media (max-width: 430px) {
  .brand__text small { display: none; }
  .brand__text strong { font-size: .92rem; }
  .brand__mark { width: 34px; height: 34px; border-radius: 10px; }
  .topbar__nav .btn { padding: .6rem .9rem; font-size: .88rem; }
}
.topbar__nav { display: flex; align-items: center; gap: 8px; }
.topbar__nav .btn--ghost { display: none; }

/* --- hero ---------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(1200px 480px at 15% -10%, #1487c9 0%, transparent 60%),
              linear-gradient(160deg, var(--deep) 0%, #062a41 100%);
  color: #fff;
  padding: 56px 0 64px;
}
.hero__glow {
  position: absolute; inset: auto -20% -60% 40%; height: 420px;
  background: radial-gradient(circle at 50% 50%, rgba(89, 197, 245, .38), transparent 65%);
  pointer-events: none;
}
.hero__inner { position: relative; max-width: 760px; }
.pill {
  display: inline-block; margin: 0 0 18px; padding: .35rem .8rem;
  border-radius: 999px; font-size: .8rem; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; color: #d8f0ff;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22);
}
.hero h1 { font-size: clamp(1.9rem, 6vw, 3.1rem); max-width: 22ch; }
.hero__text { font-size: clamp(1rem, 2.6vw, 1.1rem); color: #cfe6f4; max-width: 56ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 30px; }
.hero__facts {
  display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 0; padding: 0;
  list-style: none; font-size: .92rem; color: #b9d8ea;
}
.hero__facts li { display: flex; align-items: center; gap: 6px; }
.hero__facts b { color: #fff; font-size: 1.05rem; }

/* --- sezioni ------------------------------------------------------- */
.section { padding: 56px 0; }
.section--tint { background: var(--tint); }
.section__title {
  font-size: clamp(1.4rem, 4vw, 1.9rem);
  margin-bottom: 24px;
}
.section__title::after {
  content: ""; display: block; width: 46px; height: 3px; margin-top: 12px;
  border-radius: 3px; background: var(--accent);
}
.note { margin-top: 20px; font-size: .88rem; color: var(--muted); }

/* --- card "cosa offriamo" ------------------------------------------ */
.cards { display: grid; gap: 16px; grid-template-columns: 1fr; }
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow);
}
.card__icon {
  display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 14px;
  border-radius: 13px; background: var(--tint); font-size: 1.35rem;
}
.card h3 { font-size: 1.08rem; }
.card p { margin: 0; color: var(--ink-soft); font-size: .95rem; }

/* --- promozioni ---------------------------------------------------- */
.promo { display: grid; gap: 16px; grid-template-columns: 1fr; }
.promo__card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease;
}
.promo__card::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 4px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(90deg, var(--accent), #4cc2f2);
}
.promo__card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.promo__brand { margin: 0; font-size: .82rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--accent-dark); }
.promo__qty { margin: 6px 0 2px; font-size: 1.5rem; font-weight: 700; letter-spacing: -.02em; }
.promo__fmt { margin: 0 0 16px; font-size: .9rem; color: var(--muted); }
.promo__specs { display: flex; gap: 24px; margin: 0 0 18px; padding: 14px 0; border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line); }
.promo__specs div { margin: 0; }
.promo__specs dt { font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.promo__specs dd { margin: 2px 0 0; font-weight: 600; font-size: .95rem; }
.promo__price {
  display: flex; align-items: center; gap: 10px; margin: auto 0 0;
  font-size: 1.6rem; font-weight: 700; letter-spacing: -.02em;
}
.badge {
  font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: #0a6b4f; background: #dcf6ec; padding: .25rem .5rem; border-radius: 6px;
}

/* --- listini ------------------------------------------------------- */
.listini { display: grid; gap: 20px; grid-template-columns: 1fr; }
.listino { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.listino__head { padding: 20px 20px 12px; }
.listino__head h3 { font-size: 1.05rem; margin-bottom: 4px; }
.listino__head p { margin: 0; font-size: .88rem; color: var(--muted); }
.tbl { width: 100%; border-collapse: collapse; font-size: .95rem; display: block; }
.tbl tbody, .tbl thead { display: block; }
.tbl thead { display: none; }
.tbl tr {
  display: grid; grid-template-columns: 1fr auto; align-items: baseline;
  gap: 2px 12px; padding: 12px 20px; border-top: 1px solid var(--line);
}
.tbl td { display: block; padding: 0; border: 0; }
.tbl td[data-label="Marca"] { grid-column: 1; grid-row: 1; font-size: 1rem; }
.tbl td[data-label="Tipo"] { grid-column: 1; grid-row: 2; font-size: .82rem; color: var(--muted); }
.tbl td.col-price { grid-column: 2; grid-row: 1; text-align: right; font-size: 1rem; }
.col-price { font-weight: 700; color: var(--accent-dark); }

/* --- quartieri ----------------------------------------------------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.chips li {
  padding: .5rem .95rem; border-radius: 999px; font-size: .92rem; font-weight: 500;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink-soft);
  box-shadow: 0 1px 2px rgba(11, 35, 56, .04);
}

/* --- contatti ------------------------------------------------------ */
.contact { display: grid; gap: 14px; grid-template-columns: 1fr; }
.contact__item {
  display: flex; flex-direction: column; gap: 2px;
  padding: 20px; text-decoration: none; color: inherit;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  transition: transform .16s ease, border-color .16s ease;
}
.contact__item:hover { transform: translateY(-2px); border-color: #b9dcf1; }
.contact__item--static:hover { transform: none; border-color: var(--line); }
.contact__label { font-size: .76rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--accent-dark); }
.contact__value { font-size: 1.2rem; font-weight: 700; letter-spacing: -.01em; }
.contact__value--sm { font-size: .95rem; font-weight: 600; }
.contact__hint { font-size: .82rem; color: var(--muted); }

/* --- footer -------------------------------------------------------- */
.footer { background: var(--deep); color: #c6ddec; padding: 28px 0; font-size: .9rem; }
.footer p { margin: 0 0 4px; }
.footer strong { color: #fff; }
.footer__small { font-size: .82rem; color: #8fb3c8; }

/* --- tablet -------------------------------------------------------- */
@media (min-width: 640px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .promo { grid-template-columns: repeat(2, 1fr); }
  .contact { grid-template-columns: repeat(2, 1fr); }
}

/* --- desktop ------------------------------------------------------- */
@media (min-width: 900px) {
  .section { padding: 76px 0; }
  .hero { padding: 84px 0 92px; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .promo { grid-template-columns: repeat(3, 1fr); }
  .listini { grid-template-columns: repeat(2, 1fr); }
  .listino--wide { grid-column: 1 / -1; }
  .contact { grid-template-columns: repeat(4, 1fr); }
  .topbar__nav .btn--ghost { display: inline-flex; }
  .tbl { display: table; }
  .tbl tbody { display: table-row-group; }
  .tbl thead { display: table-header-group; }
  .tbl thead th {
    text-align: left; padding: 10px 20px; font-size: .75rem; letter-spacing: .07em;
    text-transform: uppercase; color: var(--muted); background: #f8fbfd; border-top: 1px solid var(--line);
  }
  .tbl thead th.col-price, .tbl td.col-price { text-align: right; }
  .tbl tr { display: table-row; padding: 0; }
  .tbl td { display: table-cell; padding: 11px 20px; vertical-align: middle; border-top: 1px solid var(--line); }
  .tbl td[data-label] { display: table-cell; font-size: .95rem; color: var(--ink); padding: 11px 20px; }
  .tbl td.col-price { text-align: right; font-size: .95rem; }
  .tbl td::before { content: none; }
  .tbl tbody tr:hover { background: #f8fbfd; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
