/* ===================================================
   EnergiaInArmonia.it — Bonus Senza Deposito Casinò
   Modern / tech editorial layout — refresh Settembre 2026
   =================================================== */

:root {
  --bg: #070b14;
  --bg-alt: #0c1424;
  --surface: #101a2e;
  --surface-2: #131f38;
  --line: #22304d;
  --line-soft: #1a263f;
  --ink: #eef2fb;
  --ink-soft: #b7c2d9;
  --muted: #7c8aa8;
  --cyan: #35e6c8;
  --violet: #8a6bff;
  --gold: #ffc857;
  --green: #35e69f;
  --red: #ff6b6b;
  --grad: linear-gradient(120deg, var(--cyan), var(--violet));
  --grad-soft: linear-gradient(135deg, rgba(53,230,200,0.14), rgba(138,107,255,0.14));
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 10px 34px rgba(0,0,0,0.35);
  --max-w: 1120px;
  --font-head: 'Space Grotesk', 'Segoe UI', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background:
    radial-gradient(1100px 520px at 12% -8%, rgba(53,230,200,0.10), transparent 60%),
    radial-gradient(900px 460px at 100% 0%, rgba(138,107,255,0.12), transparent 55%),
    var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.22; color: var(--ink); letter-spacing: -0.01em; }
h1 { font-size: clamp(1.8rem, 4.2vw, 2.7rem); margin-bottom: 18px; }
h2 { font-size: clamp(1.4rem, 3vw, 1.95rem); margin: 46px 0 16px; padding-top: 8px; display: flex; align-items: center; gap: 10px; }
h2::before { content: ''; width: 8px; height: 8px; border-radius: 2px; background: var(--grad); flex-shrink: 0; box-shadow: 0 0 12px rgba(53,230,200,0.7); }
h3 { font-size: clamp(1.05rem, 2.2vw, 1.28rem); margin: 26px 0 10px; color: var(--cyan); }
p { margin-bottom: 14px; color: var(--ink-soft); }
strong { color: var(--ink); font-weight: 700; }

