/* ==========================================================================
   Grandi e Piccini Services – stile principale
   Palette ricavata dal logo. Non aggiungere colori fuori da questi token.
   ========================================================================== */

/* Coolvetica: i file vanno messi in assets/fonts/ SOLO dopo aver acquistato
   la licenza webfont Typodermic (la licenza desktop non copre l'uso web).
   Finché i file mancano, il sito usa il font di riserva indicato in --font-display. */
@font-face {
  font-family: "Coolvetica";
  src: url("../fonts/coolvetica-rg.woff2") format("woff2"),
       url("../fonts/coolvetica-rg.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Coolvetica Compressed";
  src: url("../fonts/coolvetica-hv-comp.woff2") format("woff2"),
       url("../fonts/coolvetica-hv-comp.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Colori del logo */
  --navy: #1e2f5a;
  --red: #e31d24;
  --red-dark: #c3161c;
  --cyan: #17aee3;
  --sky: #cde9f5;
  --coral: #ee6b52;
  /* Neutri */
  --sky-soft: #f1f8fc;
  --white: #ffffff;
  --text: #3d4862;
  --muted: #69738a;
  --line: #dde8f0;

  --font-display: "Coolvetica", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-number: "Coolvetica Compressed", "Coolvetica", "Helvetica Neue", Arial, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius-s: 10px;
  --radius: 16px;
  --radius-l: 26px;
  --shadow: 0 10px 30px -12px rgba(30, 47, 90, .22);
  --shadow-l: 0 24px 50px -20px rgba(30, 47, 90, .30);
  --shell: min(100% - 32px, 1180px);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --header-h: 84px;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-underline-offset: .2em; }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--navy);
  line-height: 1.08;
  letter-spacing: -.01em;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.4rem, 5.4vw, 4.2rem); }
h2 { font-size: clamp(2rem, 3.8vw, 3rem); }
h3 { font-size: clamp(1.35rem, 2vw, 1.7rem); }
p { margin: 0 0 1em; }
.shell { width: var(--shell); margin-inline: auto; }
.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link:focus {
  position: fixed; top: 10px; left: 10px; z-index: 1000; width: auto; height: auto; clip: auto;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: var(--radius-s);
}
.section { padding-block: clamp(64px, 9vw, 120px); }
.section--soft { background: var(--sky-soft); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto clamp(36px, 5vw, 56px); }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .82rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.section-head .eyebrow::after { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.18rem); color: var(--text); }
.placeholder-note {
  border: 2px dashed var(--sky); border-radius: var(--radius); padding: 18px 20px;
  color: var(--muted); background: var(--white); font-size: .95rem;
}
.placeholder-note strong { color: var(--navy); }

/* --------------------------------------------------------------------------
   Pulsanti
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--navy); --btn-fg: #fff; --btn-bd: var(--navy);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 12px 26px;
  font: 700 1rem/1.2 var(--font-body); text-decoration: none; letter-spacing: .01em;
  color: var(--btn-fg); background: var(--btn-bg); border: 2px solid var(--btn-bd);
  border-radius: 12px; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s, color .25s, border-color .25s;
}
.btn:hover { color: var(--btn-fg); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--red { --btn-bg: var(--red); --btn-bd: var(--red); }
.btn--red:hover { --btn-bg: var(--red-dark); --btn-bd: var(--red-dark); }
.btn--outline { --btn-bg: transparent; --btn-fg: var(--navy); --btn-bd: var(--navy); }
.btn--outline:hover { --btn-bg: var(--navy); --btn-fg: #fff; }
.btn--white { --btn-bg: #fff; --btn-fg: var(--navy); --btn-bd: #fff; }
.btn--lg { min-height: 58px; padding: 14px 32px; font-size: 1.06rem; }
.btn[disabled], .btn.is-loading { opacity: .7; pointer-events: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; color: var(--red); text-decoration: none;
}
.link-arrow svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   Header e navigazione
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px -18px rgba(30, 47, 90, .5); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }

/* Logo orizzontale ricavato dal logo ufficiale (illustrazione + scritta) */
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand svg { display: block; height: auto; }
.brand__mark { width: 64px; }
.brand__word { width: 190px; }
.brand img.custom-logo { max-height: 70px; width: auto; }

