/* Landing page campagne - AssiPratiko */
:root {
  --blue: #0070b8;
  --blue-dark: #00508a;
  --ink: #17202b;
  --muted: #566273;
  --soft: #f3f6f9;
  --line: #dde4ec;
  --radius: 14px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Open Sans", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: #fff;
}
img { max-width: 100%; height: auto; }
a { color: var(--blue); }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .6em; font-weight: 700; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
section, #contatto { scroll-margin-top: 70px; }

.topbar { position: sticky; top: 0; z-index: 20; background: #fff; border-bottom: 1px solid var(--line); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { font-weight: 700; font-size: 1.15rem; color: var(--ink); }
.topnav { display: flex; align-items: center; gap: 22px; }
.topnav a:not(.cta) { color: var(--muted); font-size: .95rem; }

.cta {
  display: inline-block;
  border: 0;
  border-radius: 40px;
  padding: 12px 26px;
  font: inherit;
  font-weight: 700;
  background: #ffb020;
  color: #221700;
  cursor: pointer;
  text-align: center;
}
.cta:hover { background: #f09e00; color: #221700; text-decoration: none; }
.cta-ghost { background: transparent; border: 2px solid #fff; color: #fff; padding: 10px 24px; }
.cta-ghost:hover { background: #fff; color: var(--ink); }
.cta-small { padding: 7px 18px; font-size: .95rem; }

/* L'immagine di sfondo è quella caricata da "Sito Vetrina" */
.hero {
  color: #fff;
  background: linear-gradient(100deg, rgba(8, 20, 35, .88), rgba(8, 20, 35, .45)), url(../img/pop-bg.jpg) center / cover no-repeat;
  padding: 96px 0;
}
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); max-width: 18em; }
.hero p { font-size: 1.15rem; max-width: 34em; margin: 0 0 28px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.block { padding: 64px 0; }
.block:nth-of-type(even) { background: var(--soft); }
.block h2 { font-size: 1.8rem; }
.cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; align-items: start; }
.cols img, .gallery img { border-radius: var(--radius); display: block; width: 100%; }
.cols .media { margin-bottom: 18px; }
.rich { overflow-wrap: anywhere; }
.rich table { max-width: 100%; }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 28px; }
.gallery img { aspect-ratio: 4 / 3; object-fit: cover; }

.form-section { background: var(--blue-dark); padding: 64px 0; }
.card-form { background: #fff; border-radius: var(--radius); padding: 32px; max-width: 720px; margin: 0 auto; box-shadow: 0 20px 50px rgba(0, 0, 0, .25); }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.full { grid-column: 1 / -1; }
.fields label { display: block; font-size: .9rem; font-weight: 600; margin: 0; }
.fields input:not([type=checkbox]), .fields textarea {
  display: block;
  width: 100%;
  margin-top: 4px;
  padding: 11px 12px;
  font: inherit;
  font-weight: 400;
  color: var(--ink);
  background: #fff;
  border: 1px solid #b9c4d2;
  border-radius: 8px;
}
.fields input:focus, .fields textarea:focus { outline: 3px solid rgba(0, 112, 184, .35); border-color: var(--blue); }
.captcha { display: flex; gap: 12px; align-items: flex-end; }
.captcha img { border-radius: 8px; border: 1px solid var(--line); }
.captcha label { flex: 1; }
.fields .consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.consent input { margin-top: 6px; width: 18px; height: 18px; flex: none; }
.legal { font-size: .82rem; color: var(--muted); margin: 0; }
.card-form .cta { width: 100%; }

.site-footer { background: #101823; color: #b9c4d2; padding: 40px 0 90px; font-size: .9rem; }
.site-footer a { color: #7cc4f5; }
.site-footer strong { color: #fff; font-size: 1.05rem; }

@media (max-width: 767px) {
  .topnav a:not(.cta) { display: none; }
  .brand { font-size: 1rem; }
  .hero { padding: 64px 0; }
  .cols, .fields { grid-template-columns: minmax(0, 1fr); }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-form { padding: 22px 18px; }
  .hero .cta { width: 100%; }
}