/* ===== TOP UTILITY BAR ===== */
.topbar { background: rgba(7,11,20,0.88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line-soft); position: sticky; top: 0; z-index: 40; }
.topbar-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; height: 58px; gap: 16px; overflow-x: auto; }
.topbar-logo { font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; color: #fff; white-space: nowrap; display: flex; align-items: center; gap: 8px; }
.topbar-logo::before { content: '◆'; color: var(--cyan); font-size: 0.85rem; filter: drop-shadow(0 0 6px rgba(53,230,200,0.8)); }
.topbar-logo span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.topbar-nav { display: flex; gap: 24px; }
.topbar-nav a { font-size: 0.83rem; font-weight: 600; color: var(--muted); white-space: nowrap; transition: color .15s; }
.topbar-nav a:hover, .topbar-nav a.active { color: var(--cyan); }
.topbar-cta { background: var(--grad); color: #04120f; font-size: 0.78rem; font-weight: 700; padding: 9px 18px; border-radius: 50px; white-space: nowrap; box-shadow: 0 4px 18px rgba(53,230,200,0.25); }
.topbar-cta:hover { filter: brightness(1.08); }

/* ===== MASTHEAD ===== */
.masthead { background: var(--bg-alt); border-bottom: 1px solid var(--line-soft); padding: 30px 20px 24px; }
.masthead-inner { max-width: var(--max-w); margin: 0 auto; }
.masthead-brand { display: flex; align-items: baseline; gap: 10px; font-family: var(--font-head); flex-wrap: wrap; }
.masthead-brand .site-name { font-size: 1.5rem; font-weight: 700; color: #fff; }
.masthead-brand .section-name { font-size: 1.5rem; font-weight: 700; color: var(--cyan); padding-left: 10px; border-left: 3px solid var(--violet); }
.masthead-tagline { font-size: 0.82rem; color: var(--muted); margin-top: 8px; max-width: 660px; }

/* ===== ARTICLE HEAD ===== */
.article-head { padding: 26px 0 0; }
.pill-nav { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0 0; border-bottom: 1px solid var(--line-soft); padding-bottom: 16px; }
.pill { font-size: 0.82rem; font-weight: 600; color: var(--ink-soft); padding: 8px 16px; border-radius: 50px; background: var(--surface); border: 1px solid var(--line); transition: all .15s; }
.pill:hover { border-color: var(--cyan); color: var(--cyan); }
.pill.active { background: var(--grad); color: #04120f; border-color: transparent; }

/* ===== HERO BANNER (legacy SVG variant, still available) ===== */
.hero-banner { margin-top: 22px; height: 230px; border-radius: var(--radius-lg); overflow: hidden; background: linear-gradient(135deg, #0b1e33, #12213f 55%, #17182f); position: relative; border: 1px solid var(--line); }
.hero-banner svg { width: 100%; height: 100%; display: block; }

/* ===== BENTO GRID ===== */
.bento-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 110px; gap: 12px; margin-top: 22px; }
.bento-tile {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line);
  background: var(--surface); display: flex; flex-direction: column; justify-content: flex-end;
  padding: 16px; transition: transform .2s, border-color .2s;
}
.bento-tile:hover { transform: translateY(-2px); border-color: var(--cyan); }
.bento-tile--img { background-size: cover; background-position: center; color: #fff; }
.bento-tile--img::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,11,20,0.05) 0%, rgba(7,11,20,0.88) 100%); }
.bento-tile--img > * { position: relative; z-index: 1; }
.bento-tile--stat { align-items: center; justify-content: center; text-align: center; gap: 2px; }
.bento-tile--stat .t-num { font-family: var(--font-head); font-size: 1.7rem; font-weight: 700; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bento-tile--stat .t-label { font-size: 0.7rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; text-align: center; }
.bento-tile-eyebrow { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--cyan); margin-bottom: 4px; }
.bento-tile-title { font-family: var(--font-head); font-size: 1.05rem; font-weight: 700; line-height: 1.2; }
.bento-tile-sub { font-size: 0.76rem; color: var(--ink-soft); margin-top: 4px; }
.bento-tile--wide { grid-column: span 2; }
.bento-tile--tall { grid-row: span 2; }
.bento-tile--hero { grid-column: span 2; grid-row: span 2; }
.bento-tile--cta { background: var(--grad); color: #04120f; justify-content: center; align-items: center; text-align: center; gap: 4px; }
.bento-tile--cta .bento-tile-title { color: #04120f; }
.bento-tile--cta .bento-tile-sub { color: rgba(4,18,15,0.75); }

.bento-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 18px 0; }
.bento-gallery .bento-tile { grid-row: span 1; height: 190px; padding: 14px; }
.bento-gallery .bento-tile--wide { grid-column: span 2; }

@media (max-width: 860px) {
  .bento-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 120px; }
  .bento-tile--hero { grid-column: span 2; grid-row: span 2; }
  .bento-gallery { grid-template-columns: repeat(2, 1fr); }
  .bento-gallery .bento-tile--wide { grid-column: span 2; }
}
@media (max-width: 480px) {
  .bento-grid { grid-template-columns: 1fr; }
  .bento-tile--hero, .bento-tile--wide { grid-column: span 1; }
  .bento-gallery { grid-template-columns: 1fr; }
  .bento-gallery .bento-tile--wide { grid-column: span 1; }
}

/* ===== BYLINE / AUTHOR BOX ===== */
.byline { display: flex; align-items: center; gap: 12px; padding: 18px 0; }
.byline-avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--grad); color: #04120f; display: flex; align-items: center; justify-content: center; font-weight: 700; font-family: var(--font-head); flex-shrink: 0; font-size: 1.05rem; }
.byline-name { display: block; font-weight: 700; font-size: 0.9rem; color: var(--ink); }
.byline-date { display: block; font-size: 0.76rem; color: var(--muted); }

.author-box { display: flex; gap: 16px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px 22px; margin: 22px 0; }
.author-box .byline-avatar { width: 52px; height: 52px; font-size: 1.25rem; }
.author-box h4 { font-family: var(--font-head); font-size: 0.98rem; color: var(--ink); margin-bottom: 4px; }
.author-box p { font-size: 0.85rem; margin-bottom: 6px; }
.author-box .author-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.author-box .author-tags span { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--cyan); background: rgba(53,230,200,0.1); border: 1px solid rgba(53,230,200,0.25); padding: 4px 10px; border-radius: 50px; }

