:root{
  --bg:#f5f7fb;
  --surface:#ffffff;
  --text:#1f2937;
  --muted:#64748b;
  --line:#e5e7eb;
  --primary:#1683d8;
  --primary-dark:#1267a7;
  --accent:#16a34a;
  --shadow:0 10px 30px rgba(0,0,0,.08);
  --radius:18px;
  --max:1180px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}

body{
  margin:0;
  font-family:Arial, Helvetica, sans-serif;
  background:var(--bg);
  color:var(--text);
  line-height:1.7;
}

img{max-width:100%;display:block}
a{text-decoration:none;color:inherit}

.container{
  width:min(var(--max), calc(100% - 32px));
  margin:0 auto;
}

.topline{
  background:#0f172a;
  color:#fff;
  font-size:14px;
}

.topline-inner{
  min-height:42px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
}

.topline a{color:#cbd5e1}

.site-header{
  background:#fff;
  border-bottom:1px solid var(--line);
  position:sticky;
  top:0;
  z-index:20;
}

.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  min-height:82px;
}

.brand{
  display:flex;
  flex-direction:column;
  gap:2px;
}

.brand-title{
  font-size:40px;
  line-height:1;
  font-weight:700;
  color:var(--primary);
  letter-spacing:-0.03em;
}

.brand-subtitle{
  color:var(--muted);
  font-size:14px;
}

.main-nav{
  display:flex;
  align-items:center;
  gap:22px;
  flex-wrap:wrap;
}

.main-nav a{
  font-size:14px;
  font-weight:700;
  color:#334155;
  text-transform:uppercase;
}

.main-nav a:hover{color:var(--primary)}

.search-box{
  display:flex;
  gap:8px;
  align-items:center;
}

.search-box input{
  height:42px;
  width:220px;
  border:1px solid #cbd5e1;
  border-radius:12px;
  padding:0 12px;
  font:inherit;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  padding:0 16px;
  border-radius:999px;
  border:none;
  font-weight:700;
  cursor:pointer;
  transition:.2s ease;
}

.btn-primary{
  background:var(--primary);
  color:#fff;
}

.btn-primary:hover{
  background:var(--primary-dark);
  transform:translateY(-1px);
}

.btn-light{
  background:#fff;
  color:var(--text);
  border:1px solid var(--line);
}

/* HOME */
.hero{
  padding:32px 0 18px;
}

.hero-grid{
  display:grid;
  grid-template-columns:1.2fr .8fr;
  gap:22px;
}

.hero-main,
.hero-side,
.card,
.offer-box,
.newsletter-box,
.footer-col{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
}

.hero-main{
  padding:34px;
  background:linear-gradient(135deg,#ffffff 0%,#eef6ff 100%);
}

.eyebrow{
  display:inline-block;
  padding:6px 12px;
  border-radius:999px;
  background:#e8f3ff;
  color:var(--primary);
  font-size:13px;
  font-weight:700;
  margin-bottom:14px;
}

.hero-main h1{
  margin:0 0 14px;
  font-size:clamp(32px,4vw,52px);
  line-height:1.05;
  letter-spacing:-0.04em;
}

.hero-main p{
  margin:0;
  color:#475569;
  font-size:18px;
  max-width:60ch;
}

.hero-actions{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:24px;
}

.hero-points{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:12px;
  margin-top:26px;
}

.hero-point{
  background:rgba(255,255,255,.8);
  border:1px solid var(--line);
  border-radius:14px;
  padding:14px;
  font-size:14px;
}

.hero-point strong{
  display:block;
  margin-bottom:4px;
  color:#0f172a;
}

.hero-side{
  padding:24px;
  display:flex;
  flex-direction:column;
  gap:18px;
}

.hero-side h2{
  margin:0;
  font-size:24px;
  line-height:1.15;
}

.hero-side p{
  margin:0;
  color:var(--muted);
}

.newsletter-form{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.newsletter-form input{
  min-height:46px;
  border:1px solid #cbd5e1;
  border-radius:12px;
  padding:0 12px;
  font:inherit;
}

.section{
  padding:18px 0 10px;
}

.section-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin-bottom:16px;
}

.section-head h2{
  margin:0;
  font-size:28px;
  letter-spacing:-0.03em;
}

.section-head a{
  color:var(--primary);
  font-weight:700;
}

.grid-3{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px;
}

.grid-2{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:18px;
}

.card{
  overflow:hidden;
}

.card img{
  width:100%;
  aspect-ratio:16/9;
  object-fit:cover;
  background:#e5e7eb;
}

.card-body{
  padding:18px;
}

.tag{
  display:inline-block;
  padding:6px 10px;
  border-radius:999px;
  background:#ecfdf5;
  color:var(--accent);
  font-size:12px;
  font-weight:700;
  margin-bottom:10px;
}

.card h3{
  margin:0 0 10px;
  font-size:22px;
  line-height:1.2;
  letter-spacing:-0.02em;
}

.card p{
  margin:0 0 14px;
  color:var(--muted);
  font-size:15px;
}

.read-more{
  color:var(--primary);
  font-weight:700;
}

.offer-wrap{
  padding:18px 0;
}

.offer-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px;
}

