/* ===== Studio ALB – palette ===== */
:root {
  --c1: #018AAB;   /* azzurro */
  --c2: #0C718C;   /* petrolio chiaro */
  --c3: #07566A;   /* petrolio */
  --c4: #003543;   /* blu notte (testi) */
  --bg: #ffffff;
  --tint: #f2f8fa; /* velatura chiarissima di --c1 */
  --line: #d9e8ed;
  --radius: 14px;
  --serif: "Libre Caslon Text", Georgia, serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--c4);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c2); }
a:hover { color: var(--c1); }

.container { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 14px 0;
}
.brand img { width: 190px; }
.main-nav { display: flex; gap: 28px; }
.main-nav a {
  color: var(--c4); text-decoration: none;
  font-weight: 500; letter-spacing: .02em;
  position: relative; padding: 4px 0;
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 0; height: 2px; background: var(--c1);
  transition: width .25s ease;
}
.main-nav a:hover::after { width: 100%; }

/* ===== Tipografia ===== */
h1, h2 { font-family: var(--serif); font-weight: 400; color: var(--c4); line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.3rem, 5.5vw, 4rem); }
h1 span { color: var(--c3); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-weight: 600; margin: 0 0 .4em; font-size: 1.12rem; }

.eyebrow {
  text-transform: uppercase; letter-spacing: .18em;
  font-size: .8rem; font-weight: 600; color: var(--c1);
  margin: 0 0 .9em;
}
.eyebrow-light { color: #8fd3e4; }

/* ===== Hero ===== */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(72px, 12vw, 140px) 0 clamp(64px, 10vw, 120px);
}
.hero-inner { position: relative; z-index: 1; max-width: 1120px; }
.hero-inner > * { max-width: 640px; }
.lead { font-size: 1.2rem; font-weight: 300; margin: 0 0 2em; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.btn {
  display: inline-block; padding: 13px 28px;
  border-radius: 999px; text-decoration: none;
  font-weight: 500; letter-spacing: .02em;
  transition: background .2s, color .2s, transform .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--c3); color: #fff; }
.btn-primary:hover { background: var(--c4); color: #fff; }
.btn-ghost { border: 1.5px solid var(--c2); color: var(--c2); }
.btn-ghost:hover { background: var(--c2); color: #fff; }

/* I tre quadrati del logo, in grande, a destra */
.hero-shapes { position: absolute; inset: 0; pointer-events: none; }
.shape { position: absolute; border-radius: 18%; }
.s1 { width: 150px; height: 150px; background: var(--c1); right: 34%; top: 24%; transform: rotate(45deg); opacity: .9; }
.s2 { width: 175px; height: 175px; background: var(--c2); right: 19%; top: 40%; transform: rotate(-22deg); opacity: .9; }
.s3 { width: 200px; height: 200px; background: var(--c3); right: 3%; top: 20%; }

/* ===== Sezioni ===== */
.section { padding: clamp(64px, 9vw, 110px) 0; }

.about { background: var(--tint); }
.about-grid {
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; align-items: start;
}
.about-text p { margin: 0 0 1em; }
.about-text strong { color: var(--c3); font-weight: 600; }

.pillars {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  margin-top: 56px;
}
.pillar {
  background: #fff; border-radius: var(--radius);
  padding: 26px 22px; border: 1px solid var(--line);
}
.pillar p { margin: 0; font-size: .95rem; color: var(--c3); }
.pillar-mark { display: block; width: 26px; height: 26px; border-radius: 6px; margin-bottom: 18px; }
.m1 { background: var(--c1); transform: rotate(45deg); }
.m2 { background: var(--c2); transform: rotate(-22deg); }
.m3 { background: var(--c3); }
.m4 { background: var(--c4); }

/* Servizi */
.service-groups {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
  margin-top: 36px;
}
.service-group {
  border: 1px solid var(--line); border-top: 4px solid var(--c1);
  border-radius: var(--radius); padding: 28px 28px 20px;
}
.service-group:nth-child(2) { border-top-color: var(--c2); }
.service-group:nth-child(3) { border-top-color: var(--c3); }
.service-group:nth-child(4) { border-top-color: var(--c4); }
.service-group h3 { font-family: var(--serif); font-weight: 400; font-size: 1.4rem; margin-bottom: .7em; }
.service-group ul { list-style: none; margin: 0; padding: 0; }
.service-group li {
  padding: 10px 0 10px 22px; border-top: 1px solid var(--line);
  position: relative; font-weight: 500;
}
.service-group li::before {
  content: ""; position: absolute; left: 0; top: 19px;
  width: 8px; height: 8px; border-radius: 2px; background: var(--c1);
}
.service-group small { display: block; font-weight: 300; font-size: .88rem; color: var(--c3); margin-top: 2px; }

/* Contatti */
.contacts { background: var(--c4); color: #fff; }
.contacts h2 { color: #fff; }
.contact-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 32px;
}
.contact-card {
  background: var(--c3); border-radius: var(--radius); padding: 24px 22px;
}
.contact-card h3 { color: #8fd3e4; font-size: .82rem; text-transform: uppercase; letter-spacing: .14em; }
.contact-card address { font-style: normal; }
.contact-card a { color: #fff; text-decoration: none; overflow-wrap: anywhere; }
.contact-card a:hover { color: #8fd3e4; text-decoration: underline; }

/* ===== Footer ===== */
.site-footer { background: #fff; border-top: 4px solid var(--c1); padding: 36px 0; }
.footer-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
}
.cert { width: 230px; flex-shrink: 0; }
.legal { margin: 0; font-size: .9rem; line-height: 1.7; text-align: right; color: var(--c4); }
.legal a { color: var(--c3); text-decoration: none; }
.legal a:hover { color: var(--c1); text-decoration: underline; }

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .pillars, .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .shape { opacity: .18 !important; }
}
@media (max-width: 720px) {
  .header-inner { flex-direction: column; gap: 10px; }
  .brand img { width: 150px; }
  .main-nav { gap: 22px; }
  .about-grid, .service-groups { grid-template-columns: 1fr; gap: 20px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .legal { text-align: center; }
}
@media (max-width: 480px) {
  .pillars, .contact-grid { grid-template-columns: 1fr; }
  .s1, .s2 { display: none; }
}

/* Icona webmail nell'header */
.main-nav { align-items: center; }
.main-nav a.nav-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; padding: 0;
  border-radius: 50%; color: #fff; background: var(--c2);
  transition: background .2s, transform .2s;
}
.main-nav a.nav-icon::after { display: none; }
.main-nav a.nav-icon:hover { background: var(--c1); color: #fff; transform: translateY(-1px); }