/* ===== ARTICLE BODY ===== */
.article-body { padding-bottom: 56px; }
.lede { font-size: 1.08rem; color: var(--ink-soft); }

/* ===== TRUST STRIP ===== */
.trust-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 22px 0; }
.trust-strip .t-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 12px; text-align: center; }
.trust-strip .t-item .t-num { font-family: var(--font-head); font-size: 1.3rem; font-weight: 700; color: var(--cyan); }
.trust-strip .t-item .t-label { font-size: 0.7rem; color: var(--muted); margin-top: 2px; text-transform: uppercase; letter-spacing: 0.04em; }

/* ===== TOPLIST CARD WRAPPER ===== */
.toplist-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; margin: 18px 0; box-shadow: var(--shadow); }
.legal-note { font-size: 0.76rem; color: var(--muted); font-style: italic; border-top: 1px dashed var(--line); padding-top: 12px; margin-top: 6px; }

/* ===== BRAND SPOTLIGHT CARDS ===== */
.spotlight { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px 26px; margin: 18px 0; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.spotlight::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--grad); opacity: 0.7; }
.spotlight-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.spotlight-name { font-family: var(--font-head); font-size: 1.18rem; font-weight: 700; color: #fff; }
.stars { color: var(--gold); font-size: 0.95rem; letter-spacing: 1px; }
.spotlight-bonus { display: inline-block; margin: 12px 0 10px; font-weight: 700; color: var(--cyan); background: rgba(53,230,200,0.08); border: 1px solid rgba(53,230,200,0.25); padding: 7px 14px; border-radius: 8px; font-size: 0.9rem; }
.spotlight-meta { display: flex; gap: 16px; flex-wrap: wrap; font-size: 0.78rem; color: var(--muted); margin: 8px 0 4px; }
.spotlight-meta span strong { color: var(--ink-soft); }
.spotlight-pc { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 14px; }
.spotlight-pc h4 { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px; font-family: var(--font-body); }
.spotlight-pc .pro h4 { color: var(--green); }
.spotlight-pc .con h4 { color: var(--gold); }
.spotlight-pc li { font-size: 0.85rem; color: var(--ink-soft); padding: 3px 0; }
.spotlight-cta { display: inline-block; margin-top: 18px; background: var(--grad); color: #04120f; font-weight: 700; font-size: 0.85rem; padding: 12px 24px; border-radius: 8px; text-align: center; box-shadow: 0 6px 20px rgba(53,230,200,0.18); }
.spotlight-cta:hover { filter: brightness(1.06); }

/* ===== CHECK LIST ===== */
.check-list li { display: flex; gap: 10px; padding: 5px 0; font-size: 0.93rem; color: var(--ink-soft); }
.check-list li::before { content: '▸'; color: var(--cyan); font-weight: 700; flex-shrink: 0; }

/* ===== FAQ ===== */
.faq-list { margin-top: 14px; }
details.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; }
details.faq-item[open] { border-color: var(--cyan); box-shadow: 0 0 0 1px rgba(53,230,200,0.15); }
summary.faq-q { padding: 17px 20px; cursor: pointer; font-weight: 700; font-size: 0.94rem; color: var(--ink); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 14px; }
summary.faq-q::-webkit-details-marker { display: none; }
summary.faq-q::after { content: '+'; color: var(--cyan); font-size: 1.3rem; font-weight: 300; flex-shrink: 0; }
details.faq-item[open] summary.faq-q::after { content: '−'; }
.faq-a { padding: 0 20px 18px; font-size: 0.88rem; color: var(--ink-soft); border-top: 1px solid var(--line-soft); padding-top: 14px; }

/* ===== COMPARISON TABLE (stacked on mobile) ===== */
.compare-wrap { overflow-x: auto; margin: 18px 0; }
table.compare { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
table.compare th { background: var(--surface-2); color: var(--cyan); padding: 13px 16px; text-align: left; font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.06em; font-family: var(--font-head); }
table.compare td { padding: 13px 16px; border-top: 1px solid var(--line-soft); font-size: 0.88rem; color: var(--ink-soft); }
table.compare tr:nth-child(even) td { background: rgba(255,255,255,0.015); }

/* ===== CTA STRIP ===== */
.cta-strip { background: linear-gradient(135deg, #0d2b26, #142240); border: 1px solid var(--line); color: #fff; border-radius: var(--radius-lg); padding: 34px; text-align: center; margin: 32px 0; }
.cta-strip h3 { color: #fff; font-family: var(--font-head); margin-bottom: 8px; }
.cta-strip p { color: var(--ink-soft); margin-bottom: 18px; }
.cta-strip .spotlight-cta { margin-top: 0; }

/* ===== INFO BOX ===== */
.info-box { background: var(--grad-soft); border: 1px solid var(--line); border-left: 3px solid var(--violet); border-radius: 0 var(--radius) var(--radius) 0; padding: 16px 20px; margin: 16px 0; }
.info-box strong { display: block; color: var(--violet); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 6px; }

/* ===== TIMELINE / CHANGELOG ===== */
.changelog { border-left: 2px solid var(--line); margin: 18px 0 18px 6px; padding-left: 20px; }
.changelog li { position: relative; padding: 4px 0 16px; font-size: 0.86rem; color: var(--ink-soft); }
.changelog li::before { content: ''; position: absolute; left: -25px; top: 8px; width: 9px; height: 9px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 8px rgba(53,230,200,0.7); }
.changelog li strong { color: var(--ink); display: block; font-size: 0.8rem; }

/* ===== FOOTER ===== */
.site-footer { background: #04070d; color: #93a0bd; padding: 46px 20px 24px; margin-top: 44px; border-top: 1px solid var(--line-soft); }
.footer-grid { max-width: var(--max-w); margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 26px; border-bottom: 1px solid #1a2338; }
.footer-brand .site-name { font-family: var(--font-head); font-size: 1.1rem; font-weight: 700; color: #fff; }
.footer-brand p { font-size: 0.82rem; color: #6f7b98; margin-top: 10px; max-width: 280px; }
.footer-col h5 { font-size: 0.74rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: #6f7b98; margin-bottom: 12px; }
.footer-col li { margin-bottom: 7px; }
.footer-col li a { font-size: 0.84rem; color: #a8b3cc; }
.footer-col li a:hover { color: var(--cyan); }
.footer-bottom { max-width: var(--max-w); margin: 22px auto 0; font-size: 0.75rem; color: #576280; text-align: center; line-height: 1.7; }
.footer-bottom a { color: #a8b3cc; text-decoration: underline; }
.responsible-bar { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 14px; background: #0c1220; border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 12px 20px; margin-bottom: 14px; font-weight: 600; font-size: 0.82rem; }
.badge-18 { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; background: var(--red); color: #fff; font-size: 0.72rem; font-weight: 800; border-radius: 50%; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .topbar-nav { display: none; }
  .hero-banner { height: 150px; }
  .spotlight-pc { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 22px; }
  .footer-brand { grid-column: 1 / -1; }
  .trust-strip { grid-template-columns: repeat(2, 1fr); }
  .author-box { flex-direction: column; }
  table.compare, table.compare thead, table.compare tbody, table.compare th, table.compare td, table.compare tr { display: block; }
  table.compare thead { display: none; }
  table.compare tr { border-top: 1px solid var(--line-soft); padding: 10px 0; }
  table.compare tr:nth-child(even) { background: rgba(255,255,255,0.015); }
  table.compare td { border-top: none; padding: 4px 16px; display: flex; justify-content: space-between; gap: 10px; }
  table.compare td::before { content: attr(data-label); font-weight: 700; color: var(--ink); }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ===== UTIL ===== */
.mt-0{margin-top:0}.mb-0{margin-bottom:0}
