/* ==========================================================
   JuneSpot – advertorial landing page
   Tema: modificare le variabili qui sotto per cambiare
   colori, font, raggi e spaziature in tutto il sito.
   ========================================================== */
:root {
  --brand: #5b3f9e;
  --brand-dark: #43307a;
  --brand-soft: #f1ecfa;
  --accent: #1f9d8a;
  --accent-soft: #e5f5f2;
  --cta: #f0642a;
  --cta-dark: #d4521c;
  --ink: #1f2330;
  --muted: #5c6272;
  --line: #e6e2ef;
  --bg: #ffffff;
  --bg-alt: #faf8fd;
  --warn-bg: #fff8e6;
  --warn-line: #f2dca0;

  --font-head: Georgia, "Times New Roman", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius: 16px;
  --radius-sm: 10px;
  --radius-pill: 999px;
  --shadow: 0 10px 30px rgba(67, 48, 122, 0.10);
  --container: 1080px;
  --reading: 760px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-dark); }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.25; color: var(--ink); margin: 0 0 .6em; }
p { margin: 0 0 1.1em; }

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

/* ---------- Barra Advertorial ---------- */
.ad-bar {
  background: #1f2330;
  color: #fff;
  text-align: center;
  font-size: 13px;
  letter-spacing: .04em;
  padding: 8px 12px;
}
.ad-bar strong {
  display: inline-block;
  background: #fff;
  color: #1f2330;
  padding: 2px 10px;
  margin-right: 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 800;
}

/* ---------- Header ---------- */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 24px;
}
.logo svg { width: 34px; height: 34px; }
.logo span em { font-style: normal; color: var(--brand); }
.btn-home {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border: 2px solid var(--brand);
  border-radius: var(--radius-pill);
  color: var(--brand);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: background .2s, color .2s;
}
.btn-home:hover { background: var(--brand); color: #fff; }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(180deg, var(--brand-soft) 0%, #fff 100%); padding: 44px 0 20px; }
.kicker {
  display: inline-block;
  background: var(--accent-soft);
  color: #0f6b5d;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 18px;
}
.hero h1 { font-size: clamp(28px, 4.6vw, 44px); font-weight: 900; margin-bottom: .45em; }
.hero .subtitle { font-size: clamp(18px, 2.2vw, 22px); color: var(--muted); max-width: 860px; }
.meta { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; color: var(--muted); margin: 18px 0 26px; }
.meta span::before { content: "•"; margin-right: 8px; color: var(--brand); }
.meta span:first-child::before { content: none; margin: 0; }
.hero-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.hero-img img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; }
.caption { font-size: 13px; color: var(--muted); margin-top: 8px; }

