/* =========================================================
   Studio SD Consulting — foglio di stile principale
   Colori e font sono definiti qui sotto: cambiali in un punto solo.
   ========================================================= */
:root {
  --teal: #008c95;
  --teal-dark: #00757d;
  --black: #000;
  --text: #111;
  --grey-bg: #f8f8f9;
  --footer: #8b909a;
  --white: #fff;
  --header-h: 75px;
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-nav: "Figtree", "Poppins", system-ui, sans-serif;
  --radius-btn: 7px;
  --maxw: 1100px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--black);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.3; }
p { margin: 0; }

/* ---------- Utility ---------- */
.container { width: min(var(--maxw), 100% - 40px); margin-inline: auto; }
.center { text-align: center; }
.teal { color: var(--teal); }
.section-title { font-size: 37px; font-weight: 700; text-align: center; }
.section-sub { font-size: 18px; font-weight: 400; text-align: center; margin-top: 18px; }
.underlined { display: inline-block; position: relative; padding-bottom: 14px; }
.underlined::after {
  content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: min(100%, 260px); height: 12px;
  background: url("../img/underline.svg") center / 100% 100% no-repeat;
}
.brush { position: relative; white-space: nowrap; }
.brush::after {
  content: ""; position: absolute; left: -2%; right: -2%; bottom: -10px; height: 12px;
  background: url("../img/underline.svg") center / 100% 100% no-repeat;
}

