/* EcoCalcolo · Pagine legali · 30 ottobre 2026
   Foglio CSS locale, indipendente da analytics, CDN, font esterni e script.
   Palette ricavata dalla homepage EcoCalcolo (ottobre 2026). */
:root {
  --ec-green: #047857;
  --ec-green-dark: #065f46;
  --ec-green-bright: #10b981;
  --ec-mint: #ecfdf5;
  --ec-ink: #102e29;
  --ec-text: #334155;
  --ec-muted: #546778;
  --ec-line: #dce6e4;
  --ec-paper: #fff;
  --ec-bg: #f6f9f8;
  --ec-radius: 20px;
  --ec-shadow: 0 16px 40px rgba(17, 49, 42, .055);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; color: var(--ec-text); background: var(--ec-bg); font: 400 16px/1.72 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
a { color: var(--ec-green); text-underline-offset: .18em; }
a:hover { color: var(--ec-green-dark); }
a:focus-visible, summary:focus-visible { outline: 3px solid #34d399; outline-offset: 4px; border-radius: 4px; }
img, svg { max-width: 100%; }
.ec-wrap { width: min(1200px, calc(100% - 48px)); margin-inline: auto; }
.ec-site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--ec-line); backdrop-filter: blur(16px); }
.ec-header-inner { min-height: 76px; display: flex; gap: 26px; align-items: center; justify-content: space-between; }
.ec-logo { display: inline-flex; align-items: center; gap: 11px; color: var(--ec-ink); font-size: 21px; font-weight: 800; letter-spacing: -.035em; text-decoration: none; white-space: nowrap; }
.ec-logo:hover { color: var(--ec-green); }
.ec-logo-mark { width: 37px; height: 37px; flex-shrink: 0; border-radius: 11px; background: linear-gradient(145deg, #10b981, #059669); display: inline-grid; place-items: center; box-shadow: 0 4px 12px rgba(4,120,87,.13); }
.ec-logo-mark svg { width: 23px; height: 23px; fill: #fff; }
.ec-header-nav { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.ec-header-nav a { text-decoration: none; color: #415667; font-size: 14px; font-weight: 600; padding: 9px 12px; border-radius: 10px; transition: background .15s, color .15s; }
.ec-header-nav a:hover { background: var(--ec-mint); color: var(--ec-green-dark); }
.ec-header-nav a[aria-current="page"] { background: var(--ec-mint); color: var(--ec-green-dark); }
.ec-breadcrumb { display:flex; align-items:center; flex-wrap:wrap; list-style: none; margin: 22px 0 27px; padding: 0; gap: 10px; font-size: 13px; color: #718198; }
.ec-breadcrumb li:not(:last-child)::after { content: "/"; margin-left: 10px; color: #a6b4be; }
.ec-breadcrumb a { color: #607387; text-decoration: none; }
.ec-breadcrumb a:hover { text-decoration: underline; }
.ec-breadcrumb li:last-child { font-weight: 700; color: var(--ec-green-dark); }
.ec-hero { position: relative; overflow: hidden; background: linear-gradient(120deg, #103a35 0%, #075e4d 56%, #047857 100%); border-radius: 26px; padding: 43px 50px 46px; box-shadow: 0 24px 56px rgba(4, 92, 70, .14); color: #fff; }
.ec-hero::before { content: ""; position: absolute; width: 380px; height: 380px; border: 1px solid rgba(255,255,255,.16); border-radius: 50%; right: -130px; top: -220px; box-shadow: 0 0 0 74px rgba(255,255,255,.035), 0 0 0 146px rgba(255,255,255,.025); pointer-events: none; }
.ec-hero-content { position: relative; max-width: 780px; }
.ec-eyebrow { display:inline-flex; align-items: center; gap:8px; font-size: 11px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; border-radius: 99px; color: #d1fae5; background: rgba(255,255,255,.11); border: 1px solid rgba(255,255,255,.18); padding: 7px 12px; }
.ec-eyebrow::before { content:""; width: 7px; height: 7px; border-radius: 100%; background: #75f2c5; }
.ec-hero h1 { margin: 17px 0 12px; font-size: clamp(32px, 4.4vw, 48px); letter-spacing: -.045em; line-height: 1.17; font-weight: 800; }
.ec-hero p { max-width: 690px; margin: 0; color: #def6ec; font-size: 16px; line-height: 1.7; }
.ec-hero-meta { display:flex; flex-wrap:wrap; align-items: center; gap: 10px 18px; margin-top: 25px; font-size: 12.5px; color: #d2f1e5; }
.ec-hero-meta span { display: inline-flex; align-items: center; gap: 7px; }
.ec-hero-meta svg { width:15px; height:15px; fill:none; stroke:currentColor; stroke-width:1.8; }
.ec-layout { display:grid; grid-template-columns: 245px minmax(0, 1fr); gap: 25px; margin: 30px 0 74px; align-items: start; }
.ec-toc { position: sticky; top: 99px; padding: 21px 17px 22px; background: #fff; border: 1px solid var(--ec-line); border-radius: var(--ec-radius); box-shadow: var(--ec-shadow); }
.ec-toc h2 { margin: 0 12px 13px; font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: #718093; }
.ec-toc nav { display: grid; gap: 2px; }
.ec-toc a { display:block; padding: 8px 12px; border-radius: 9px; font-size: 13px; font-weight: 600; color: #506275; text-decoration: none; line-height: 1.4; }
.ec-toc a:hover, .ec-toc a:focus-visible { background: var(--ec-mint); color: var(--ec-green-dark); }
.ec-toc-sep { border-top:1px solid var(--ec-line); margin: 13px 11px; }
.ec-toc-note { margin: 0 11px; font-size: 12px; line-height: 1.55; color: #778698; }
.ec-document { min-width:0; display: grid; gap: 16px; }
.ec-lead-card, .ec-section { border-radius: var(--ec-radius); background: var(--ec-paper); border: 1px solid var(--ec-line); box-shadow: var(--ec-shadow); padding: 29px 34px; }
.ec-lead-card { background: linear-gradient(135deg, #fff 0%, #f1fdf8 100%); border-color: #c6eee0; }
.ec-lead-card h2 { margin: 0 0 9px; font-size: 18px; letter-spacing: -.02em; color: var(--ec-ink); }
.ec-lead-card p { margin: 0; }
.ec-section h2 { font-size: 22px; letter-spacing: -.025em; color: var(--ec-ink); line-height: 1.25; margin: 0 0 15px; }
.ec-section h3 { font-size: 16px; letter-spacing: -.013em; color: #15453a; margin: 21px 0 9px; }
.ec-section p { margin: 0 0 13px; }
.ec-section p:last-child { margin-bottom: 0; }
.ec-section ul { padding-left: 20px; margin: 10px 0 15px; }
.ec-section li { padding-left: 3px; margin-bottom: 7px; }
.ec-section strong { color: #203f3b; }
.ec-section a { overflow-wrap: anywhere; }
.ec-note { display: grid; gap: 6px; border-left: 3px solid #0f9d76; padding: 14px 16px; background: #f1fdf8; border-radius: 0 12px 12px 0; margin: 19px 0; }
.ec-note strong { font-size: 13.5px; }
.ec-note p, .ec-note small { margin: 0; }
.ec-note.warn { background: #fffbeb; border-color: #d97706; }
.ec-note.warn strong { color: #92400e; }
.ec-service-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin: 16px 0; }
.ec-service { border: 1px solid #d8ebe5; background: #fbfefd; border-radius: 14px; padding: 16px; }
.ec-service h3 { margin: 0 0 7px; font-size: 15px; color: var(--ec-ink); }
.ec-service p { font-size: 13.5px; margin:0 0 9px; line-height: 1.58; }
.ec-service a { font-size: 12.5px; font-weight: 650; }
.ec-tag { display:inline-block; background:#e1f7ee; color:#05644a; border-radius:999px; padding:3px 9px; font-size:11px; font-weight:750; margin-bottom:10px; }
.ec-tag--quiet { background:#edf2f6; color:#506276; }
.ec-table-wrap { overflow-x: auto; -webkit-overflow-scrolling:touch; border: 1px solid var(--ec-line); border-radius:14px; margin: 18px 0; }
.ec-table { width: 100%; border-collapse: collapse; min-width: 550px; font-size: 13px; line-height: 1.5; }
.ec-table th { text-align: left; font-size: 12px; color:#22564a; background:#eaf9f3; padding:12px 14px; font-weight:800; border-bottom:1px solid var(--ec-line); }
.ec-table td { padding:12px 14px; vertical-align:top; border-bottom:1px solid #eaf0ee; }
.ec-table tr:last-child td { border-bottom:0; }
.ec-table tbody tr:nth-child(even) { background:#fcfefd; }
.ec-table code { background:#edf6f2; padding:2px 5px; border-radius:4px; font-size:12px; white-space:nowrap; }
.ec-divider { border:0; height:1px; background:var(--ec-line); margin:18px 0; }
.ec-cta-row { display:flex; flex-wrap:wrap; gap:10px; margin-top: 21px; }
.ec-button { display:inline-flex; align-items:center; justify-content:center; gap:8px; padding:11px 18px; border-radius: 11px; text-decoration:none; font-size:13.5px; font-weight:750; background:var(--ec-green); border:1px solid var(--ec-green); color:#fff; }
.ec-button:hover { background:var(--ec-green-dark); color:#fff; }
.ec-button--secondary { background:#fff; color:var(--ec-green-dark); border-color:#b6dccc; }
.ec-button--secondary:hover { background:var(--ec-mint); color:var(--ec-green-dark); }
.ec-page-footer { background:#fff; border-top:1px solid var(--ec-line); padding: 32px 0; }
.ec-footer-top { display:flex; flex-wrap:wrap; gap:13px; align-items:center; justify-content:space-between; }
.ec-footer-note { margin:0; color:#708090; font-size:12px; }
.ec-footer-links { display:flex; flex-wrap:wrap; gap:7px 18px; border-top:1px solid var(--ec-line); padding-top:16px; margin-top:20px; }
.ec-footer-links a { font-size:12.5px; text-decoration:none; color:#506375; font-weight:650; }
.ec-footer-links a:hover { color:var(--ec-green); text-decoration:underline; }
.ec-footer-links a[aria-current="page"] { color:var(--ec-green-dark); text-decoration:underline; }
.ec-up { font-size:12px; text-decoration:none; font-weight:750; color:var(--ec-green); }
@media (max-width: 920px) { .ec-layout { grid-template-columns:1fr; } .ec-toc { position:static; } .ec-toc nav { grid-template-columns:repeat(2, minmax(0,1fr)); } .ec-hero { padding:36px 32px; } }
@media (max-width: 650px) { .ec-wrap { width:min(100% - 30px,1200px); } .ec-header-inner { min-height:68px; flex-wrap:wrap; padding:12px 0; gap: 8px; } .ec-logo { font-size:19px; } .ec-header-nav { width:100%; gap:3px; } .ec-header-nav a { padding:5px 8px; font-size:12px; } .ec-breadcrumb { margin:16px 0 18px; } .ec-hero { border-radius:19px; padding:29px 23px 31px; } .ec-hero h1 { font-size:31px; } .ec-hero p {font-size:14px;} .ec-layout { gap:15px; margin:20px 0 48px; } .ec-toc { padding:17px 13px; } .ec-toc nav { grid-template-columns:1fr 1fr; gap:0; } .ec-toc a { font-size:12px; padding:7px 9px; } .ec-lead-card, .ec-section { padding:23px 19px; } .ec-section h2 { font-size:20px; } .ec-service-grid { grid-template-columns:1fr; } .ec-footer-top {align-items:start;} }
@media (prefers-reduced-motion:reduce) { html {scroll-behavior:auto;} * { transition: none!important; } }
@media print { body {background:#fff;color:#111;font-size:11pt;} .ec-site-header, .ec-toc, .ec-breadcrumb, .ec-page-footer, .ec-cta-row {display:none!important;} .ec-wrap {width:100%;} .ec-hero {color:#111!important;background:#fff!important;box-shadow:none!important;padding:0 0 15px;border-radius:0;border-bottom:2px solid #111;} .ec-hero p,.ec-hero-meta,.ec-eyebrow {color:#111!important;} .ec-hero::before {display:none;} .ec-layout {display:block;margin:20px 0;} .ec-lead-card,.ec-section {box-shadow:none;border:0;border-radius:0;padding:10px 0;break-inside:avoid;} .ec-service-grid {grid-template-columns:1fr 1fr;} a {color:#111;} }
/* Prevent long legal identifiers and placeholder text from forcing horizontal scrolling on mobile. */
.ec-document { grid-template-columns: minmax(0, 1fr); }
.ec-lead-card, .ec-section, .ec-note { min-width: 0; }
.ec-note { grid-template-columns: minmax(0,1fr); overflow-wrap:anywhere; }