.main-nav { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.menu, .menu ul { list-style: none; margin: 0; padding: 0; }
.main-nav .menu { display: flex; align-items: center; gap: 4px; }
.main-nav .menu > li { position: relative; }
.main-nav .menu > li > a,
.main-nav .submenu-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 14px; border-radius: 10px;
  font-weight: 600; font-size: 1rem; color: var(--navy); text-decoration: none;
  background: none; border: 0; cursor: pointer; font-family: inherit;
  transition: background-color .2s, color .2s;
}
.main-nav .menu > li > a:hover,
.main-nav .submenu-toggle:hover,
.main-nav .menu > li.current-menu-item > a,
.main-nav .menu > li.current-menu-ancestor > .submenu-toggle,
.main-nav .menu > li.current-menu-ancestor > a { background: var(--sky-soft); color: var(--navy); }
.submenu-toggle svg { width: 14px; height: 14px; transition: transform .25s var(--ease); }
.has-dropdown.is-open > .submenu-toggle svg { transform: rotate(180deg); }
.main-nav .sub-menu {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 250px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-l); padding: 8px;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
}
.main-nav .sub-menu::before { content: ""; position: absolute; inset: -10px 0 auto; height: 10px; }
.has-dropdown:hover > .sub-menu,
.has-dropdown:focus-within > .sub-menu,
.has-dropdown.is-open > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.main-nav .sub-menu a {
  display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 10px;
  color: var(--navy); text-decoration: none; font-weight: 600;
}
.main-nav .sub-menu a::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); flex: none;
  transition: background-color .2s;
}
.main-nav .sub-menu a:hover, .main-nav .sub-menu .current-menu-item > a { background: var(--sky-soft); }
.main-nav .sub-menu a:hover::before { background: var(--red); }

.nav-cta { margin-left: 18px; }
.nav-cta .btn { min-height: 46px; padding: 10px 22px; border-radius: 10px; }

.menu-toggle {
  display: none; margin-left: auto; width: 48px; height: 48px; border-radius: 12px;
  border: 1.5px solid var(--line); background: #fff; cursor: pointer; position: relative;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  position: absolute; left: 50%; top: 50%; width: 22px; height: 2px; margin-left: -11px;
  background: var(--navy); border-radius: 2px; transition: transform .3s var(--ease), background-color .2s;
}
.menu-toggle span::before, .menu-toggle span::after { content: ""; margin: 0; left: 0; }
.menu-toggle span::before { transform: translateY(-7px); }
.menu-toggle span::after { transform: translateY(7px); }
.menu-open .menu-toggle span { background: transparent; }
.menu-open .menu-toggle span::before { transform: rotate(45deg); }
.menu-open .menu-toggle span::after { transform: rotate(-45deg); }

@media (max-width: 1020px) {
  :root { --header-h: 72px; }
  .brand__mark { width: 52px; }
  .brand__word { width: 160px; }
  .menu-toggle { display: block; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; margin: 0;
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-top: 1px solid var(--line); box-shadow: var(--shadow-l);
    padding: 12px 16px 24px;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
  }
  .admin-bar .main-nav { top: calc(var(--header-h) + 46px); }
  .menu-open .main-nav { opacity: 1; visibility: visible; transform: none; }
  .main-nav .menu { flex-direction: column; align-items: stretch; gap: 2px; }
  .main-nav .menu > li > a, .main-nav .submenu-toggle {
    width: 100%; justify-content: space-between; padding: 15px 14px; font-size: 1.08rem;
  }
  .main-nav .sub-menu {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; padding: 0 0 0 12px; min-width: 0;
    display: none;
  }
  .has-dropdown:hover > .sub-menu, .has-dropdown:focus-within > .sub-menu { display: none; }
  .has-dropdown.is-open > .sub-menu { display: block; }
  .nav-cta { margin: 14px 0 0; }
  .nav-cta .btn { width: 100%; min-height: 54px; font-size: 1.06rem; }
  body.menu-open { overflow: hidden; }
}
@media (max-width: 400px) {
  .brand__mark { width: 44px; }
  .brand__word { width: 138px; }
}