/* ---------- Bottoni ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 202px; height: 38px; padding: 0 22px;
  border-radius: var(--radius-btn); border: 0;
  font: 500 13px/1 var(--font); text-decoration: none; cursor: pointer;
  transition: background-color .25s, color .25s, transform .25s, box-shadow .25s;
}
.btn-teal { background: var(--teal); color: var(--white); }
.btn-teal:hover { background: var(--teal-dark); }
.btn-white { background: var(--white); color: var(--teal); }
.btn-white:hover { background: #eef7f8; }
.btn-sm { min-width: 118px; height: 34px; font-size: 11px; padding: 0 16px; }
.badge-wrap { position: relative; display: inline-block; }
.badge {
  position: absolute; top: -10px; right: -4px;
  background: var(--teal); color: var(--white);
  font: 600 9px/1 var(--font); padding: 4px 7px; border-radius: 3px;
}

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: fixed; inset: 0 0 auto 0; height: var(--header-h); z-index: 100;
  background: var(--white);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 21px 0 24px;
  transition: box-shadow .3s;
}
.site-header.scrolled { box-shadow: 0 2px 14px rgba(0,0,0,.07); }
body { padding-top: var(--header-h); }
.brand { display: flex; align-items: center; gap: 0; text-decoration: none; color: var(--black); }
.brand img { width: 61px; height: auto; }
.brand span { font-size: 12.5px; font-weight: 700; margin-left: 2px; white-space: nowrap; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; }
.main-nav li { position: relative; }
.main-nav li + li::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 1px; height: 22px; background: #d6d6d6;
}
.main-nav a {
  display: block; padding: 4px 14px; font: 400 15px/22px var(--font-nav);
  color: var(--black); text-decoration: none; transition: color .2s;
}
.main-nav a:hover { color: var(--teal); }
.main-nav a.active { color: var(--teal); }
.main-nav a.active span { border-bottom: 1px solid var(--teal); padding-bottom: 2px; }
.header-cta { display: flex; align-items: center; gap: 14px; }
.burger {
  display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; padding: 8px;
}
.burger span { display: block; height: 3px; background: #000; border-radius: 3px; margin: 6px 0; transition: transform .3s, opacity .3s, width .3s; }
.burger span:nth-child(1) { width: 100%; }
.burger span:nth-child(2) { width: 70%; }
.burger span:nth-child(3) { width: 100%; }
.mobile-menu {
  position: fixed; inset: 0; z-index: 200; background: var(--white);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-menu a { font: 500 22px/1.2 var(--font); color: var(--black); text-decoration: none; padding: 12px 20px; }
.mobile-menu a.active { color: var(--teal); }
.mobile-menu .close {
  position: absolute; top: 18px; right: 18px; width: 44px; height: 44px; border: 0; background: none;
  font-size: 34px; line-height: 1; cursor: pointer;
}
.mobile-menu .btn { margin-top: 22px; }

/* Header variante "Divisione People" */
.site-header.people .header-cta .btn-white { box-shadow: 0 0 0 1px #eee; color: var(--black); }

/* =========================================================
   HERO (home / people / pagine con foto)
   ========================================================= */
.hero {
  position: relative; text-align: center; overflow: hidden;
  background-position: center; background-size: cover; background-repeat: no-repeat;
}
.hero::before { /* velatura bianca + sfumatura verso il basso */
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(255,255,255,0) 60%, #fff 100%),
    rgba(255,255,255,var(--veil, .72));
}
.hero > * { position: relative; }

.home-hero { padding: 81px 20px 0; }
.home-hero .logo { width: 205px; margin: 0 auto 45px; }
.home-hero h1 { font-size: 37px; font-weight: 700; max-width: 860px; margin: 0 auto; }
.home-hero .quote { font-size: 18px; margin-top: 55px; line-height: 1.5; }
.hero-buttons { display: flex; gap: 31px; justify-content: center; margin-top: 30px; flex-wrap: wrap; }
.vm { display: grid; grid-template-columns: 1fr 1fr; max-width: 1060px; margin: 150px auto 0; padding-bottom: 100px; gap: 40px; }
.vm-item img { height: 60px; width: auto; margin: 0 auto 18px; }
.vm-item h2 { color: var(--teal); font-size: 25px; font-weight: 700; margin-bottom: 20px; }
.vm-item p { font-size: 14.8px; max-width: 420px; margin: 0 auto; line-height: 1.6; }

/* ---------- Servizi (carosello esagonale) ---------- */
.services-band {
  position: relative; height: 607px; overflow: hidden;
  background: url("../img/bg-servizi-home.jpg") center / cover no-repeat;
}
.services-band h2 {
  position: relative; z-index: 3; color: #fff; font-size: 37px; font-weight: 700;
  text-align: center; padding-top: 39px;
}
.hex-stage { position: absolute; inset: 0; display: grid; place-items: center; perspective: 1200px; }
.hex-carousel {
  --card-w: clamp(280px, 24vw, 480px);
  --card-h: calc(var(--card-w) * .8660254038);
  --gap: 40px; --scale-side: .7; --fade-side: .5; --x-mult: 1;
  position: relative; display: flex; align-items: center; justify-content: center;
  width: min(100%, 1400px); height: calc(var(--card-h) + 160px);
  user-select: none; touch-action: pan-y; transform-style: preserve-3d; margin-top: 40px;
}
.hex-card {
  width: var(--card-w); height: var(--card-h); position: absolute;
  display: grid; grid-template-areas: "s"; place-items: center; padding: 22px 24px; cursor: pointer;
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
  background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.25);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: transform .8s cubic-bezier(.25,.46,.45,.94), opacity .8s cubic-bezier(.25,.46,.45,.94);
  text-align: center;
}
.hex-card .title {
  grid-area: s; margin: 0; font-weight: 800; font-size: clamp(20px, 1.4vw, 26px); line-height: 1.15; color: #fff;
  text-shadow: 0 0 5px rgba(255,255,255,.72), 0 0 20px rgba(255,255,255,.26), 0 0 40px rgba(130,201,255,.2);
  opacity: 0;
}
.hex-card .logo { grid-area: s; width: clamp(100px, 8vw, 140px); height: clamp(100px, 8vw, 140px); object-fit: contain; transition: opacity .1s, transform .3s; }
.hex-card.left { transform: translateX(calc(-1 * var(--x-mult) * (var(--card-w) + var(--gap)))) scale(var(--scale-side)) translateZ(-20px) rotateZ(60deg); opacity: var(--fade-side); z-index: 1; }
.hex-card.left .title, .hex-card.left .logo { transform: rotateZ(-60deg); }
.hex-card.center { transform: translateX(0) scale(1) translateZ(30px); opacity: 1; z-index: 3; }
.hex-card.right { transform: translateX(calc(var(--x-mult) * (var(--card-w) + var(--gap)))) scale(var(--scale-side)) translateZ(-20px) rotateZ(-60deg); opacity: var(--fade-side); z-index: 1; }
.hex-card.right .title, .hex-card.right .logo { transform: rotateZ(60deg); }
.hex-card.exit-left { transform: translateX(calc(-2 * (var(--card-w) + var(--gap)))) scale(.3) translateZ(-60px) rotateZ(120deg); opacity: 0; z-index: 2; }
.hex-card.exit-left .title, .hex-card.exit-left .logo { transform: rotateZ(-120deg); }
.hex-card.enter-right { transform: translateX(calc(2 * (var(--card-w) + var(--gap)))) scale(.3) translateZ(-60px) rotateZ(-120deg); opacity: 0; z-index: 0; }
.hex-card.enter-right .title, .hex-card.enter-right .logo { transform: rotateZ(120deg); }
.hex-card.center .logo { opacity: 0; }
.hex-card.center .title { opacity: 1; }
.hex-card.left:hover, .hex-card.right:hover { opacity: .75; }
.hex-card.center:hover { transform: translateX(0) scale(1.05) translateZ(30px); }
.hex-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 10;
  font-size: 28px; color: #fff; background: transparent; border: 0; cursor: pointer; padding: 0 10px;
}
.hex-nav.prev { left: 20px; } .hex-nav.next { right: 20px; }