.offer-box{
  padding:22px;
}

.offer-box h3{
  margin:0 0 10px;
  font-size:22px;
}

.offer-box p{
  margin:0 0 16px;
  color:var(--muted);
}

.newsletter-strip{
  margin:26px 0;
  padding:26px;
  background:linear-gradient(135deg,#0f172a 0%,#1e293b 100%);
  color:#fff;
  border-radius:22px;
  box-shadow:var(--shadow);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  flex-wrap:wrap;
}

.newsletter-strip h2{
  margin:0 0 6px;
  font-size:28px;
  letter-spacing:-0.03em;
}

.newsletter-strip p{
  margin:0;
  color:#cbd5e1;
}

.newsletter-inline{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.newsletter-inline input{
  min-width:260px;
  min-height:46px;
  border:none;
  border-radius:12px;
  padding:0 12px;
  font:inherit;
}

/* PAGINE ARTICOLO / SEZIONI */
.breadcrumbs{
  font-size:14px;
  color:var(--muted);
  margin-bottom:14px;
}

.breadcrumbs a{
  color:var(--primary);
  font-weight:700;
}

.article-hero{
  background:linear-gradient(135deg,#ffffff 0%,#eef6ff 100%);
  border:1px solid var(--line);
  border-radius:24px;
  box-shadow:var(--shadow);
  padding:34px;
}

.article-hero h1{
  margin:0 0 12px;
  font-size:clamp(32px, 4vw, 50px);
  line-height:1.05;
  letter-spacing:-0.04em;
}

.article-hero p{
  margin:0;
  max-width:75ch;
  color:#475569;
  font-size:18px;
}

.layout{
  display:grid;
  grid-template-columns:minmax(0,1fr) 320px;
  gap:24px;
  padding:24px 0 42px;
}

.article,
.sidebar-box,
.related-card{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
}

.article{
  overflow:hidden;
}

.article-cover{
  width:100%;
  max-height:420px;
  object-fit:cover;
  background:#dbeafe;
}

.article-body{
  padding:30px;
}

.article-body h2{
  margin:30px 0 12px;
  font-size:30px;
  line-height:1.15;
  letter-spacing:-0.03em;
  color:#0f172a;
}

.article-body h2:first-child{
  margin-top:0;
}

.article-body p{
  margin:0 0 18px;
  font-size:18px;
  color:#334155;
}

.article-body ul{
  margin:0 0 18px;
  padding-left:24px;
}

.article-body li{
  margin-bottom:8px;
  color:#334155;
  font-size:17px;
}

.intro{
  font-size:20px;
  color:#0f172a;
}

.tip{
  padding:18px 18px 2px;
  border:1px solid #edf2f7;
  border-radius:16px;
  margin:0 0 16px;
  background:#fcfdff;
}

.tip strong{
  color:#0f172a;
}

.tip-box{
  border:1px solid #edf2f7;
  border-radius:16px;
  background:#fcfdff;
  padding:18px;
  margin:16px 0;
}

.tip-box strong{
  color:#0f172a;
}

.guide-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:16px;
  margin:24px 0;
}

.mini-card{
  border:1px solid var(--line);
  border-radius:16px;
  background:#fcfdff;
  padding:18px;
}

.mini-card img{
  width:80px;
  height:80px;
  object-fit:cover;
  border-radius:14px;
  margin-bottom:12px;
}

.mini-card h3{
  margin:0 0 8px;
  font-size:20px;
  line-height:1.2;
}

.mini-card p{
  font-size:15px;
  color:var(--muted);
  margin-bottom:12px;
}

.mini-card a{
  color:var(--primary);
  font-weight:700;
}

.offer-tag{
  display:inline-block;
  padding:6px 10px;
  border-radius:999px;
  background:#dcfce7;
  color:#15803d;
  font-size:12px;
  font-weight:700;
  margin-bottom:10px;
}

.newsletter-box{
  padding:24px;
  background:linear-gradient(135deg,#0f172a 0%,#1e293b 100%);
  color:#fff;
  margin:30px 0;
}

.newsletter-box h3{
  margin:0 0 10px;
  font-size:26px;
  line-height:1.2;
}

.newsletter-box p{
  color:#cbd5e1;
  font-size:16px;
}

.sidebar{
  display:flex;
  flex-direction:column;
  gap:18px;
}

.sidebar-box{
  padding:20px;
}

.sidebar-box h3{
  margin:0 0 12px;
  font-size:22px;
}

.sidebar-box p,
.sidebar-box li{
  color:var(--muted);
  font-size:15px;
}

.sidebar-box ul{
  margin:0;
  padding-left:18px;
}

.sidebar-box li{
  margin-bottom:10px;
}

.sidebar-box a{
  color:var(--primary);
  font-weight:700;
}

.related{
  padding-bottom:50px;
}

.related-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px;
}

.related-card{
  overflow:hidden;
}

.related-card img{
  width:100%;
  aspect-ratio:16/9;
  object-fit:cover;
  background:#e5e7eb;
}

.related-body{
  padding:18px;
}

.related-card h3{
  margin:0 0 10px;
  font-size:22px;
  line-height:1.2;
}

.related-card p{
  margin:0 0 14px;
  color:var(--muted);
  font-size:15px;
}

/* FOOTER */
.footer{
  padding:34px 0 40px;
}

.footer-grid{
  display:grid;
  grid-template-columns:2fr 1fr 1fr 1fr;
  gap:18px;
}

.footer-col{
  padding:20px;
}

.footer-col h4{
  margin:0 0 12px;
  font-size:18px;
}

.footer-col p,
.footer-col li,
.footer-col a{
  color:var(--muted);
  font-size:15px;
}

.footer-col ul{
  margin:0;
  padding-left:18px;
}

.footer-col li{
  margin-bottom:8px;
}

.copyright{
  border-top:1px solid var(--line);
  margin-top:20px;
  padding-top:18px;
  color:var(--muted);
  font-size:14px;
  display:flex;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}

/* RESPONSIVE */
@media (max-width:1024px){
  .hero-grid,
  .layout,
  .guide-grid,
  .grid-3,
  .grid-2,
  .offer-grid,
  .related-grid,
  .footer-grid{
    grid-template-columns:1fr;
  }

  .hero-points{
    grid-template-columns:1fr;
  }

  .header-inner{
    align-items:flex-start;
    padding:14px 0;
    flex-direction:column;
  }

  .main-nav{
    gap:14px;
  }
}

@media (max-width:640px){
  .brand-title{font-size:32px}

  .search-box{
    width:100%;
    flex-direction:column;
  }

  .search-box input,
  .btn{
    width:100%;
  }

  .newsletter-inline{
    flex-direction:column;
  }

  .newsletter-inline input{
    width:100%;
  }

  .hero-main,
  .hero-side,
  .article-hero,
  .article-body{
    padding:20px;
  }

  .section-head{
    flex-direction:column;
    align-items:flex-start;
  }

  .article-body p{
    font-size:17px;
  }
}