/* Studio Antonelli — styles.css */

@font-face { font-family: 'Lora'; src: url('font-lora.woff2') format('woff2'); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Lora'; src: url('font-lora-italic.woff2') format('woff2'); font-weight: 400 700; font-style: italic; font-display: swap; }
@font-face { font-family: 'DM Sans'; src: url('font-dmsans.woff2') format('woff2'); font-weight: 100 1000; font-style: normal; font-display: swap; }

:root {
  --navy: #13305a;
  --navy-deep: #0d2035;
  --sky: #2f8fcb;
  --sky-light: #6cc2ec;
  --cyan: #a8f4f8;
  --orange: #e08c2a;
  --orange-dark: #c2741a;
  --text: #45525f;
  --muted: #6b7785;
  --bg-soft: #f3f7fb;
  --line: #dbe5ef;
  --white: #fff;
  --radius: 10px;
  --shadow: 0 2px 14px rgba(19, 48, 90, .07);
  --shadow-hover: 0 10px 34px rgba(19, 48, 90, .13);
  --wrap: 1100px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 112px; }
body {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 16px; line-height: 1.7; color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--sky); }
h1, h2, h3 { color: var(--navy); line-height: 1.2; }
h2, h1 { font-family: 'Lora', Georgia, serif; font-weight: 700; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--white); padding: 8px 14px; z-index: 300; }
:focus-visible { outline: 3px solid var(--sky-light); outline-offset: 2px; }

/* ── Header ── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 108px; }
.brand img { height: 90px; width: auto; }
.nav { display: flex; align-items: center; gap: 2rem; }
.nav ul { display: flex; gap: 1.6rem; list-style: none; }
.nav a { font-size: .9rem; font-weight: 500; color: var(--navy); text-decoration: none; opacity: .75; transition: opacity .2s, color .2s; }
.nav a:hover { opacity: 1; color: var(--sky); }
.btn {
  display: inline-flex; align-items: center; gap: .45rem;
  font: 600 .92rem/1 'DM Sans', sans-serif;
  padding: .9rem 1.5rem; border-radius: 7px; border: 0; cursor: pointer;
  text-decoration: none; transition: background .2s, transform .15s;
}
.btn-primary { background: var(--orange); color: var(--white); }
.btn-primary:hover { background: var(--orange-dark); transform: translateY(-1px); }
.btn-ghost { background: rgba(255, 255, 255, .14); color: var(--white); border: 1px solid rgba(255, 255, 255, .35); }
.btn-ghost:hover { background: rgba(255, 255, 255, .24); }
.nav .btn { padding: .65rem 1.15rem; opacity: 1; color: var(--white); }
.menu-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; border-radius: 2px; }

/* ── Hero ── */
.hero {
  position: relative; overflow: hidden; color: var(--white);
  background: linear-gradient(140deg, #22679f 0%, #2f86c3 48%, #5db6e4 100%);
  padding: 6rem 0 5.5rem;
}
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 52px 52px;
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.2fr 1fr; gap: 4.5rem; align-items: center; }
.hero h1 { color: var(--white); font-size: clamp(2.4rem, 5vw, 3.7rem); margin-bottom: 1.3rem; }
.hero h1 em { font-weight: 500; color: rgba(255, 255, 255, .85); }
.hero .lead { font-size: 1.08rem; color: rgba(255, 255, 255, .9); max-width: 520px; margin-bottom: 2.2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.audience { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 2.4rem; list-style: none; }
.audience li { font-size: .78rem; font-weight: 500; padding: .3rem .85rem; border-radius: 20px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); }
.hero-panel { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); border-radius: 14px; padding: 2.2rem; backdrop-filter: blur(6px); }
.hero-panel blockquote { font-family: 'Lora', serif; font-style: italic; font-size: 1.25rem; line-height: 1.55; padding-left: 1rem; border-left: 2px solid rgba(255,255,255,.5); margin-bottom: 1.8rem; }
.facts { list-style: none; border-top: 1px solid rgba(255,255,255,.22); }
.facts li { display: flex; gap: 1rem; align-items: baseline; padding: .9rem 0; border-bottom: 1px solid rgba(255,255,255,.14); }
.facts li:last-child { border-bottom: 0; padding-bottom: 0; }
.facts strong { font-family: 'Lora', serif; font-size: 1.7rem; line-height: 1; min-width: 3.2rem; }
.facts span { font-size: .9rem; color: rgba(255,255,255,.85); }