/* ---------- Numeri ---------- */
.numbers { padding: 38px 20px 70px; }
.numbers-grid { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 1000px; margin: 50px auto 0; gap: 64px; }
.num-item { display: flex; flex-direction: column; align-items: center; }
.num-item img { width: 45px; margin-bottom: 28px; }
.num-value { color: var(--teal); font-size: 36px; font-weight: 800; line-height: 1.05; letter-spacing: .4px; font-variant-numeric: tabular-nums; }
.num-label { color: var(--teal); margin-top: 8px; font-size: clamp(15px, 1.6vw, 19px); }

/* ---------- Contattaci (banda con foto) ---------- */
.contact-band {
  position: relative; min-height: 419px; display: flex; align-items: center;
  background: url("../img/bg-contattaci.jpg") right center / cover no-repeat;
}
.contact-band::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,.92) 0%, rgba(255,255,255,.85) 30%, rgba(255,255,255,0) 60%);
}
.contact-band .inner { position: relative; padding: 50px 73px; max-width: 480px; }
.contact-band h2 { font-size: 37px; font-weight: 700; margin-bottom: 24px; }
.contact-band p { font-size: 17px; line-height: 1.6; margin-bottom: 36px; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { position: relative; background: var(--footer); color: #fff; overflow: hidden; min-height: 434px; }
.site-footer .hex {
  position: absolute; width: 224px; height: 194px; background: rgba(255,255,255,.07);
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
}
.footer-top { position: relative; display: flex; justify-content: space-between; gap: 30px; padding: 33px 34px 0; }
.footer-brand { display: flex; gap: 13px; align-items: flex-start; }
.footer-brand img { width: 141px; }
.footer-brand p { font-size: 16px; font-weight: 500; line-height: 1.5; margin-top: 16px; }
.footer-brand p strong { font-weight: 700; }
.footer-quote { font-size: 20.5px; font-weight: 700; text-align: right; max-width: 415px; line-height: 1.45; }
.footer-bottom { position: relative; display: flex; justify-content: space-between; align-items: flex-end; margin-top: 120px; }
.footer-panel {
  width: 660px; max-width: 100%; padding: 30px 34px 26px 44px;
  background: rgba(255,255,255,.12); border-top-right-radius: 26px;
  display: grid; grid-template-columns: 1fr auto; gap: 18px 20px; align-items: end;
}
.footer-contacts { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.footer-contacts li { display: flex; align-items: center; gap: 14px; font-size: 11.4px; font-weight: 700; }
.footer-contacts svg { width: 18px; height: 18px; fill: #fff; flex: none; }
.footer-contacts a { text-decoration: underline; text-underline-offset: 2px; }
.footer-right-col { display: flex; flex-direction: column; align-items: flex-end; gap: 24px; }
.socials { display: flex; gap: 18px; }
.socials a { display: block; width: 34px; height: 34px; transition: transform .2s, opacity .2s; }
.socials a:hover { transform: translateY(-2px); opacity: .85; }
.address { font-size: 12.5px; font-weight: 700; text-align: right; }
.footer-legal { padding: 0 34px 30px; display: flex; flex-direction: column; align-items: flex-end; gap: 28px; }
.footer-legal .links { display: flex; gap: 22px; }
.footer-legal .links a { min-width: 162px; height: 36px; font-size: 11px; color: #000; background: #fff; }
.footer-legal .copy { font-size: 12.5px; font-weight: 700; text-align: right; }

/* =========================================================
   PAGINE INTERNE
   ========================================================= */
.page-head { background: var(--grey-bg); padding: 51px 20px 50px; text-align: center; }
.page-head.white { background: #fff; }

/* Servizi */
.services-list { background: var(--grey-bg); padding: 30px 20px 90px; }
.service { display: grid; grid-template-columns: 80px 1fr; gap: 57px; max-width: 1061px; margin: 0 auto 90px; }
.service:last-child { margin-bottom: 0; }
.service .icon { width: 80px; height: 80px; margin-top: 16px; }
.service h2 { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.service p { font-size: 16px; line-height: 1.6; margin-bottom: 4px; }
.service ul { list-style: none; padding: 0; margin: 22px 0 22px; }
.service li { position: relative; padding-left: 30px; margin-bottom: 14px; font-size: 16px; line-height: 1.6; }
.service li::before { content: ""; position: absolute; left: 4px; top: .55em; width: 10px; height: 10px; border-radius: 50%; background: var(--teal); }

/* Team */
.team-hero { padding: 57px 20px 140px; --veil: .55; }
.team-grid { display: flex; justify-content: center; gap: 69px; margin-top: 80px; flex-wrap: wrap; }
.member { width: 176px; text-align: center; text-decoration: none; color: inherit; }
.member img { width: 176px; height: 176px; object-fit: cover; border-radius: 10px; transition: transform .3s, box-shadow .3s; }
.member:hover img { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(0,0,0,.15); }
.member h3 { color: var(--teal); font-size: 19px; font-weight: 700; margin-top: 21px; white-space: nowrap; }
.member p { font-size: 13px; margin-top: 8px; }
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 110px; max-width: 1200px; margin: 0 auto; padding: 39px 20px 90px; }
.about h2 { font-size: 26px; font-weight: 700; text-align: center; margin-bottom: 46px; }
.about p { font-size: 17px; text-align: justify; line-height: 1.6; }
.dark-band {
  position: relative; color: #fff; text-align: center; padding: 73px 20px 110px;
  background: url("../img/bg-lavora-team.jpg") center / cover no-repeat;
}
.dark-band::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.55); }
.dark-band > * { position: relative; }
.dark-band h2 { font-size: 36px; font-weight: 700; margin-bottom: 58px; }
.dark-band p { font-size: 17px; font-weight: 700; text-align: justify; max-width: 530px; margin: 0 auto; line-height: 1.6; }
.dark-band a { text-decoration: underline; }

/* Curriculum */
.cv-head { text-align: center; padding: 24px 20px 50px; }
.cv-head img { width: 235px; height: 229px; object-fit: cover; margin: 0 auto 20px; border-radius: 6px; }
.cv-head h1 { font-size: 37px; font-weight: 700; }
.cv-head .role { font-size: 18px; margin-top: 30px; }
.cv-body { max-width: 1060px; margin: 0 auto; padding: 10px 20px 90px; }
.cv-body p { font-size: 16px; text-align: justify; line-height: 1.6; }
.back-link { display: inline-block; margin-top: 40px; color: var(--teal); font-weight: 600; text-decoration: none; }
.back-link:hover { text-decoration: underline; }

/* Come lavoriamo */
.how-hero { padding: 57px 20px 140px; --veil: .62; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); max-width: 1440px; margin: 72px auto 0; gap: 20px; align-items: start; }
.step:nth-child(even) { margin-top: 86px; }
.step .hexnum {
  width: 80px; height: 70px; margin: 0 auto 14px; display: grid; place-items: center;
  background: var(--teal); color: #fff; font-size: 36px; font-weight: 700;
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
}
.step h3 { font-size: 22px; font-weight: 700; margin-bottom: 20px; }
.step p { font-size: 16px; max-width: 250px; margin: 0 auto; }

/* FAQ */
.faq { max-width: 1276px; margin: 0 auto; padding: 65px 20px 90px; }
.faq h2 { font-size: 26px; font-weight: 700; margin-bottom: 24px; }
.faq details { border-bottom: 1px solid #e3e3e3; }
.faq details:first-of-type { border-top: 1px solid #e3e3e3; }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 24px 0; font-size: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 9px; height: 9px; border-right: 1.5px solid #000; border-bottom: 1.5px solid #000; transform: rotate(45deg); transition: transform .3s; flex: none; margin-right: 6px; }
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq .answer { padding: 0 0 26px; font-size: 16px; line-height: 1.6; color: #222; }

/* News & blog */
.blog { padding: 0 20px 90px; }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(263px, 1fr)); gap: 32px; max-width: 1200px; margin: 60px auto 0; }
.post-card { border: 1px solid #e6e6e6; text-decoration: none; color: inherit; display: flex; flex-direction: column; transition: box-shadow .3s; background: #fff; }
.post-card:hover { box-shadow: 0 10px 26px rgba(0,0,0,.08); }
.post-card img { width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.post-card .body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.post-meta { display: flex; align-items: center; gap: 8px; font-size: 11px; }
.post-meta img { width: 42px; aspect-ratio: auto; }
.post-meta .author { font-weight: 700; }
.post-meta .date { margin-left: auto; font-weight: 500; }
.post-card h3 { font-size: 17px; font-weight: 700; }
.post-card p { font-size: 14px; }
.post { max-width: 1200px; margin: 0 auto; padding: 60px 20px 90px; }
.post-top { display: grid; grid-template-columns: 1fr 1.6fr; gap: 47px; align-items: start; }
.post-top h1 { font-size: 42px; font-weight: 400; }
.post-top img.cover { width: 100%; height: auto; }
.post-content { margin-top: 60px; font-size: 18px; line-height: 1.7; }
.post-content p { margin-bottom: 1em; }
.post-nav { display: flex; justify-content: space-between; margin-top: 60px; border-top: 1px solid #ddd; padding-top: 30px; }
.post-nav a { font-size: 13px; padding: 8px 16px; border: 1px solid #ddd; text-decoration: none; }
.empty { text-align: center; color: #666; margin-top: 40px; }

/* Lavora con noi */
.join { --veil: .6; min-height: 667px; padding: 70px 20px; }
.join .text { max-width: 640px; margin: 140px auto 0; font-size: 18px; line-height: 1.6; }
.join .text p + p { margin-top: 4px; }
.join .text a { color: var(--teal); font-weight: 600; }

/* Contatti */
.info-hero { padding: 36px 20px 42px; --veil: .55; min-height: 538px; }
.info-contacts { display: flex; justify-content: center; gap: 60px; flex-wrap: wrap; margin-top: 255px; font-size: 16px; font-weight: 700; }
.info-contacts a { text-decoration: none; }
.info-contacts a:hover { color: var(--teal); }
.info-hero .btn { margin-top: 50px; }
.map-wrap { position: relative; height: 537px; background: #e9eef0; }
.map-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-card {
  position: absolute; left: 50px; top: 50px; z-index: 2; background: #fff; padding: 28px 26px;
  box-shadow: 0 4px 20px rgba(0,0,0,.12); max-width: 470px;
}
.map-card .addr { font-size: 16px; font-weight: 700; margin-bottom: 18px; }
.map-card .hours { font-size: 14px; line-height: 1.5; }
.map-consent { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 20px; background: #e9eef0 url("../img/bg-contatti-scrivania.jpg") center / cover; }
.map-consent::before { content: ""; position: absolute; inset: 0; background: rgba(255,255,255,.75); }
.map-consent > div { position: relative; max-width: 420px; }
.map-consent p { font-size: 14px; margin: 0 0 16px; }
.social-band {
  position: relative; text-align: center; color: #fff; padding: 67px 20px 80px;
  background: #000 url("../img/bg-contatti-scrivania.jpg") center / cover no-repeat;
}
.social-band::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.55); }
.social-band > * { position: relative; }
.social-band .socials { justify-content: center; gap: 57px; margin-top: 58px; }
.social-band .socials a { width: 74px; height: 74px; }

/* Form */
.form-hero {
  position: relative; min-height: 708px; padding: 49px 20px 80px;
  background: url("../img/bg-modulo-contatto.jpg") center / cover no-repeat;
}
.form-hero::before { content: ""; position: absolute; inset: 0; background: rgba(240,240,240,.25); }
.form-hero > * { position: relative; }
.form-hero h1 { color: #fff; font-size: 37px; font-weight: 700; text-align: center; text-shadow: 0 2px 12px rgba(0,0,0,.25); }
.form { display: grid; gap: 22px; }
.form-hero .form { max-width: 550px; margin: 70px auto 0; }
.field label { display: block; font-size: 14px; margin-bottom: 6px; }
.form-hero .field label { color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.35); }
.field label .req { color: inherit; }
.field input, .field textarea, .field select {
  width: 100%; font: 400 14px var(--font); padding: 10px 12px; border: 1px solid #000; border-radius: 6px; background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(0,140,149,.18); }
.field textarea { min-height: 76px; resize: vertical; }
.form .btn { width: 100%; height: 40px; font-size: 14px; }
.form-msg { font-size: 14px; padding: 12px 14px; border-radius: 6px; display: none; }
.form-msg.ok { display: block; background: #e6f6f7; color: #005c62; }
.form-msg.err { display: block; background: #fdecec; color: #8a1c1c; }
.hp { position: absolute; left: -9999px; }
.form-page { max-width: 1440px; padding: 42px 44px 90px; }
.form-page h1 { font-size: 26px; font-weight: 700; }
.form-page .intro { font-size: 16px; margin-top: 10px; max-width: 630px; }
.form-page h2 { font-size: 23px; font-weight: 700; margin-top: 50px; }
.form-page .form { max-width: 648px; margin-top: 40px; gap: 26px; }
.form-page .field input { height: 48px; }
.form-page .field textarea { min-height: 108px; }
.form-page .btn { height: 47px; }

/* People */
.people-hero { padding: 61px 20px 64px; --veil: .7; }
.people-hero .logo { width: 178px; margin: 0 auto 18px; }
.people-hero .kicker { color: var(--teal); font-size: 37px; font-weight: 700; letter-spacing: 3px; }
.people-hero h1 { font-size: 37px; font-weight: 700; max-width: 743px; margin: 10px auto 0; }
.people-hero .quote { font-size: 18px; margin-top: 85px; }
.people-hero .btn { margin-top: 58px; min-width: 369px; height: 40px; }
.people-what { position: relative; padding: 54px 20px 80px; background: url("../img/bg-people-cos.jpg") center / cover no-repeat; }
.people-what::before { content: ""; position: absolute; inset: 0; background: rgba(240,240,240,.81); }
.people-what > * { position: relative; }
.people-what .text { max-width: 840px; margin: 58px auto 0; }
.people-what p { font-size: 17px; text-align: justify; line-height: 1.6; }
.people-services { padding: 42px 20px 80px; }
.ps-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px 60px; max-width: 1222px; margin: 70px auto 0; }
.ps-item img { width: 58px; margin: 0 auto 40px; }
.ps-item h3 { color: var(--teal); font-size: 22px; font-weight: 700; text-align: center; margin-bottom: 25px; }
.ps-item p { font-size: 16px; text-align: justify; line-height: 1.6; }

/* ---------- Animazioni d'ingresso (come su Wix) ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .75s ease, transform .75s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .12s; } .reveal.d2 { transition-delay: .24s; } .reveal.d3 { transition-delay: .36s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Cookie banner ---------- */
.cookie-bar {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 300; max-width: 560px;
  background: #fff; box-shadow: 0 8px 30px rgba(0,0,0,.18); border-radius: 10px; padding: 18px 20px;
  font-size: 13px; line-height: 1.5; display: none;
}
.cookie-bar.show { display: block; }
.cookie-bar .actions { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.cookie-bar .btn { min-width: 0; height: 34px; font-size: 12px; }
.cookie-bar .btn-outline { background: #fff; color: #000; box-shadow: inset 0 0 0 1px #ccc; }
.cookie-bar a { color: var(--teal); }
.to-top {
  position: fixed; right: 16px; bottom: 16px; z-index: 90; width: 38px; height: 38px; border-radius: 6px 6px 0 0;
  background: #fff; border: 0; box-shadow: 0 2px 10px rgba(0,0,0,.15); cursor: pointer; display: grid; place-items: center;
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.to-top.show { opacity: 1; visibility: visible; }
.to-top svg { width: 16px; fill: var(--teal); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1100px) {
  .main-nav a { padding: 4px 9px; font-size: 14px; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 50px; }
  .step:nth-child(even) { margin-top: 0; }
}
@media (max-width: 960px) {
  .main-nav, .header-cta .btn { display: none; }
  .burger { display: block; }
  .site-header { padding: 0 16px; }
  .brand img { width: 64px; }
  .brand span { display: none; }
  .site-header.people .brand span { display: inline; font-size: 11px; }
}
@media (max-width: 760px) {
  :root { --header-h: 66px; }
  .section-title, .home-hero h1, .people-hero h1, .people-hero .kicker, .cv-head h1, .form-hero h1, .contact-band h2 { font-size: 28px; }
  .home-hero { padding-top: 40px; }
  .home-hero .logo { width: 150px; margin-bottom: 30px; }
  .home-hero .quote { margin-top: 36px; font-size: 16px; }
  .brush { white-space: normal; }
  .hero-buttons { flex-direction: column; align-items: center; gap: 22px; }
  .vm { grid-template-columns: 1fr; margin-top: 80px; gap: 60px; padding-bottom: 60px; }
  .services-band { height: 520px; }
  .hex-carousel { --card-w: min(78vw, 320px); --x-mult: 1.05; overflow: hidden; width: 100vw; }
  .numbers-grid { grid-template-columns: 1fr; gap: 34px; }
  .num-item img { width: 36px; margin-bottom: 8px; }
  .contact-band::before { background: rgba(255,255,255,.85); }
  .contact-band .inner { padding: 50px 16px; }
  .footer-top { flex-direction: column; padding: 30px 16px 0; }
  .footer-brand { flex-direction: column; }
  .footer-quote { text-align: left; }
  .footer-bottom { flex-direction: column; align-items: stretch; margin-top: 50px; gap: 30px; }
  .footer-panel { grid-template-columns: 1fr; padding: 26px 16px; border-radius: 0; }
  .footer-right-col { align-items: flex-start; }
  .address { text-align: left; }
  .footer-legal { align-items: flex-start; padding: 0 16px; }
  .footer-legal .links { flex-wrap: wrap; gap: 12px; }
  .footer-legal .copy { text-align: left; }
  .service { grid-template-columns: 1fr; gap: 10px; margin-bottom: 60px; }
  .service .icon { margin: 0; }
  .team-grid { gap: 40px 24px; }
  .member { width: 150px; } .member img { width: 150px; height: 150px; }
  .member h3 { font-size: 16px; white-space: normal; }
  .about { grid-template-columns: 1fr; gap: 50px; }
  .about h2 { margin-bottom: 20px; }
  .steps { grid-template-columns: 1fr; }
  .post-top { grid-template-columns: 1fr; }
  .post-top h1 { font-size: 30px; }
  .info-contacts { flex-direction: column; gap: 14px; margin-top: 120px; }
  .map-wrap { height: auto; display: flex; flex-direction: column; }
  .map-card { position: static; max-width: none; box-shadow: none; }
  .map-wrap .map-area { position: relative; height: 380px; }
  .social-band .socials { gap: 30px; }
  .form-page { padding: 30px 16px 70px; }
  .people-hero .btn { min-width: 0; width: 100%; max-width: 369px; height: auto; padding: 12px 16px; line-height: 1.3; }
  .ps-grid { grid-template-columns: 1fr; }
  .join .text { margin-top: 70px; }
  .cookie-bar { left: 12px; right: 12px; }
}
@media (min-width: 761px) { .map-wrap .map-area { position: absolute; inset: 0; } }

/* ---------- Form dinamici (creati dall'area riservata) ---------- */
.form-loading { font-size: 14px; color: #666; }
.form-hero .form-loading { color: #fff; }
.field.choices { border: 0; padding: 0; margin: 0; }
.field.choices legend { font-size: 14px; margin-bottom: 8px; padding: 0; }
.form-hero .field.choices legend, .form-hero .choice { color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.35); }
.choice { display: flex !important; align-items: flex-start; gap: 10px; font-size: 14px; margin-bottom: 6px; cursor: pointer; }
.choice input { width: 18px !important; height: 18px; margin: 2px 0 0; accent-color: var(--teal); flex: none; }
.form-page .field select { height: 48px; }

/* ---------- Blog da database ---------- */
.post-noimg { aspect-ratio: 3/2; background: #f2f4f5; display: grid; place-items: center; }
.post-noimg img { width: 90px !important; aspect-ratio: auto !important; opacity: .5; }
.post-top.no-cover { grid-template-columns: 1fr; }
.post-content h2 { font-size: 24px; font-weight: 700; margin: 1.4em 0 .5em; }
.post-content ul { margin: 0 0 1em; padding-left: 1.3em; }
.post-content li { margin-bottom: .35em; }
.post-content a { color: var(--teal); }

/* ---------- Ultime notizie (home) e galleria carosello ---------- */
.latest { padding: 70px 20px 80px; background: var(--grey-bg); }
.latest .blog-grid { margin-top: 44px; }
.post-gallery { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; margin-top: 40px; padding-bottom: 10px; }
.post-gallery a { flex: 0 0 min(300px, 75vw); scroll-snap-align: start; }
.post-gallery img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 10px; box-shadow: 0 4px 16px rgba(0,0,0,.1); }