/* ---------- Avvisi ---------- */
.notice {
  background: var(--warn-bg);
  border: 1px solid var(--warn-line);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 15px;
  line-height: 1.55;
  margin: 28px 0;
}
.notice strong { color: #7a5600; }

/* ---------- Articolo ---------- */
.article { padding: 28px 0 10px; }
.lead { font-size: 21px; line-height: 1.65; color: #2b3040; }
.lead:first-letter { font-family: var(--font-head); font-size: 3.1em; float: left; line-height: .9; padding: 6px 10px 0 0; color: var(--brand); font-weight: 900; }

.toc {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin: 30px 0;
}
.toc h2 { font-size: 20px; margin-bottom: .6em; }
.toc ol { margin: 0; padding-left: 22px; }
.toc li { margin: 6px 0; }

sup.ref { font-size: .7em; line-height: 0; }
sup.ref a { text-decoration: none; font-weight: 700; padding: 0 1px; }

.block {
  padding: 46px 0;
  border-top: 1px solid var(--line);
}
.block-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.num {
  flex: 0 0 auto;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 20px;
}
.block h2 { font-size: clamp(24px, 3.2vw, 32px); margin: 0; }
.figure { margin: 0 0 24px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #eee; }
.figure img { width: 100%; max-height: 460px; object-fit: cover; }
.figure.portrait img { max-height: 560px; object-position: center 30%; }
.figure figcaption { background: #fff; font-size: 13px; color: var(--muted); padding: 10px 14px; }
.figure-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 24px; }
.figure-pair .figure { margin: 0; }
.figure-pair img { height: 100%; max-height: 420px; }
.sources {
  font-size: 14px;
  color: var(--muted);
  background: var(--bg-alt);
  border-left: 4px solid var(--brand);
  padding: 10px 14px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-top: 6px;
}
.sources a { font-weight: 700; margin-right: 6px; }

.tip {
  background: var(--accent-soft);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 16px;
  margin: 18px 0;
}

/* ---------- Connettore ---------- */
.connector {
  background: var(--brand-soft);
  padding: 56px 0;
  margin-top: 20px;
}
.connector .inner { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: center; }
.connector .figure { margin: 0; }
.connector h2 { font-size: clamp(24px, 3vw, 31px); }

/* ---------- Prodotto ---------- */
.product { padding: 60px 0; }
.product-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: start;
  border: 2px solid var(--brand);
  border-radius: 24px;
  padding: 34px;
  background: #fff;
  box-shadow: var(--shadow);
}
.product-card .pimg { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; position: sticky; top: 90px; }
@media (max-width: 820px) { .product-card .pimg { position: static; } }
.product-card .pimg img { width: 100%; }
.badge-spons {
  display: inline-block;
  font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  background: var(--brand-soft); color: var(--brand-dark);
  padding: 5px 12px; border-radius: var(--radius-pill); margin-bottom: 12px;
}
.product h2 { font-size: clamp(22px, 2.8vw, 29px); }
.features { list-style: none; padding: 0; margin: 0 0 22px; }
.features li { position: relative; padding: 7px 0 7px 32px; font-size: 16.5px; line-height: 1.55; }
.features li::before {
  content: "✓";
  position: absolute; left: 0; top: 8px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent); color: #fff;
  font-size: 13px; font-weight: 800; display: grid; place-items: center;
}
.btn-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  background: var(--cta);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: 19px;
  padding: 18px 28px;
  border-radius: var(--radius-pill);
  box-shadow: 0 10px 22px rgba(240, 100, 42, .35);
  transition: transform .15s, background .2s, box-shadow .2s;
}
.btn-cta:hover { background: var(--cta-dark); color: #fff; transform: translateY(-2px); }
.btn-note { font-size: 13px; color: var(--muted); text-align: center; margin-top: 10px; }

/* ---------- Fonti ---------- */
.references { padding: 40px 0; border-top: 1px solid var(--line); }
.references h2 { font-size: 24px; }
.references ol { padding-left: 22px; font-size: 15px; color: #3b4152; }
.references li { margin-bottom: 10px; line-height: 1.55; }
.references .note { font-size: 14px; color: var(--muted); }

.disclaimer-box {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 26px;
  font-size: 15px;
  line-height: 1.6;
  margin: 10px 0 40px;
}
.disclaimer-box h3 { font-size: 18px; font-family: var(--font-body); font-weight: 800; }

/* ---------- Footer ---------- */
.site-footer { background: #1f2330; color: #c9cddb; padding: 50px 0 30px; font-size: 14.5px; line-height: 1.65; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; }
.site-footer h3 { color: #fff; font-family: var(--font-body); font-size: 15px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 12px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin: 6px 0; }
.footer-company dl { margin: 0; }
.footer-company dt { float: left; clear: left; width: 150px; color: #98a0b5; }
.footer-company dd { margin: 0 0 6px 150px; }
.footer-disc { border-top: 1px solid #373d52; margin-top: 30px; padding-top: 22px; font-size: 13px; color: #aab0c3; }
.footer-disc p { margin-bottom: .9em; }
.footer-disc strong { color: #fff; }
.credits { margin-top: 14px; font-size: 12.5px; }
.credits summary { cursor: pointer; color: #fff; }
.credits ul { padding-left: 18px; }
.copy { margin-top: 20px; text-align: center; font-size: 13px; color: #8a91a8; }

/* ---------- Pagine legali ---------- */
.legal { padding: 44px 0 70px; }
.legal h1 { font-size: clamp(28px, 4vw, 38px); }
.legal h2 { font-size: 22px; margin-top: 1.8em; }
.legal ul { padding-left: 22px; }
.legal .updated { color: var(--muted); font-size: 14px; }
.legal table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 16px; }
.legal th, .legal td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal th { width: 34%; color: var(--muted); font-weight: 600; }

/* ---------- Animazioni ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--cta); z-index: 100; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Mobile ---------- */
@media (max-width: 820px) {
  body { font-size: 17px; }
  .connector .inner, .product-card, .footer-grid { grid-template-columns: 1fr; }
  .product-card { padding: 22px; }
  .figure-pair { grid-template-columns: 1fr; }
  .hero-img img { aspect-ratio: 4 / 3; }
  .lead { font-size: 19px; }
  .footer-company dt { float: none; width: auto; }
  .footer-company dd { margin-left: 0; }
}
@media (max-width: 480px) {
  .logo { font-size: 21px; }
  .btn-home { padding: 8px 16px; font-size: 14px; }
  .ad-bar { font-size: 12px; }
}