/* ── Sections ── */
section { padding: 5.5rem 0; }
.alt { background: var(--bg-soft); }
.eyebrow { font-size: .74rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--orange); margin-bottom: .7rem; }
.section-title { font-size: clamp(1.8rem, 3.2vw, 2.55rem); margin-bottom: 1rem; }
.section-intro { max-width: 620px; font-size: 1.03rem; margin-bottom: 2.8rem; }
.grid { display: grid; gap: 1.2rem; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.8rem; box-shadow: var(--shadow);
  transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.card h3 { font-size: 1.02rem; font-weight: 700; margin-bottom: .5rem; }
.card p { font-size: .9rem; }
.icon { width: 44px; height: 44px; border-radius: 10px; background: rgba(47, 143, 203, .1); display: grid; place-items: center; margin-bottom: 1rem; }
.icon svg { width: 22px; height: 22px; stroke: var(--sky); stroke-width: 1.8; fill: none; stroke-linecap: round; stroke-linejoin: round; }

/* Servizi: due gruppi nella stessa sezione */
.service-group + .service-group { margin-top: 3rem; }
.group-head { display: flex; align-items: baseline; gap: 1rem; margin-bottom: 1.3rem; padding-bottom: .8rem; border-bottom: 1px solid var(--line); }
.group-head h3 { font-family: 'Lora', serif; font-size: 1.3rem; }
.group-head p { font-size: .9rem; color: var(--muted); }
.service-group.advisory .card { border-top: 3px solid var(--sky); }

/* Perché noi */
.dark { background: var(--navy); color: rgba(255,255,255,.75); }
.dark .section-title, .dark h3 { color: var(--white); }
.dark .card { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.1); box-shadow: none; }
.dark .card:hover { background: rgba(255,255,255,.1); }
.dark .card p { color: rgba(255,255,255,.68); }
.dark .icon { background: rgba(108, 194, 236, .15); }
.dark .icon svg { stroke: var(--sky-light); }

/* Processo */
.step-n { font-family: 'Lora', serif; font-size: 2rem; font-weight: 700; color: var(--sky-light); line-height: 1; margin-bottom: .9rem; }

/* Team */
.person { display: flex; gap: 1.3rem; align-items: flex-start; }
.initials {
  flex-shrink: 0; width: 58px; height: 58px; border-radius: 50%;
  background: linear-gradient(135deg, var(--sky), var(--navy));
  color: var(--white); font-family: 'Lora', serif; font-weight: 600; font-size: 1.15rem;
  display: grid; place-items: center;
}
.person h3 { font-family: 'Lora', serif; font-size: 1.25rem; margin-bottom: .15rem; }
.role { font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--orange); margin-bottom: .8rem; white-space: nowrap; }
@media (max-width: 1100px) { #chi-siamo .g2 { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .role .sep { display: none; } .role span { display: block; } }

/* Partner */
.partner h3 { font-size: .97rem; margin-bottom: .25rem; }
.partner p { font-size: .85rem; color: var(--muted); }

/* Contatti */
.contact { background: linear-gradient(150deg, #173a63 0%, #1e4d7c 100%); color: rgba(255,255,255,.8); }
.contact .section-title { color: var(--white); }
.contact .eyebrow { color: var(--cyan); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 3.5rem; align-items: start; }
.contact-grid > *, .grid > * { min-width: 0; }
.info div { min-width: 0; overflow-wrap: anywhere; }
.info { list-style: none; display: flex; flex-direction: column; gap: 1.3rem; margin-bottom: 2rem; }
.info li { display: flex; gap: 1rem; align-items: flex-start; }
.info .icon { margin: 0; flex-shrink: 0; background: rgba(255,255,255,.08); border-radius: 50%; }
.info .icon svg { stroke: var(--sky-light); }
.info b { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.5); }
.info span, .info a { color: var(--white); text-decoration: none; }
.info a:hover { text-decoration: underline; }

.map-box {
  border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.06); min-height: 220px; display: grid; place-items: center; text-align: center;
}
.map-box .consent { padding: 1.6rem; }
.map-box p { font-size: .84rem; margin-bottom: 1rem; color: rgba(255,255,255,.75); }
.map-box p a { color: var(--cyan); }
.map-box button { font: 600 .85rem 'DM Sans', sans-serif; padding: .65rem 1.1rem; border-radius: 6px; border: 1px solid rgba(255,255,255,.4); background: transparent; color: var(--white); cursor: pointer; }
.map-box button:hover { background: rgba(255,255,255,.12); }
.map-box iframe { width: 100%; height: 100%; min-height: 360px; border: 0; display: block; }
.map-box { align-self: stretch; min-height: 360px; }
.contact-actions { display: flex; flex-wrap: wrap; gap: .8rem; }

.form { background: var(--white); border-radius: 12px; padding: 2.3rem; box-shadow: var(--shadow-hover); color: var(--text); }
.form h3 { font-family: 'Lora', serif; font-size: 1.35rem; margin-bottom: 1.4rem; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: flex; flex-direction: column; gap: .35rem; margin-bottom: .95rem; }
.field label { font-size: .76rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--navy); }
.field input, .field select, .field textarea {
  font: 400 .95rem 'DM Sans', sans-serif; color: var(--navy);
  border: 1px solid var(--line); border-radius: 7px; padding: .72rem .9rem; background: var(--bg-soft);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--sky); background: var(--white); box-shadow: 0 0 0 3px rgba(47,143,203,.15); }
