/* Grande Risparmio — single stylesheet, no framework. */
:root {
  --brand: #0e7c66;
  --brand-ink: #075e4d;
  --brand-soft: #e7f4f0;
  --accent: #f5a524;
  --accent-ink: #7a4b00;
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --bg: #ffffff;
  --surface: #f6f8f7;
  --border: #e3e8ec;
  --good: #15803d;
  --bad: #b91c1c;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgb(15 23 42 / .05), 0 6px 20px rgb(15 23 42 / .06);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --w: 1180px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body { margin: 0; font: 17px/1.65 var(--font); color: var(--ink); background: var(--bg); text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--brand-ink); }
h1, h2, h3, h4 { line-height: 1.22; letter-spacing: -.015em; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.7rem); letter-spacing: -.025em; }
h2 { font-size: clamp(1.4rem, 1.2rem + .9vw, 1.8rem); }
h3 { font-size: 1.25rem; }
button, input, select, textarea { font: inherit; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 99; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--w); margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 800px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.lead { font-size: 1.15rem; color: var(--ink-2); margin: 0 0 1rem; }
.section { padding-top: 28px; padding-bottom: 12px; }
.section-title { font-size: 1.35rem; margin-bottom: 18px; }
.empty { color: var(--muted); padding: 32px 0; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; border-radius: 999px; border: 0; background: var(--brand); color: #fff; font-weight: 650; text-decoration: none; cursor: pointer; transition: background .15s, transform .15s; }
.btn:hover { background: var(--brand-ink); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--surface); color: var(--ink); }
.btn-amazon { background: var(--accent); color: #1f1300; }
.btn-amazon:hover { background: #e8951a; color: #1f1300; }
.linklike { background: none; border: 0; padding: 0; color: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--border); }
/* The blur lives on a pseudo-element: backdrop-filter on the header itself would make it the containing block of the
   position:fixed mobile menu panel and collapse the panel to the header's height. */
.site-header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgb(255 255 255 / .92); backdrop-filter: saturate(1.6) blur(10px); }
.header-inner { display: flex; align-items: center; gap: 20px; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: none; }
.brand-name { font-size: 1.25rem; letter-spacing: -.02em; }
.brand-name b { color: var(--brand); font-weight: 750; }
.main-nav { flex: 1; }
.main-nav > ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.main-nav a { display: block; padding: 8px 12px; border-radius: 999px; color: var(--ink-2); text-decoration: none; font-weight: 560; font-size: .96rem; }
.main-nav > ul > li > a:hover { background: var(--surface); color: var(--ink); }
.has-sub { position: relative; }
.sub { position: absolute; top: 100%; left: 0; min-width: 230px; list-style: none; margin: 0; padding: 8px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .15s; }
.has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { border-radius: 8px; }
.sub a:hover { background: var(--brand-soft); color: var(--brand-ink); }
.header-search { display: flex; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 2px 4px 2px 14px; }
.header-search input { border: 0; background: transparent; width: 170px; outline: none; padding: 6px 0; font-size: .95rem; }
.header-search button { border: 0; background: none; color: var(--muted); padding: 6px 8px; cursor: pointer; }
.mobile-menu { display: none; margin-left: auto; }
.mobile-menu summary { list-style: none; cursor: pointer; width: 44px; height: 44px; display: grid; place-content: center; gap: 5px; border-radius: 10px; }
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-menu summary span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: .2s; }
.mobile-menu[open] summary span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu[open] summary span:nth-child(2) { opacity: 0; }
.mobile-menu[open] summary span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-panel { position: fixed; inset: 66px 0 0 0; background: #fff; overflow-y: auto; padding: 16px 16px 40px; border-top: 1px solid var(--border); }
.mobile-panel input { width: 100%; padding: 12px 16px; border: 1px solid var(--border); border-radius: 12px; margin-bottom: 16px; }
.m-group { padding: 10px 0; border-bottom: 1px solid var(--border); }
.m-group a { display: block; padding: 7px 0; color: var(--ink-2); text-decoration: none; }
.m-group .m-top { font-weight: 700; color: var(--ink); font-size: 1.05rem; }

/* Hero + home */
.hero { background: radial-gradient(1200px 400px at 80% -10%, #d8efe8 0%, transparent 60%), var(--surface); border-bottom: 1px solid var(--border); }
.hero-inner { padding: 56px 16px 44px; text-align: center; }
.hero h1 { max-width: 820px; margin: 0 auto 12px; }
.hero .lead { max-width: 660px; margin: 0 auto 22px; }
.hero-search { display: flex; gap: 8px; max-width: 600px; margin: 0 auto 20px; background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: 6px; box-shadow: var(--shadow); }
.hero-search input { flex: 1; min-width: 0; border: 0; outline: none; padding: 8px 14px; background: transparent; }
.page-head .hero-search { margin: 16px 0 8px; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; padding: 0; margin: 0; }
.chips-left { justify-content: flex-start; margin-top: 14px; }
.chips a { display: inline-block; padding: 6px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--border); color: var(--ink-2); text-decoration: none; font-size: .93rem; font-weight: 560; }
.chips a:hover { border-color: var(--brand); color: var(--brand); }
.trust { display: grid; grid-template-columns: repeat(3, 1fr) auto; gap: 18px; align-items: center; padding-top: 22px; padding-bottom: 6px; }
.trust div { display: flex; flex-direction: column; font-size: .93rem; color: var(--muted); border-left: 3px solid var(--brand); padding-left: 12px; }
.trust b { color: var(--ink); font-size: 1rem; }
.trust-link { font-weight: 650; text-decoration: none; white-space: nowrap; }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.cat-tile { display: flex; flex-direction: column; gap: 4px; padding: 18px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); color: var(--ink); text-decoration: none; transition: .15s; }
.cat-tile span { color: var(--muted); font-size: .92rem; }
.cat-tile:hover { border-color: var(--brand); background: var(--brand-soft); color: var(--ink); }

/* Cards */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card-img { aspect-ratio: 16 / 10; background: var(--surface); overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-ph { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, var(--brand-soft), #fff); }
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-cat { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--brand); text-decoration: none; }
.card-title { font-size: 1.12rem; margin: 0; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a:hover { color: var(--brand); }
.card-text { color: var(--ink-2); font-size: .95rem; margin: 0; }
.card-meta { color: var(--muted); font-size: .82rem; margin: auto 0 0; padding-top: 6px; }

/* Breadcrumbs + page head */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 18px 0 0; margin: 0; font-size: .87rem; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin-right: 6px; color: var(--border); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--brand); }
.page-head { padding: 18px 0 26px; }
.pager { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 30px 0; color: var(--muted); }
.cat-desc { border-top: 1px solid var(--border); margin-top: 24px; padding-top: 24px; max-width: 800px; }

/* Article */
.article-layout { display: grid; grid-template-columns: minmax(0, 760px) 280px; gap: 56px; justify-content: center; padding-top: 10px; }
.article-head { padding: 12px 0 8px; }
.article-head h1 { margin: 6px 0 12px; }
.byline { display: flex; gap: 12px; align-items: center; margin: 14px 0 12px; font-size: .93rem; }
.byline img { border-radius: 50%; }
.byline div { display: flex; flex-direction: column; }
.byline a { font-weight: 700; color: var(--ink); text-decoration: none; }
.disclosure { font-size: .84rem; color: var(--muted); background: var(--surface); border-radius: var(--radius-sm); padding: 10px 14px; margin: 8px 0 0; }
.article-hero { margin: 22px 0 8px; border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.article-hero img { width: 100%; max-height: 520px; object-fit: cover; }
.article-side { position: relative; }
.toc { font-size: .93rem; }
.toc ol { margin: 0; padding-left: 1.2em; }
.toc li { margin: 6px 0; }
.toc a { color: var(--ink-2); text-decoration: none; }
.toc a:hover, .toc a.on { color: var(--brand); font-weight: 600; }
.toc-desktop { position: sticky; top: 92px; max-height: calc(100vh - 120px); overflow-y: auto; border-left: 2px solid var(--border); padding: 4px 0 4px 18px; margin-top: 140px; }
.toc-title { font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: .78rem; color: var(--muted); margin: 0 0 8px; }
.toc-mobile { display: none; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 16px; margin: 18px 0; background: var(--surface); }
.toc-mobile summary { font-weight: 700; cursor: pointer; }
.author-box { display: flex; gap: 16px; align-items: flex-start; border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin: 40px 0 10px; background: var(--surface); text-decoration: none; color: var(--ink); }
.author-box img { border-radius: 50%; flex: none; }
.author-box p { margin: 0 0 4px; }
.author-name { font-weight: 750; font-size: 1.05rem; }
.author-name a { color: var(--ink); text-decoration: none; }
.author-head { display: flex; gap: 22px; align-items: center; padding: 22px 0; }
.author-head img { border-radius: 22px; }
.author-list { display: grid; gap: 12px; }
.narrow-prose { max-width: 760px; }

/* Prose (article body) */
.prose { font-size: 1.06rem; color: var(--ink-2); overflow-wrap: break-word; }
.prose > * + * { margin-top: 1.05em; }
.prose p { margin-bottom: 0; }
.prose > p:first-child { margin-top: 0; }
.prose h2 { margin: 2em 0 .6em; padding-top: .2em; color: var(--ink); }
.prose h3 { margin: 1.6em 0 .5em; color: var(--ink); }
.prose h4 { margin: 1.3em 0 .4em; color: var(--ink); font-size: 1.08rem; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0; }
.prose li { margin: .35em 0; }
.prose li::marker { color: var(--brand); }
.prose strong { color: var(--ink); }
.prose a { font-weight: 560; }
.prose blockquote { margin: 1.4em 0; padding: 6px 0 6px 18px; border-left: 4px solid var(--brand); color: var(--ink); font-style: italic; }
.prose hr { border: 0; border-top: 1px solid var(--border); margin: 2em 0; }
.prose figure, .fig { margin: 1.5em auto; text-align: center; }
.prose figure img, .fig img { margin: 0 auto; border-radius: var(--radius-sm); }
.prose figcaption { font-size: .85rem; color: var(--muted); margin-top: 6px; }
.prose .align-left { float: left; margin: .3em 1.2em .8em 0; max-width: 45%; }
.prose .align-right { float: right; margin: .3em 0 .8em 1.2em; max-width: 45%; }
.prose::after { content: ""; display: table; clear: both; }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-sm); margin: 1.4em 0; }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table-wrap th, .table-wrap td { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.table-wrap tr:first-child td, .table-wrap th { background: var(--surface); font-weight: 650; color: var(--ink); }
.table-wrap tr:last-child td { border-bottom: 0; }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-sm); overflow: hidden; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Content components */
.proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 1.4em 0; }
.proscons > div { border-radius: var(--radius-sm); padding: 14px 18px; border: 1px solid var(--border); }
.proscons .pros { background: #f1faf4; border-color: #cde9d6; }
.proscons .cons { background: #fdf3f3; border-color: #f2d2d2; }
.pc-title { font-weight: 750; margin: 0 0 6px !important; color: var(--ink); }
.proscons ul { list-style: none; padding: 0; margin: 0; }
.proscons li { position: relative; padding-left: 26px; margin: 5px 0; font-size: .97rem; }
.proscons .pros li::before { content: "✓"; position: absolute; left: 0; color: var(--good); font-weight: 800; }
.proscons .cons li::before { content: "✕"; position: absolute; left: 1px; color: var(--bad); font-weight: 800; }
.proscons-sm { margin: 1em 0; }
.cta-row { text-align: center; margin: 1.2em 0 1.8em; }
.product { position: relative; border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; margin: 1.8em 0; background: #fff; box-shadow: var(--shadow); }
.product-badge { position: absolute; top: -12px; left: 18px; background: var(--brand); color: #fff; font-size: .78rem; font-weight: 750; text-transform: uppercase; letter-spacing: .05em; padding: 4px 12px; border-radius: 999px; }
.product-grid { display: grid; grid-template-columns: 200px 1fr; gap: 22px; align-items: start; }
.product-img img { max-height: 220px; width: auto; margin: 0 auto; }
.product-name { margin: 0 0 6px !important; }
.product-for { color: var(--brand-ink); font-weight: 600; font-size: .93rem; }
.callout { border-radius: var(--radius-sm); padding: 14px 18px; border-left: 4px solid var(--brand); background: var(--brand-soft); color: var(--ink); }
.callout-warning { border-color: var(--accent); background: #fff7e8; }
.callout-info { border-color: #3b82f6; background: #eff6ff; }
.callout p { margin: 0; }
.faq { margin: 2em 0; }
.faq details { border: 1px solid var(--border); border-radius: var(--radius-sm); margin: 10px 0; background: #fff; }
.faq summary { cursor: pointer; padding: 14px 44px 14px 18px; font-weight: 650; color: var(--ink); list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 1.3rem; color: var(--brand); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-a { padding: 0 18px 16px; }
.faq-a > * + * { margin-top: .7em; }
.related-link { display: block; padding: 14px 18px; border: 1px solid var(--border); border-left: 4px solid var(--brand); border-radius: var(--radius-sm); text-decoration: none; background: var(--surface); }
.related-link span { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.legacy-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; align-items: start; }

/* Forms */
.form { display: grid; gap: 16px; margin-top: 18px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; }
.field input, .field textarea, .field select { width: 100%; padding: 11px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: #fff; }
.field textarea { min-height: 160px; resize: vertical; }
.field .err { color: var(--bad); }
.form-error { padding: 12px 14px; border-radius: var(--radius-sm); background: #fdecec; color: var(--bad); font-weight: 600; }
.hp { position: absolute; left: -5000px; }

/* Footer */
.site-footer { margin-top: 56px; background: var(--ink); color: #cbd5e1; }
.site-footer a { color: #e2e8f0; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding-top: 44px; padding-bottom: 28px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; columns: 1; }
.footer-grid li { margin: 6px 0; }
.footer-grid .social { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.footer-grid .social li { margin: 0; }
.footer-grid .social a { border: 1px solid #334155; color: #e2e8f0; }
.footer-grid .social a:hover { border-color: var(--accent); color: #fff; }
.f-title { font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: .06em; font-size: .8rem; margin: 0 0 10px; }
.brand-footer .brand-name { color: #fff; }
.brand-footer .brand-name b { color: #5fd3b8; }
.site-footer .muted { color: #94a3b8; max-width: 340px; }
.footer-legal { border-top: 1px solid #1e293b; padding-top: 18px; padding-bottom: 26px; font-size: .84rem; color: #94a3b8; }
.footer-legal p { margin: 4px 0; }
.site-footer .linklike { color: #e2e8f0; text-decoration: none; }

/* Consent banner */
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; max-width: 560px; margin: 0 auto; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 10px 40px rgb(15 23 42 / .18); padding: 16px 18px; font-size: .93rem; }
.consent p { margin: 0 0 12px; }
.consent-actions { display: flex; gap: 10px; justify-content: flex-end; }
.consent .btn { padding: 8px 18px; }
.error-page { padding: 60px 16px; text-align: center; }

/* Responsive */
@media (max-width: 1080px) {
  .main-nav, .header-search { display: none; }
  .mobile-menu { display: block; }
  .article-layout { grid-template-columns: minmax(0, 760px); gap: 0; }
  .article-side { display: none; }
  .toc-mobile { display: block; }
}
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .trust { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  body { font-size: 16.5px; }
  .grid-3 { grid-template-columns: 1fr; }
  .hero-inner { padding: 36px 16px 30px; }
  .hero h1 { font-size: clamp(1.35rem, 6vw, 1.6rem); line-height: 1.2; }
  .hero .lead { font-size: 1.02rem; }
  .proscons, .product-grid { grid-template-columns: 1fr; }
  .product-img img { max-height: 180px; }
  .prose .align-left, .prose .align-right { float: none; max-width: 100%; margin: 1em auto; }
  .footer-grid { grid-template-columns: 1fr; }
  .author-head { flex-direction: column; align-items: flex-start; }
  .hero-search .btn { padding: 10px 16px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media print { .site-header, .site-footer, .consent, .article-side, .toc-mobile { display: none !important; } }

/* Rows of cards that scroll horizontally */
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.section-head .section-title { margin: 0; }
.more-link { font-weight: 650; font-size: .92rem; white-space: nowrap; }
.rail { position: relative; }
.rail-track { display: flex; gap: 18px; list-style: none; margin: 0; padding: 4px 2px 16px; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: 2px; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.rail-track:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: var(--radius-sm); }
.rail-item { flex: 0 0 min(285px, 76%); scroll-snap-align: start; display: flex; }
.rail-item .card { width: 100%; }
.rail-btn { position: absolute; top: 38%; z-index: 2; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--border); background: #fff; color: var(--ink); box-shadow: var(--shadow); display: none; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.rail-btn:hover { color: var(--brand); border-color: var(--brand); }
.rail-btn[disabled] { opacity: .35; cursor: default; }
.rail-prev { left: -14px; }
.rail-next { right: -14px; }
@media (hover: hover) and (pointer: fine) { .rail-btn:not([hidden]) { display: inline-flex; } }
@media (prefers-reduced-motion: reduce) { .rail-track { scroll-behavior: auto; } }

/* Social icons */
.footer-grid .social a { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; padding: 0; border-radius: 50%; }
.footer-grid .social svg { display: block; }