/* --------------------------------------------------------------------------
   Separatore ondulato
   -------------------------------------------------------------------------- */
.wave { display: block; width: 100%; height: clamp(34px, 5vw, 60px); color: var(--cyan); overflow: visible; }
.wave path { fill: none; stroke-linecap: round; }
.wave .wave__a { stroke: var(--sky); stroke-width: 6; }
.wave .wave__b { stroke: currentColor; stroke-width: 2.5; }
.wave--red { color: var(--red); }
.wave-wrap { padding-block: 8px; }
.wave .wave__b { stroke-dasharray: 2400; stroke-dashoffset: 2400; transition: stroke-dashoffset 2.2s var(--ease); }
.wave.is-visible .wave__b, .no-js .wave .wave__b { stroke-dashoffset: 0; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero { padding-block: clamp(36px, 6vw, 80px) clamp(28px, 4vw, 48px); position: relative; }
.hero__grid { display: grid; grid-template-columns: 1.08fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__media { position: relative; }
.hero__media::before {
  content: ""; position: absolute; inset: 8% -4% -6% 8%; border-radius: var(--radius-l);
  background: var(--sky); z-index: -1;
}
.hero__media img {
  width: 100%; aspect-ratio: 4 / 3.3; object-fit: cover; border-radius: var(--radius-l); box-shadow: var(--shadow-l);
}
.hero__badge {
  position: absolute; left: -18px; bottom: 26px; display: flex; align-items: center; gap: 12px;
  background: #fff; padding: 12px 18px 12px 12px; border-radius: 14px; box-shadow: var(--shadow);
  font-weight: 700; color: var(--navy); font-size: .95rem;
}
.hero__badge i {
  width: 38px; height: 38px; border-radius: 50%; background: var(--red); color: #fff;
  display: grid; place-items: center; font-style: normal;
}
.hero__badge i svg { width: 20px; height: 20px; }
.hero__text h1 { margin-bottom: .35em; }
.hero__text h1 em { font-style: normal; color: var(--red); }
.hero__text .lead { max-width: 34em; margin-bottom: 30px; }
.hero__services { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 0; padding: 0; list-style: none; }
.hero__services li {
  padding: 6px 14px; border-radius: 999px; background: var(--sky-soft); color: var(--navy);
  font-weight: 600; font-size: .9rem; border: 1px solid var(--line);
}

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__text { order: -1; }
  .hero__media { margin-right: 10px; }
  .hero__badge { left: 12px; bottom: 14px; }
}

/* --------------------------------------------------------------------------
   Card servizi
   -------------------------------------------------------------------------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.4vw, 30px); }
.service-card {
  position: relative; display: flex; flex-direction: column; background: #fff;
  border-radius: var(--radius-l); overflow: hidden; border: 1px solid var(--line);
  text-decoration: none; color: inherit;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-l); border-color: transparent; color: inherit; }
.service-card__img { aspect-ratio: 4 / 3.2; overflow: hidden; background: var(--sky); }
.service-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.service-card:hover .service-card__img img { transform: scale(1.05); }
.service-card__body { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 24px 24px; }
.service-card h3 { margin: 0; }
.service-card__arrow {
  flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: var(--sky-soft); color: var(--navy); transition: background-color .3s, color .3s, transform .3s var(--ease);
}
.service-card__arrow svg { width: 20px; height: 20px; }
.service-card:hover .service-card__arrow { background: var(--red); color: #fff; transform: rotate(-45deg); }
.service-card__more { font-size: .92rem; font-weight: 700; color: var(--red); display: block; margin-top: 4px; }
@media (max-width: 900px) {
  .services-grid { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
}

/* --------------------------------------------------------------------------
   Recensioni (carosello a scorrimento continuo)
   -------------------------------------------------------------------------- */
.reviews { overflow: hidden; }
.reviews__head { display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.reviews__head .section-head { text-align: left; margin: 0; }
.reviews__head .section-head .eyebrow::after { display: none; }
.reviews__controls { display: flex; gap: 10px; }
.reviews__btn {
  width: 50px; height: 50px; border-radius: 50%; border: 1.5px solid var(--navy); background: #fff; color: var(--navy);
  display: grid; place-items: center; cursor: pointer; transition: background-color .2s, color .2s;
}
.reviews__btn:hover { background: var(--navy); color: #fff; }
.reviews__btn svg { width: 20px; height: 20px; }
.reviews__viewport {
  overflow: hidden; cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none;
  padding-block: 10px 24px;
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.reviews__viewport.is-dragging { cursor: grabbing; }
.reviews__track { display: flex; gap: 22px; width: max-content; will-change: transform; }
.reviews__track.is-static { width: 100%; justify-content: center; flex-wrap: wrap; }
.reviews__viewport.is-static-wrap { mask-image: none; -webkit-mask-image: none; cursor: default; }
.review-card {
  width: min(380px, 82vw); flex: none; background: #fff; border-radius: var(--radius-l);
  padding: 28px 28px 24px; border: 1px solid var(--line); box-shadow: 0 8px 24px -18px rgba(30, 47, 90, .35);
  display: flex; flex-direction: column; gap: 14px;
}
.review-card__stars { display: flex; gap: 3px; color: #f5b301; }
.review-card__stars svg { width: 20px; height: 20px; }
.review-card__stars .is-off { color: var(--line); }
.review-card__text { margin: 0; color: var(--text); flex: 1; }
.review-card__text::before { content: "“"; display: block; font: 3rem/0.6 Georgia, serif; color: var(--cyan); margin: 8px 0 4px; }
.review-card__foot { display: flex; align-items: center; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.review-card__avatar {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--sky); color: var(--navy); font-weight: 700;
}
.review-card__name { font-weight: 700; color: var(--navy); display: block; line-height: 1.3; }
.review-card__date { font-size: .88rem; color: var(--muted); }
.review-card__demo {
  align-self: flex-start; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  background: var(--sky-soft); color: var(--muted); padding: 3px 10px; border-radius: 999px;
}
.reviews__google { text-align: center; margin-top: 28px; }
.btn--google { --btn-bg: #fff; --btn-fg: var(--navy); --btn-bd: var(--line); }
.btn--google:hover { --btn-bd: var(--navy); }
.btn--google .g-logo { width: 20px; height: 20px; }
.btn--google:hover .g-logo { transform: none; }

/* --------------------------------------------------------------------------
   Milano + mappa
   -------------------------------------------------------------------------- */
.milano__grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(24px, 3vw, 40px); align-items: stretch; }
.milano__info { display: flex; flex-direction: column; gap: 22px; }
.milano__card {
  background: #fff; border-radius: var(--radius-l); padding: clamp(26px, 3vw, 38px);
  border: 1px solid var(--line);
}
.milano__card--navy { background: var(--navy); color: #dfe8f5; border-color: var(--navy); }
.milano__card--navy h3 { color: #fff; }
.milano__card--navy .btn { margin-top: 6px; }
.contact-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .ico {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none;
  background: var(--sky-soft); color: var(--navy);
}
.contact-list .ico svg { width: 20px; height: 20px; }
.contact-list small { display: block; color: var(--muted); font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.contact-list a, .contact-list span.val { color: var(--navy); font-weight: 600; text-decoration: none; }
.contact-list a:hover { color: var(--red); }
.contact-list .is-missing { color: var(--muted); font-weight: 500; font-style: italic; }
.map-frame {
  position: relative; border-radius: var(--radius-l); overflow: hidden; min-height: 420px; height: 100%;
  background: var(--sky); border: 1px solid var(--line);
}
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-frame__pin {
  position: absolute; left: 16px; bottom: 16px; z-index: 2; background: #fff; border-radius: 14px; padding: 12px 16px;
  box-shadow: var(--shadow); font-weight: 700; color: var(--navy); display: flex; align-items: center; gap: 10px; font-size: .95rem;
  text-decoration: none;
}
.map-frame__pin:hover { color: var(--red); }
.map-frame__pin svg { width: 20px; height: 20px; color: var(--red); }
@media (max-width: 900px) {
  .milano__grid { grid-template-columns: 1fr; }
  .map-frame { min-height: 340px; }
}

/* --------------------------------------------------------------------------
   Split (Chi siamo, proprietari, pagine servizio)
   -------------------------------------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.split--reverse .split__media { order: 2; }
.split__media { position: relative; }
.split__media img { width: 100%; border-radius: var(--radius-l); object-fit: cover; }
.split__media--blob { isolation: isolate; }
.split__media--blob::before {
  content: ""; position: absolute; inset: 12% 4% 0 4%; border-radius: 999px 999px var(--radius-l) var(--radius-l);
  background: var(--sky); z-index: -1;
}
/* Le foto su fondo bianco si fondono con la forma azzurra retrostante */
.split__media--blob img { border-radius: 0 0 var(--radius-l) var(--radius-l); mix-blend-mode: multiply; }
.split__media--frame img { aspect-ratio: 4 / 4.4; box-shadow: var(--shadow-l); }
.split__text .btn { margin-top: 10px; }
.split__text .entry-content { color: var(--text); }
.subtitle { font-size: 1.2rem; color: var(--cyan); font-weight: 700; margin-top: -.2em; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
}

/* --------------------------------------------------------------------------
   Lavora con noi (richiamo in home)
   -------------------------------------------------------------------------- */
.join {
  position: relative; overflow: hidden; border-radius: var(--radius-l);
  background: var(--red); color: #fff; padding: clamp(36px, 6vw, 72px);
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center;
}
.join h2 { color: #fff; }
.join p { color: #ffe9e9; max-width: 38em; }
.join .eyebrow { color: #fff; }
.join__roles { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; position: relative; z-index: 1; }
.join__roles span {
  padding: 12px 20px; border-radius: 999px; background: rgba(255, 255, 255, .14);
  border: 1.5px solid rgba(255, 255, 255, .5); font-weight: 700; font-size: 1.05rem;
}
.join__deco { position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .25); }
.join__deco::after { content: ""; position: absolute; inset: 40px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .18); }
.join .btn--white:hover { --btn-bg: var(--navy); --btn-fg: #fff; --btn-bd: var(--navy); }
@media (max-width: 900px) {
  .join { grid-template-columns: 1fr; }
  .join__roles { justify-content: flex-start; order: -1; }
}

/* --------------------------------------------------------------------------
   Intestazione pagine interne
   -------------------------------------------------------------------------- */
.page-hero { padding-block: clamp(40px, 6vw, 80px) clamp(20px, 3vw, 32px); }
.page-hero .lead { max-width: 44em; color: var(--muted); }
.breadcrumbs { font-size: .9rem; color: var(--muted); margin-bottom: 18px; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--red); }
.breadcrumbs span[aria-hidden] { margin-inline: 8px; color: var(--cyan); }

/* Pagine servizio */
.service-hero { padding-block: clamp(36px, 5vw, 72px); }
.service-hero__grid { display: grid; grid-template-columns: .9fr 1.4fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.service-hero__title { position: sticky; top: calc(var(--header-h) + 32px); }
.service-hero__title h1 { margin-bottom: .3em; }
.service-hero__title .subtitle { margin-bottom: 0; }
.service-hero__body { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(22px, 3vw, 36px); align-items: start; }
.service-hero__body figure { margin: 0; }
.service-hero__body img { width: 100%; aspect-ratio: 4 / 4.6; object-fit: cover; border-radius: var(--radius-l); box-shadow: var(--shadow-l); }
.service-actions {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 16px;
  padding: clamp(32px, 4vw, 48px); background: var(--sky-soft); border-radius: var(--radius-l); text-align: center;
}
.service-actions p { flex-basis: 100%; margin: 0 0 6px; font-family: var(--font-display); font-size: clamp(1.4rem, 2.4vw, 1.9rem); color: var(--navy); }
.service-actions .btn--red { min-height: 60px; padding-inline: 38px; font-size: 1.1rem; box-shadow: 0 14px 30px -14px rgba(227, 29, 36, .7); }
@media (max-width: 1020px) {
  .service-hero__grid { grid-template-columns: 1fr; }
  .service-hero__title { position: static; }
}
@media (max-width: 640px) {
  .service-hero__body { grid-template-columns: 1fr; }
  .service-actions .btn { width: 100%; }
}

/* Contenuti editor */
.entry-content > *:last-child { margin-bottom: 0; }
.entry-content h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin-top: 1.4em; }
.entry-content h3 { margin-top: 1.2em; }
.entry-content ul { padding-left: 1.2em; }
.entry-content li::marker { color: var(--red); }
.entry-content img { border-radius: var(--radius); }
.content-narrow { max-width: 820px; }

/* --------------------------------------------------------------------------
   Chi siamo – Come lavoriamo
   -------------------------------------------------------------------------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; counter-reset: step; }
.step {
  position: relative; background: #fff; border-radius: var(--radius-l); padding: 30px 28px 28px;
  border: 1px solid var(--line); transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.step__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.step__num { font-family: var(--font-number); font-size: 3.4rem; line-height: 1; color: var(--sky); -webkit-text-stroke: 1.5px var(--cyan); }
.step__icon {
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center;
  background: var(--sky-soft); color: var(--red);
}
.step__icon svg { width: 26px; height: 26px; }
.step h3 { margin-bottom: .4em; }
.step p { margin: 0; color: var(--text); }
.steps-connector { display: none; }

/* Sezione conclusiva */
.closing {
  position: relative; overflow: hidden; text-align: center; border-radius: var(--radius-l);
  background: var(--navy); color: #d9e3f2; padding: clamp(44px, 7vw, 90px) clamp(24px, 5vw, 64px);
}
.closing h2 { color: #fff; max-width: 18em; margin-inline: auto; }
.closing p { max-width: 40em; margin: 0 auto 28px; }
.closing .wave { position: absolute; left: 0; right: 0; bottom: 18px; opacity: .5; }
.closing .wave .wave__a { stroke: rgba(205, 233, 245, .25); }

/* --------------------------------------------------------------------------
   Modulo candidatura
   -------------------------------------------------------------------------- */
.apply { display: grid; grid-template-columns: 1fr 2fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.apply__aside { position: sticky; top: calc(var(--header-h) + 28px); }
.apply__steps { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 4px; }
.apply__steps li { display: flex; align-items: center; gap: 12px; padding: 10px 0; color: var(--navy); font-weight: 600; }
.apply__steps li span {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--sky-soft); border: 1.5px solid var(--cyan); color: var(--navy); font-size: .85rem; font-weight: 700;
}
.gp-form { display: grid; gap: 22px; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-l); padding: clamp(22px, 3vw, 34px); }
.form-card legend, .form-card__title {
  display: flex; align-items: center; gap: 12px; padding: 0; margin-bottom: 20px;
  font-family: var(--font-display); font-size: 1.45rem; color: var(--navy);
}
.form-card legend b, .form-card__title b {
  width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: #fff;
  display: inline-grid; place-items: center; font: 700 .95rem var(--font-body);
}
fieldset.form-card { margin: 0; min-width: 0; }
fieldset.form-card > legend { float: left; width: 100%; }
fieldset.form-card > legend + * { clear: both; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
.field label, .field .label { display: block; font-weight: 600; color: var(--navy); margin-bottom: 7px; font-size: .97rem; }
.field .req { color: var(--red); }
.field input[type=text], .field input[type=email], .field input[type=tel], .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 16px; font: inherit; font-size: 1rem; color: var(--navy);
  background: var(--sky-soft); border: 1.5px solid var(--line); border-radius: 12px;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e2f5a' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--cyan); background-color: #fff; box-shadow: 0 0 0 4px rgba(23, 174, 227, .18);
}
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--red); background-color: #fff; }
.field-error { display: block; color: var(--red-dark); font-size: .88rem; font-weight: 600; margin-top: 6px; }
.field-hint { display: block; color: var(--muted); font-size: .86rem; margin-top: 6px; }

.role-question { font-size: 1.1rem; font-weight: 700; color: var(--navy); margin: 0 0 14px; }
.role-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.role-option { position: relative; }
.role-option input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 2; }
.role-option__box {
  display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center;
  padding: 22px 12px 20px; border-radius: var(--radius); border: 2px solid var(--line); background: #fff;
  transition: border-color .2s, background-color .2s, transform .2s var(--ease), box-shadow .2s;
}
.role-option__box .ico {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: var(--sky-soft); color: var(--navy); transition: background-color .2s, color .2s;
}
.role-option__box .ico svg { width: 28px; height: 28px; }
.role-option__box strong { color: var(--navy); font-size: 1.05rem; }
.role-option__check {
  position: absolute; top: 10px; right: 10px; width: 24px; height: 24px; border-radius: 50%;
  border: 2px solid var(--line); background: #fff; display: grid; place-items: center; color: #fff; transition: all .2s;
}
.role-option__check svg { width: 14px; height: 14px; opacity: 0; }
.role-option:hover .role-option__box { border-color: var(--cyan); transform: translateY(-2px); }
.role-option input:focus-visible + .role-option__box { box-shadow: 0 0 0 4px rgba(23, 174, 227, .3); }
.role-option input:checked + .role-option__box { border-color: var(--red); background: #fff6f6; box-shadow: var(--shadow); }
.role-option input:checked + .role-option__box .ico { background: var(--red); color: #fff; }
.role-option input:checked + .role-option__box .role-option__check { background: var(--red); border-color: var(--red); }
.role-option input:checked + .role-option__box .role-option__check svg { opacity: 1; }
.has-error .role-option__box { border-color: #f3b9bb; }

.upload {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  border: 2px dashed var(--cyan); background: var(--sky-soft); border-radius: var(--radius); padding: 22px;
  transition: background-color .2s, border-color .2s;
}
.upload.is-dragover { background: #e3f3fb; border-color: var(--navy); }
.upload.has-file { border-style: solid; border-color: var(--navy); background: #fff; }
.has-error .upload { border-color: var(--red); }
.upload input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.upload__btn { cursor: pointer; }
.upload__info { flex: 1; min-width: 200px; }
.upload__file { display: flex; align-items: center; gap: 8px; color: var(--navy); font-weight: 700; word-break: break-all; }
.upload__file svg { width: 20px; height: 20px; color: var(--red); flex: none; }
.upload__empty { color: var(--muted); }
.upload__remove {
  margin-left: 6px; border: 0; background: none; color: var(--muted); cursor: pointer; font-size: .9rem; text-decoration: underline;
}

.consent { display: flex; gap: 14px; align-items: flex-start; cursor: pointer; }
.consent input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--red); flex: none; cursor: pointer; }
.consent span { font-size: .97rem; }
.form-submit { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.form-submit .btn { min-height: 60px; padding-inline: 40px; font-size: 1.08rem; }
.form-submit small { color: var(--muted); }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.notice {
  display: flex; gap: 16px; align-items: flex-start; border-radius: var(--radius); padding: 20px 22px; margin-bottom: 22px;
}
.notice svg { width: 26px; height: 26px; flex: none; margin-top: 2px; }
.notice h3 { font-size: 1.3rem; margin: 0 0 .25em; }
.notice p { margin: 0; }
.notice--success { background: #eaf7f0; border: 1.5px solid #9fd6b8; color: #1d5236; }
.notice--success h3, .notice--success svg { color: #1d6b43; }
.notice--error { background: #fff3f3; border: 1.5px solid #f4b3b5; color: #7a1418; }
.notice--error h3, .notice--error svg { color: var(--red-dark); }
.notice ul { margin: 8px 0 0; padding-left: 1.1em; }

@media (max-width: 1020px) {
  .apply { grid-template-columns: 1fr; }
  .apply__aside { position: static; }
  .apply__steps { display: none; }
}
@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; }
  .role-options { grid-template-columns: 1fr; }
  .role-option__box { flex-direction: row; justify-content: flex-start; text-align: left; padding: 14px 16px; }
  .role-option__box .ico { width: 46px; height: 46px; }
  .role-option__check { top: 50%; transform: translateY(-50%); right: 16px; }
  .form-submit .btn { width: 100%; }
}

/* --------------------------------------------------------------------------
   Contatti (pagina)
   -------------------------------------------------------------------------- */
.contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; margin-bottom: 28px; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-l); padding: 24px; }
.contact-card .ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--sky-soft); color: var(--red); margin-bottom: 14px; }
.contact-card .ico svg { width: 22px; height: 22px; }
.contact-card small { display: block; color: var(--muted); font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.contact-card a, .contact-card .val { color: var(--navy); font-weight: 700; text-decoration: none; font-size: 1.08rem; word-break: break-word; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer { background: var(--navy); color: #c8d4e8; padding-top: clamp(56px, 7vw, 88px); position: relative; }
.site-footer::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 6px;
  background: linear-gradient(90deg, var(--navy) 0 33.3%, var(--red) 33.3% 66.6%, var(--cyan) 66.6%);
}
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--sky); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.2fr 1fr; gap: clamp(28px, 4vw, 56px); }
.footer-brand { background: #fff; display: inline-block; padding: 14px 18px; border-radius: var(--radius); margin-bottom: 18px; }
.footer-brand img { width: 120px; }
.footer-brand img.custom-logo { max-height: 120px; width: auto; }
.footer-col h4 { color: #fff; font-size: 1.2rem; margin-bottom: 18px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col p { font-size: .97rem; }
.footer-contacts li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contacts svg { width: 18px; height: 18px; color: var(--cyan); flex: none; margin-top: 4px; }
.footer-contacts .is-missing { color: #8b9bbb; font-style: italic; }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); transition: background-color .2s, transform .2s var(--ease);
}
.socials a:hover { background: var(--red); border-color: var(--red); color: #fff; transform: translateY(-2px); }
.socials svg { width: 19px; height: 19px; }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center;
  margin-top: clamp(40px, 5vw, 64px); padding-block: 24px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .9rem;
}
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; margin: 0; padding: 0; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Animazioni di comparsa
   -------------------------------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal[data-delay="1"] { transition-delay: .1s; }
.js .reveal[data-delay="2"] { transition-delay: .2s; }
.js .reveal[data-delay="3"] { transition-delay: .3s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .wave .wave__b { stroke-dashoffset: 0; }
}

/* 404 / pagine generiche */
.error-404 { text-align: center; padding-block: 80px; }
.error-404 .num { font-family: var(--font-number); font-size: clamp(6rem, 18vw, 11rem); color: var(--sky); line-height: 1; -webkit-text-stroke: 2px var(--cyan); }