.field textarea { min-height: 120px; resize: vertical; }
.check { display: flex; gap: .65rem; align-items: flex-start; font-size: .84rem; margin: .3rem 0 1.2rem; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--sky); flex-shrink: 0; }
.hp { position: absolute; left: -9999px; }
.form .btn { width: 100%; justify-content: center; }
.form-status { font-size: .9rem; margin-top: 1rem; min-height: 1.4em; }
.form-status.ok { color: #1f7a4d; }
.form-status.err { color: #b3261e; }
.form-note { font-size: .76rem; color: var(--muted); margin-top: .6rem; }

/* Footer */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,.55); padding: 4rem 0 2rem; font-size: .88rem; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 3rem; margin-bottom: 2.5rem; }
.site-footer img { height: 82px; width: auto; margin-bottom: 1rem; }
.site-footer h4 { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--sky-light); margin-bottom: .9rem; }
.site-footer ul { list-style: none; display: flex; flex-direction: column; gap: .5rem; }
.site-footer a { color: rgba(255,255,255,.7); text-decoration: none; }
.site-footer a:hover { color: var(--white); }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 1.4rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: .8rem; }
.foot-bottom nav { display: flex; gap: 1.3rem; }

/* Reveal (solo per elementi sotto la piega, aggiunto da script.js) */
.pending { opacity: 0; transform: translateY(18px); }
.revealed { opacity: 1; transform: none; transition: opacity .6s ease, transform .6s ease; }
@media (prefers-reduced-motion: reduce) { .pending { opacity: 1; transform: none; } html { scroll-behavior: auto; } }

/* Pagine legali */
.legal { max-width: 780px; margin: 0 auto; padding: 3.5rem 24px 5rem; }
.legal h1 { font-size: 2.1rem; margin-bottom: .4rem; }
.legal .updated { font-size: .85rem; color: var(--muted); margin-bottom: 2.4rem; }
.legal h2 { font-size: 1.2rem; margin: 2.2rem 0 .7rem; }
.legal p, .legal li { font-size: .97rem; margin-bottom: .8rem; }
.legal ul { padding-left: 1.4rem; }
.legal .box { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.5rem; margin-bottom: 1.5rem; }
.legal table { width: 100%; border-collapse: collapse; margin: .5rem 0 1.5rem; font-size: .9rem; }
.legal th, .legal td { text-align: left; padding: .7rem .8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal th { background: var(--navy); color: var(--white); font-weight: 600; }

/* Responsive */
@media (max-width: 960px) {
  .menu-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: 108px; left: 0; right: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 24px 1.2rem;
    box-shadow: var(--shadow-hover);
  }
  .nav.open { display: flex; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav li a { display: block; padding: .8rem 0; border-bottom: 1px solid var(--line); opacity: 1; }
  .nav .btn { margin-top: 1rem; justify-content: center; }
  .hero .wrap { grid-template-columns: 1fr; gap: 2.5rem; }
  .g3, .g4 { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .group-head { flex-direction: column; gap: .2rem; }
}
@media (max-width: 620px) {
  .site-header .wrap { height: 84px; }
  .brand img { height: 68px; }
  .nav { top: 84px; }
  html { scroll-padding-top: 88px; }
  section { padding: 4rem 0; }
  .hero { padding: 4rem 0; }
  .g2, .g3, .g4, .row { grid-template-columns: 1fr; }
  .person { flex-direction: column; }
  .foot-grid { grid-template-columns: 1fr; gap: 2rem; }
  .form { padding: 1.6rem; }
}
