/* =========================================
   Marco Semenzato & C SAS — Design System
   IBM Plex Sans · Blue #003F8C · Orange #F46B1B
   ========================================= */

/* Font IBM Plex Sans ospitato sul sito (niente richieste a Google: privacy e velocità).
   Un solo file a peso variabile 400–700 + corsivo, sottoinsieme latino. */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/ibm-plex-sans-var.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/ibm-plex-sans-italic.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --- Custom Properties --- */
:root {
  --blue:          #003F8C;
  --blue-light:    #0052B8;
  --blue-dark:     #002966;
  --blue-pale:     #EEF3FB;
  --orange:        #C8500E;
  --orange-bright: #F46B1B;
  --orange-light:  #FF8C3D;
  --orange-dark:   #A9420B;
  --orange-pale:   #FEF3EB;

  --bg:            #F8FAFC;
  --surface:       #FFFFFF;
  --surface-2:     #F0F4FA;
  --border:        #DDE3ED;
  --border-dark:   #C5CDD9;

  --text:          #0F1D3A;
  --text-secondary:#4B5563;
  --text-muted:    #5F6B7A;

  --success:       #15803D;
  --error:         #DC2626;

  --font:          'IBM Plex Sans', system-ui, -apple-system, sans-serif;

  --radius-sm:     6px;
  --radius:        10px;
  --radius-lg:     16px;
  --radius-xl:     24px;

  --shadow-sm:     0 1px 3px rgba(0,0,0,.07), 0 1px 2px rgba(0,0,0,.05);
  --shadow:        0 4px 12px rgba(0,0,0,.08), 0 2px 4px rgba(0,0,0,.05);
  --shadow-lg:     0 10px 32px rgba(0,0,0,.10), 0 4px 8px rgba(0,0,0,.06);

  --nav-h:         72px;
  --max-w:         1200px;
  --transition:    150ms ease;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; border: none; background: none; }

/* --- Typography Scale --- */
h1 { font-size: clamp(2rem, 5vw, 3rem);   font-weight: 700; line-height: 1.15; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 600; line-height: 1.25; }
h3 { font-size: 1.2rem;  font-weight: 600; line-height: 1.3; }
h4 { font-size: 1rem;    font-weight: 600; }
p  { max-width: 68ch; }

/* --- Layout Utilities --- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2.5rem);
}
.section { padding-block: clamp(3.5rem, 7vw, 6rem); }
.section--alt { background: var(--surface-2); }

.grid-2 { display: grid; gap: 2rem; }
.grid-3 { display: grid; gap: 2rem; }
.grid-4 { display: grid; gap: 1.5rem; }

@media (min-width: 600px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 768px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-1 { gap: .5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

.text-center { text-align: center; }
.text-sm { font-size: .875rem; }
.text-muted { color: var(--text-secondary); }

/* --- Navigation --- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.nav__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--blue);
  white-space: nowrap;
  flex-shrink: 0;
}
.nav__logo-icon {
  width: 38px;
  height: 38px;
  background: var(--blue);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.nav__logo-icon svg { color: #fff; }
.nav__logo-sub { font-size: .7rem; font-weight: 400; color: var(--text-secondary); display: block; line-height: 1; }

.nav__links {
  display: flex;
  align-items: center;
  gap: .25rem;
  flex-wrap: nowrap;
}
.nav__link {
  padding: .45rem .75rem;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}
.nav__link:hover,
.nav__link--active { color: var(--blue); background: var(--blue-pale); }

.nav__actions { display: flex; align-items: center; gap: .75rem; flex-shrink: 0; }

.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}
.nav__burger:hover { background: var(--surface-2); }
.nav__burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}
.nav__burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.open span:nth-child(2) { opacity: 0; }
.nav__burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__mobile {
  display: none;
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  background: var(--surface);
  z-index: 99;
  padding: 1.5rem;
  flex-direction: column;
  gap: .5rem;
  overflow-y: auto;
  border-top: 1px solid var(--border);
}
.nav__mobile.open { display: flex; }
.nav__mobile .nav__link { font-size: 1rem; padding: .75rem 1rem; }
.nav__mobile .btn { margin-top: .5rem; }

@media (max-width: 1023px) {
  .nav__links, .nav__actions { display: none; }
  .nav__burger { display: flex; }
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .65rem 1.4rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .9rem;
  min-height: 44px;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}
.btn--primary:hover { background: var(--blue-light); border-color: var(--blue-light); }
.btn--accent {
  background: var(--orange);
  color: #fff;
  border-color: var(--orange);
}
.btn--accent:hover { background: var(--orange-dark); border-color: var(--orange-dark); }
.btn--outline {
  background: transparent;
  color: var(--blue);
  border-color: var(--blue);
}
.btn--outline:hover { background: var(--blue-pale); }
.btn--outline-white {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.6);
}
.btn--outline-white:hover { background: rgba(255,255,255,.15); border-color: #fff; }
.btn--sm { padding: .5rem 1rem; font-size: .85rem; min-height: 40px; }
.btn--lg { padding: .85rem 1.8rem; font-size: 1rem; }

/* --- Section Header --- */
.section-header { margin-bottom: 2.5rem; }
.section-header.text-center { max-width: 600px; margin-inline: auto; margin-bottom: 2.5rem; }
.label-tag {
  display: inline-block;
  padding: .3rem .9rem;
  border-radius: 99px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  background: var(--blue-pale);
  color: var(--blue);
  margin-bottom: .75rem;
}
.label-tag--orange { background: var(--orange-pale); color: var(--orange-dark); }
.section-header h2 { margin-bottom: .75rem; }
.section-header p { color: var(--text-secondary); }

/* --- Hero --- */
.hero {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 60%, #1A5BBE 100%);
  color: #fff;
  padding-block: clamp(2.5rem, 5vw, 4.5rem);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero__inner {
  position: relative;
  display: grid;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 768px) {
  .hero__inner { grid-template-columns: 1fr 1fr; }
}
.hero__tag {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 99px;
  padding: .3rem .9rem;
  font-size: .8rem;
  font-weight: 500;
  margin-bottom: 1.25rem;
}
.hero h1 { margin-bottom: 1.25rem; }
.hero h1 span { color: var(--orange-light); }

/* --- Rotating word (slideshow effect) --- */
.rotating-wrap {
  display: inline-block;
  position: relative;
  vertical-align: bottom;
  overflow: hidden;
  min-width: 2ch;
}
.rotating-wrap .rw {
  display: block;
  font-style: normal;
  color: var(--orange-light);
  font-weight: inherit;
  white-space: nowrap;
  transition: opacity .35s ease, transform .35s ease;
  will-change: transform, opacity;
}
.rotating-wrap .rw.rw--visible { opacity: 1; transform: translateY(0); position: relative; }
.rotating-wrap .rw.rw--exit { opacity: 0; transform: translateY(-28px); position: absolute; top: 0; left: 0; pointer-events: none; }
.rotating-wrap .rw.rw--enter { opacity: 0; transform: translateY(28px); position: absolute; top: 0; left: 0; pointer-events: none; }

/* --- Reveal on scroll --- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .rotating-wrap .rw { transition: none; }
}

.hero p { font-size: 1.05rem; line-height: 1.7; color: rgba(255,255,255,.85); margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,.2);
}
.hero__stat-num { font-size: 1.8rem; font-weight: 700; color: var(--orange-light); line-height: 1; }
.hero__stat-lbl { font-size: .8rem; color: rgba(255,255,255,.82); margin-top: .25rem; }

.hero__visual {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.hero__card {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: transform .2s ease;
}
.hero__card:hover { transform: translateX(4px); }
.hero__card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.15);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero__card-title { font-weight: 600; font-size: .95rem; }
.hero__card-desc { font-size: .8rem; color: rgba(255,255,255,.7); margin-top: .15rem; }

/* --- Service Cards --- */
.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--blue);
}
.service-card__icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  background: var(--blue-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.service-card__icon--orange { background: var(--orange-pale); }
.service-card__icon svg { color: var(--blue); }
.service-card__icon--orange svg { color: var(--orange); }
.service-card h3 { font-size: 1.05rem; }
.service-card p { font-size: .9rem; color: var(--text-secondary); line-height: 1.55; flex: 1; }
.service-card .btn { align-self: flex-start; margin-top: auto; }

/* --- Company Cards --- */
.company-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: box-shadow .2s ease;
}
.company-card:hover { box-shadow: var(--shadow-lg); }
.company-card__logo {
  height: 56px;
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}
.company-card__logo img { max-height: 100%; max-width: 160px; width: auto; object-fit: contain; }
.company-card__name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--blue);
}
.company-card p { font-size: .9rem; color: var(--text-secondary); line-height: 1.6; flex: 1; }
.company-card__tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: auto; }
.tag {
  display: inline-block;
  padding: .25rem .7rem;
  border-radius: 99px;
  font-size: .75rem;
  font-weight: 500;
  background: var(--surface-2);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.tag--blue { background: var(--blue-pale); color: var(--blue); border-color: transparent; }
.tag--orange { background: var(--orange-pale); color: var(--orange-dark); border-color: transparent; }

/* --- Breadcrumb --- */
.breadcrumb {
  padding: 1rem 0;
  font-size: .85rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--blue); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span::before { content: '/'; margin-right: .5rem; color: var(--border-dark); }

/* --- Page Header --- */
.page-header {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 100%);
  color: #fff;
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
}
.page-header .label-tag { background: rgba(255,255,255,.2); color: #fff; }
.page-header h1 { font-size: clamp(1.7rem, 4vw, 2.5rem); margin-bottom: .75rem; }
.page-header p { color: rgba(255,255,255,.85); font-size: 1.05rem; }
.page-header { position: relative; overflow: clip; }
.page-header::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 40% 70% at 88% 20%, rgba(244,107,27,.16) 0%, transparent 70%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.page-header > * { position: relative; }
.page-header .breadcrumb { padding-top: 0; color: rgba(255,255,255,.75); }
.page-header .breadcrumb a { color: #fff; text-decoration: underline; text-decoration-color: rgba(255,255,255,.4); text-underline-offset: 3px; }
.page-header .breadcrumb span::before { color: rgba(255,255,255,.45); }

/* --- Forms --- */
.form-group { display: flex; flex-direction: column; gap: .4rem; }
.form-label {
  font-size: .875rem;
  font-weight: 500;
  color: var(--text);
}
.form-label .req { color: var(--orange); margin-left: .2rem; }
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: .7rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font-size: .95rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0,63,140,.12);
}
.form-input::placeholder,
.form-textarea::placeholder { color: var(--text-muted); }
.form-select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%234B5563' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .75rem center; padding-right: 2.5rem; }
.form-textarea { resize: vertical; min-height: 100px; }
.form-helper { font-size: .8rem; color: var(--text-secondary); }
.form-error { font-size: .8rem; color: var(--error); display: none; }
.form-group.has-error .form-input,
.form-group.has-error .form-select { border-color: var(--error); }
.form-group.has-error .form-error { display: block; }

.form-grid { display: grid; gap: 1.25rem; }
@media (min-width: 600px) { .form-grid--2 { grid-template-columns: 1fr 1fr; } }

/* --- Checkbox a pillola --- */
.check-pills { display: flex; flex-wrap: wrap; gap: .45rem; }
.check-pill {
  position: relative;
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .4rem .85rem;
  border: 1.5px solid var(--border); border-radius: 99px;
  font-size: .85rem; font-weight: 500; color: var(--text-secondary);
  cursor: pointer; user-select: none;
  transition: border-color var(--transition), background var(--transition), color var(--transition);
}
.check-pill:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-pale); }
.check-pill input { position: absolute; opacity: 0; width: 0; height: 0; }
.check-pill:has(input:checked) { border-color: var(--blue); background: var(--blue); color: #fff; }
.check-pill:has(input:focus-visible) { outline: 2px solid var(--blue); outline-offset: 2px; }
.check-pill__dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .5; }
.check-pill:has(input:checked) .check-pill__dot { opacity: 1; }

/* --- Quote Form Wizard --- */
.wizard {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  max-width: 780px;
  margin-inline: auto;
}
.wizard__progress {
  background: var(--blue);
  padding: 1.5rem 2rem;
  color: #fff;
}
.wizard__steps {
  display: flex;
  gap: 0;
  margin-bottom: .75rem;
}
.wizard__step-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .3rem;
  position: relative;
}
.wizard__step-item:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 14px;
  left: calc(50% + 14px);
  right: calc(-50% + 14px);
  height: 2px;
  background: rgba(255,255,255,.3);
  transition: background .3s ease;
}
.wizard__step-item.done::after { background: rgba(255,255,255,.7); }
.wizard__step-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,.25);
  border: 2px solid rgba(255,255,255,.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  font-weight: 600;
  transition: background .3s ease, border-color .3s ease;
}
.wizard__step-item.active .wizard__step-dot { background: var(--orange); border-color: var(--orange-light); }
.wizard__step-item.done .wizard__step-dot { background: rgba(255,255,255,.8); color: var(--blue); border-color: #fff; }
.wizard__step-lbl { font-size: .78rem; color: rgba(255,255,255,.82); text-align: center; }
.wizard__step-item.active .wizard__step-lbl { color: #fff; font-weight: 600; }

.wizard__body { padding: 2rem; }
.wizard__panel { display: none; }
.wizard__panel.active { display: block; }

.wizard__body h2 { font-size: 1.25rem; margin-bottom: .5rem; }
.wizard__body .sub { color: var(--text-secondary); font-size: .9rem; margin-bottom: 1.5rem; }

.type-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}
@media (min-width: 600px) { .type-grid { grid-template-columns: repeat(3, 1fr); } }

.type-card {
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .6rem;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
  text-align: center;
  background: var(--surface);
}
.type-card:hover { border-color: var(--blue); background: var(--blue-pale); }
.type-card.selected { border-color: var(--blue); background: var(--blue-pale); }
.type-card__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.type-card.selected .type-card__icon { background: var(--blue); }
.type-card.selected .type-card__icon svg { color: #fff; }
.type-card__name { font-size: .875rem; font-weight: 600; color: var(--text); }
.type-card input[type="radio"] { display: none; }

.wizard__nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

/* --- Contact Info Card --- */
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.contact-item__icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: var(--blue-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-item__icon svg { color: var(--blue); }
.contact-item__label { font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); }
.contact-item__value { font-weight: 500; margin-top: .1rem; }
.contact-item__value a { color: var(--blue); }
.contact-item__value a:hover { text-decoration: underline; }

/* --- Staff Cards --- */
.staff-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.staff-card__avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 3px solid var(--border);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.staff-card__avatar svg { color: var(--text-muted); }
.staff-card__name { font-weight: 700; font-size: 1.05rem; }
.staff-card__role { font-size: .85rem; color: var(--orange-dark); font-weight: 600; }
.staff-card__bio { font-size: .875rem; color: var(--text-secondary); line-height: 1.6; }

/* --- IVASS Compliance Banner --- */
.ivass-bar {
  background: var(--blue-dark);
  color: rgba(255,255,255,.85);
  padding: 1rem 0;
  font-size: .8rem;
}
.ivass-bar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem 2rem;
}
.ivass-bar a { color: rgba(255,255,255,.9); text-decoration: underline; }
.ivass-bar a:hover { color: #fff; }
.ivass-bar__inner > span { max-width: 100%; }

/* --- Footer --- */
.footer {
  background: var(--text);
  color: rgba(255,255,255,.8);
  padding-block: 3rem 1.5rem;
}
.footer__grid {
  display: grid;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
@media (min-width: 600px) { .footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }

.footer__brand { max-width: 280px; }
.footer__logo {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1rem;
  color: #fff;
  font-weight: 700;
}
.footer__logo-icon {
  width: 36px;
  height: 36px;
  background: var(--blue);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer__desc { font-size: .875rem; line-height: 1.65; }
.footer__rui {
  margin-top: 1rem;
  font-size: .78rem;
  color: rgba(255,255,255,.68);
  line-height: 1.5;
}
.footer__col-title {
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: rgba(255,255,255,.65);
  margin-bottom: 1rem;
}
.footer__links { display: flex; flex-direction: column; gap: .5rem; }
.footer__links a {
  font-size: .875rem;
  color: rgba(255,255,255,.75);
  transition: color var(--transition);
}
.footer__links a:hover { color: #fff; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: .8rem;
  color: rgba(255,255,255,.65);
}
.footer__bottom a { color: rgba(255,255,255,.75); }
.footer__legal { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
.footer__bottom a:hover { color: #fff; }

/* --- Trust Bar --- */
.trust-bar {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding-block: 1.25rem;
}
.trust-bar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .875rem;
  font-weight: 500;
  color: var(--text-secondary);
}
.trust-item svg { color: var(--blue); flex-shrink: 0; }

/* --- Accordion (Convenzioni) --- */
.accordion { display: flex; flex-direction: column; gap: .75rem; }
.accordion-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.accordion-header {
  width: 100%;
  padding: 1.1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-weight: 600;
  font-size: .95rem;
  background: none;
  cursor: pointer;
  text-align: left;
  color: var(--text);
  transition: background var(--transition);
}
.accordion-header:hover { background: var(--surface-2); }
.accordion-header svg { flex-shrink: 0; transition: transform .25s ease; color: var(--blue); }
.accordion-item.open .accordion-header svg { transform: rotate(180deg); }
.accordion-body {
  display: none;
  padding: 0 1.5rem 1.25rem;
  font-size: .9rem;
  color: var(--text-secondary);
  line-height: 1.65;
}
.accordion-item.open .accordion-body { display: block; }

/* --- Quick Quote Banner (sitewide floating) --- */
.qq-bubble {
  position: fixed;
  bottom: 5.5rem;
  right: 1.5rem;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .7rem 1.1rem;
  background: var(--orange);
  color: #fff;
  border: none;
  border-radius: 99px;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(244,107,27,.4);
  transform: translateY(20px) scale(.95);
  opacity: 0;
  transition: opacity .3s ease, transform .3s ease, background var(--transition);
}
.qq-bubble.visible { transform: translateY(0) scale(1); opacity: 1; }
.qq-bubble:hover { background: var(--orange-dark); }
.qq-bubble__pulse {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--orange);
  z-index: -1;
  animation: qq-pulse 2s ease-out infinite;
}
@keyframes qq-pulse {
  0% { transform: scale(1); opacity: .55; }
  100% { transform: scale(1.45); opacity: 0; }
}

.qq-banner {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 95;
  width: min(360px, calc(100vw - 2rem));
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: 0 12px 36px rgba(0,0,0,.18);
  padding: 1.25rem 1.25rem 1rem;
  transform: translateY(20px);
  opacity: 0;
  transition: opacity .3s ease, transform .3s ease;
}
.qq-banner.visible { transform: translateY(0); opacity: 1; }
.qq-banner__close {
  position: absolute;
  top: .6rem;
  right: .6rem;
  width: 28px;
  height: 28px;
  border: none;
  background: var(--surface-2);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: background var(--transition), color var(--transition);
}
.qq-banner__close:hover { background: var(--border); color: var(--text); }

.qq-banner__header {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin-bottom: 1rem;
  padding-right: 1.5rem;
}
.qq-banner__icon {
  width: 36px;
  height: 36px;
  background: var(--orange);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.qq-banner__title {
  font-size: .98rem;
  font-weight: 700;
  color: var(--blue);
  line-height: 1.2;
}
.qq-banner__sub {
  font-size: .78rem;
  color: var(--text-secondary);
  margin-top: .15rem;
  line-height: 1.4;
}

.qq-banner__form { display: flex; flex-direction: column; gap: .55rem; }
.qq-banner__field { display: flex; flex-direction: column; gap: .25rem; }
.qq-banner__field label {
  font-size: .78rem;
  font-weight: 600;
  color: var(--text);
}
.qq-banner__field input {
  padding: .55rem .8rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .9rem;
  color: var(--text);
  background: var(--surface);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.qq-banner__field input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0,63,140,.1);
}
.qq-banner__input--error { border-color: var(--error) !important; }

.qq-banner__privacy {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  font-size: .73rem;
  color: var(--text-secondary);
  margin-top: .35rem;
  line-height: 1.45;
  cursor: pointer;
}
.qq-banner__privacy input {
  width: 14px; height: 14px;
  margin-top: .12rem;
  accent-color: var(--blue);
  flex-shrink: 0;
}
.qq-banner__privacy a { color: var(--blue); }
.qq-banner__submit {
  width: 100%;
  justify-content: center;
  margin-top: .35rem;
  font-size: .9rem;
  padding: .65rem 1rem;
}
.qq-banner__msg {
  font-size: .8rem;
  margin-top: .5rem;
  padding: .5rem .7rem;
  border-radius: var(--radius-sm);
}
.qq-banner__msg--err { background: #FEE2E2; color: var(--error); }
.qq-banner__msg--ok { background: #D1FAE5; color: #065F46; }

@media (max-width: 480px) {
  .qq-bubble { bottom: 5rem; right: 1rem; font-size: .85rem; padding: .6rem 1rem; }
  .qq-banner { bottom: 1rem; right: 1rem; left: 1rem; width: auto; padding: 1rem 1rem .85rem; }
}

/* Stack with .back-top button (back-top stays bottom-right) */
.back-top { z-index: 89; }

/* --- Reviews --- */
.reviews__rating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}
.reviews__stars { display: inline-flex; gap: .15rem; }
.reviews__rating-text { font-size: .9rem; color: var(--text-secondary); }
.reviews__grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
  margin-top: 2.5rem;
}
@media (min-width: 720px)  { .reviews__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .reviews__grid { grid-template-columns: repeat(4, 1fr); } }

.review-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.review-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--blue-pale);
}
.review-card__header {
  display: flex;
  align-items: center;
  gap: .75rem;
}
.review-card__avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.05rem;
  flex-shrink: 0;
}
.review-card__name { font-weight: 700; font-size: .95rem; color: var(--text); }
.review-card__meta { font-size: .78rem; color: var(--text-secondary); margin-top: .1rem; }
.review-card__google { margin-left: auto; flex-shrink: 0; opacity: .9; }
.review-card__stars { color: #F4B400; font-size: 1rem; letter-spacing: .1em; }
.review-card__text {
  font-size: .9rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0;
  flex: 1;
}

/* --- Alert / Success Message --- */
.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  display: flex;
  align-items: flex-start;
  gap: .75rem;
}
.alert--success { background: #DCFCE7; color: #15803D; border: 1px solid #BBF7D0; }
.alert--info    { background: var(--blue-pale); color: var(--blue); border: 1px solid #BFDBFE; }
.alert--warn    { background: var(--orange-pale); color: var(--orange-dark); border: 1px solid #FED7AA; }
.alert svg { flex-shrink: 0; margin-top: .1rem; }

/* --- TidyCal Embed --- */
.tidycal-wrapper {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  min-height: 600px;
}
.tidycal-wrapper iframe { border: none; width: 100%; min-height: 600px; }

/* --- Placeholder for images --- */
.img-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--surface-2);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: .875rem;
  border: 2px dashed var(--border-dark);
}

/* --- Back to top --- */
.back-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 50;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease, transform .3s ease;
  cursor: pointer;
  border: none;
}
.back-top.visible { opacity: 1; pointer-events: auto; }
.back-top:hover { transform: translateY(-3px); }

/* --- Utilities --- */
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* --- Focus Visible --- */
:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
  border-radius: 2px;
}

/* --- Cookie consent bar --- */
.cookie-bar {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 120;
  max-width: 720px;
  margin-inline: auto;
  background: var(--text);
  color: rgba(255,255,255,.9);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: .75rem 1.25rem;
  flex-wrap: wrap;
  font-size: .85rem;
  line-height: 1.5;
}
.cookie-bar__text { flex: 1 1 280px; }
.cookie-bar__text a { color: #fff; text-decoration: underline; }
.cookie-bar__actions { display: flex; gap: .6rem; flex-shrink: 0; margin-left: auto; }
.cookie-bar .btn--outline { color: #fff; border-color: rgba(255,255,255,.55); }
.cookie-bar .btn--outline:hover { background: rgba(255,255,255,.12); border-color: #fff; }

/* --- Third-party embed consent guard --- */
.embed-guard { position: relative; }
.embed-guard__ph {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  text-align: center;
  padding: 1.25rem;
  background: var(--surface-2);
  color: var(--text-secondary);
  font-size: .85rem;
  line-height: 1.5;
}
.embed-guard__ph svg { color: var(--text-muted); }
.embed-guard--loaded .embed-guard__ph { display: none; }

/* =========================================
   VISUAL POLISH — micro-interazioni & effetti
   ========================================= */

/* --- Selection & focus --- */
::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 4px; }

/* --- Scroll progress bar --- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--blue) 0%, var(--orange) 100%);
  z-index: 200;
  pointer-events: none;
  transition: width .1s linear;
}

/* --- Nav: stato scrolled (glass) --- */
.nav {
  transition: box-shadow .25s ease, background .25s ease;
}
.nav--scrolled {
  background: rgba(255,255,255,.85);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(15,29,58,.08);
}

/* --- Nav links: underline animata --- */
.nav__links .nav__link {
  position: relative;
}
.nav__links .nav__link::after {
  content: '';
  position: absolute;
  left: .75rem; right: .75rem;
  bottom: .35rem;
  height: 2px;
  background: var(--orange);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.nav__links .nav__link:hover::after,
.nav__links .nav__link--active::after { transform: scaleX(1); }

/* --- Hero: aurora animata --- */
.hero::after {
  content: '';
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(ellipse 42% 48% at 78% 24%, rgba(244,107,27,.22) 0%, transparent 70%),
    radial-gradient(ellipse 50% 55% at 18% 82%, rgba(64,140,255,.28) 0%, transparent 70%),
    radial-gradient(ellipse 36% 40% at 55% 55%, rgba(255,255,255,.06) 0%, transparent 65%);
  animation: aurora 16s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes aurora {
  0%   { transform: translate3d(-3%, -2%, 0) scale(1);    opacity: .9; }
  50%  { transform: translate3d( 3%,  2%, 0) scale(1.08); opacity: 1; }
  100% { transform: translate3d(-2%,  3%, 0) scale(1.02); opacity: .85; }
}
.hero .container { position: relative; z-index: 1; }

/* --- Hero: entrata scaglionata al load --- */
@keyframes heroIn {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero__tag,
.hero h1,
.hero p,
.hero__actions,
.hero__stats { animation: heroIn .7s cubic-bezier(.22,.8,.36,1) backwards; }
.hero__tag     { animation-delay: .05s; }
.hero h1       { animation-delay: .15s; }
.hero p        { animation-delay: .28s; }
.hero__actions { animation-delay: .4s; }
.hero__stats   { animation-delay: .52s; }
.hero__card    { animation: heroIn .7s cubic-bezier(.22,.8,.36,1) backwards; }
.hero__card:nth-child(1) { animation-delay: .35s; }
.hero__card:nth-child(2) { animation-delay: .5s; }
.hero__card:nth-child(3) { animation-delay: .65s; }

/* --- Section header: barretta gradiente --- */
.section-header.text-center h2::after {
  content: '';
  display: block;
  width: 56px;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--blue), var(--orange));
  margin: 1rem auto 0;
}

/* --- Service card: bordo top gradiente + icona viva --- */
.service-card { position: relative; overflow: hidden; }
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--orange));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
.service-card:hover::before { transform: scaleX(1); }
.service-card__icon { transition: transform .3s cubic-bezier(.34,1.56,.64,1); }
.service-card:hover .service-card__icon { transform: scale(1.12) rotate(-4deg); }

/* --- Company card: lift --- */
.company-card { transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease; }
.company-card:hover { transform: translateY(-4px); border-color: var(--blue); }
.company-card__logo img { transition: transform .3s ease; }
.company-card:hover .company-card__logo img { transform: scale(1.06); }

/* --- Review card: lift --- */
.review-card { transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.review-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--blue);
}

/* --- Bottoni: shine sweep + lift --- */
.btn { position: relative; overflow: hidden; }
.btn--accent::before,
.btn--primary::before {
  content: '';
  position: absolute;
  top: 0; left: -80%;
  width: 50%; height: 100%;
  background: linear-gradient(105deg, transparent 0%, rgba(255,255,255,.35) 50%, transparent 100%);
  transform: skewX(-20deg);
  transition: left .55s ease;
  pointer-events: none;
}
.btn--accent:hover::before,
.btn--primary:hover::before { left: 130%; }
.btn--accent:hover,
.btn--primary:hover { box-shadow: 0 6px 20px rgba(0,0,0,.18); transform: translateY(-1px); }
.btn:active { transform: translateY(1px); box-shadow: none; }

/* --- Reveal a cascata (delay via custom property) --- */
.reveal { transition-delay: var(--reveal-delay, 0s); }

/* --- Footer link: slide --- */
.footer__links a { transition: color .2s ease, padding-left .2s ease; display: inline-block; }
.footer__links a:hover { padding-left: 6px; }

/* --- Back-top: pop --- */
.back-top { transition: opacity .25s ease, transform .25s ease, background .2s ease; }
.back-top:hover { transform: translateY(-3px) scale(1.06); }

/* --- Riduzione movimento --- */
@media (prefers-reduced-motion: reduce) {
  .hero::after { animation: none; }
  .hero__tag, .hero h1, .hero p, .hero__actions, .hero__stats, .hero__card { animation: none; }
  .scroll-progress { display: none; }
  .btn--accent::before, .btn--primary::before { display: none; }
}

/* --- Print --- */
@media print {
  .nav, .footer, .back-top, .ivass-bar, .cookie-bar, .qq-bubble, .qq-banner { display: none; }
  body { background: #fff; }
}

/* --- Layout split contenuto + sidebar (preventivo, appuntamenti) --- */
.page-split {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}
@media (min-width: 900px) {
  .page-split { grid-template-columns: minmax(0, 1fr) 340px; }
}

/* Sposta in alto bubble/banner quando la cookie bar è visibile */
body.has-cookie-bar .qq-bubble { bottom: 11rem; }
body.has-cookie-bar .qq-banner { bottom: 7rem; }
@media (max-width: 480px) {
  body.has-cookie-bar .qq-bubble { bottom: 12.5rem; }
  body.has-cookie-bar .qq-banner { bottom: 8.5rem; }
}

/* --- Convenzioni --- */
.conv-note { max-width: 860px; margin: 0 auto 3rem; }
.conv-group { max-width: 1000px; margin: 0 auto 3rem; }
.conv-group__title { font-size: 1.25rem; margin-bottom: 1.25rem; padding-bottom: .6rem; border-bottom: 2px solid var(--border); }
.conv-grid { display: grid; gap: 1rem; }
@media (min-width: 600px) { .conv-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .conv-grid { grid-template-columns: repeat(3, 1fr); } }
.conv-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.conv-card__name { font-size: 1rem; color: var(--blue); }
.conv-card__who { font-size: .85rem; color: var(--text-secondary); line-height: 1.55; flex: 1; }
.conv-card__tags { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .25rem; }
.conv-disclaimer { max-width: 1000px; margin: 0 auto; font-size: .8rem; color: var(--text-secondary); text-align: center; }

/* Stella vuota nelle card recensioni (voti < 5) */
.review-card__star-off { color: #DADCE0; }

/* --- Ancore: non finire sotto la nav sticky --- */
section[id] { scroll-margin-top: calc(var(--nav-h) + 12px); }

/* --- Lavora con noi --- */
.job-choice { display: grid; gap: 1.25rem; max-width: 900px; margin-inline: auto; }
@media (min-width: 700px) { .job-choice { grid-template-columns: 1fr 1fr; } }
.job-choice__card {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  padding: 1.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 4px solid var(--blue);
  border-radius: var(--radius-lg);
  transition: transform .2s ease, box-shadow .2s ease;
}
.job-choice__card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.job-choice__card--orange { border-top-color: var(--orange); }
.job-choice__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: var(--blue-pale);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
}
.job-choice__card--orange .job-choice__icon { background: var(--orange-pale); color: var(--orange); }
.job-choice__tag { font-size: .75rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--text-secondary); }
.job-choice__card p { font-size: .9rem; color: var(--text-secondary); flex: 1; }
.job-choice__link { font-weight: 600; font-size: .9rem; color: var(--blue); }
.job-choice__card--orange .job-choice__link { color: var(--orange-dark); }

.job-detail { align-items: start; gap: 3rem; }
.job-list-title { font-size: 1.05rem; margin: 1.75rem 0 .75rem; }
.job-list { display: flex; flex-direction: column; gap: .55rem; }
.job-list li { position: relative; padding-left: 1.4rem; font-size: .92rem; color: var(--text-secondary); line-height: 1.55; }
.job-list li::before {
  content: '';
  position: absolute;
  left: .2rem;
  top: .6em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
}
.job-list--check li::before { content: '✓'; width: auto; height: auto; background: none; top: 0; left: 0; color: var(--orange); font-weight: 700; }
.job-offer { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.75rem; }
.job-offer h3 { font-size: 1.05rem; margin-bottom: .9rem; }
.job-paths { display: grid; gap: .75rem; }
.job-path {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  padding: 1rem 1.1rem;
  background: var(--surface-2);
  border-radius: var(--radius);
  border-left: 3px solid var(--orange);
}
.job-path strong { font-size: .95rem; }
.job-path span { font-size: .875rem; color: var(--text-secondary); line-height: 1.5; }

.job-form-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: clamp(1.25rem, 4vw, 2rem); box-shadow: var(--shadow); }
.job-form-card .form-grid { margin-bottom: 1.25rem; }
.form-group--full { grid-column: 1 / -1; }
.job-privacy { display: flex; align-items: flex-start; gap: .65rem; font-size: .82rem; color: var(--text-secondary); line-height: 1.5; padding: 1rem; background: var(--surface-2); border-radius: var(--radius-sm); cursor: pointer; }
.job-privacy input { margin-top: .2rem; width: 16px; height: 16px; flex-shrink: 0; accent-color: var(--blue); }
.job-privacy a { color: var(--blue); text-decoration: underline; }
.job-privacy-error { font-size: .8rem; color: var(--error); margin-top: .4rem; }

/* --- Hero: scena animata "una protezione, tutte le coperture" --- */
.hero { overflow: clip; }
.hero-scene { position: relative; align-items: center; }
.hero-scene__stage {
  --stage: min(380px, 78vw);
  --r: calc(var(--stage) * .41);
  position: relative;
  width: var(--stage);
  height: var(--stage);
  margin-inline: auto;
}
.hero-scene__rings {
  position: absolute; inset: 0; width: 100%; height: 100%;
  fill: none; stroke: rgba(255,255,255,.22); stroke-width: 1.5; stroke-dasharray: 2 9;
  animation: sceneSpin 90s linear infinite;
}
.hero-scene__pulse {
  position: absolute; top: 50%; left: 50%;
  width: 46%; height: 46%; margin: -23% 0 0 -23%;
  border-radius: 50%;
  border: 2px solid rgba(255,140,61,.55);
  opacity: 0;
  animation: scenePulse 4.2s cubic-bezier(.2,.6,.3,1) 1.6s infinite;
}
.hero-scene__pulse--late { animation-delay: 3.7s; }
.hero-scene__orbit {
  position: absolute; inset: 0;
  animation: sceneSpin 48s linear infinite;
}
.hero-scene__item {
  position: absolute; top: 50%; left: 50%;
  width: 58px; height: 58px; margin: -29px 0 0 -29px;
  transform: rotate(var(--a)) translateX(var(--r)) rotate(calc(-1 * var(--a)));
}
.hero-scene__icon {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%;
  border-radius: 50%;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.28);
  backdrop-filter: blur(6px);
  color: #fff;
  box-shadow: 0 8px 24px rgba(0,20,60,.25);
  animation: sceneSpin 48s linear infinite reverse, sceneIconIn .6s cubic-bezier(.22,.8,.36,1) backwards;
}
.hero-scene__item:nth-child(1) .hero-scene__icon { animation-delay: 0s, 1.1s; }
.hero-scene__item:nth-child(2) .hero-scene__icon { animation-delay: 0s, 1.25s; }
.hero-scene__item:nth-child(3) .hero-scene__icon { animation-delay: 0s, 1.4s; }
.hero-scene__item:nth-child(4) .hero-scene__icon { animation-delay: 0s, 1.55s; }
.hero-scene__shield {
  position: absolute; top: 50%; left: 50%;
  width: 34%; margin-left: -17%;
  transform: translateY(-50%);
  filter: drop-shadow(0 14px 28px rgba(244,107,27,.35));
  animation: sceneFloat 6s ease-in-out 2s infinite;
}
.hero-scene__shield svg { display: block; width: 100%; height: auto; overflow: visible; }
.hero-scene__shield-line {
  fill: none; stroke: #fff; stroke-width: 4; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: sceneDraw 1.1s cubic-bezier(.65,0,.35,1) .3s forwards;
}
.hero-scene__shield-fill { opacity: 0; animation: sceneFade .6s ease-out 1.1s forwards; }
.hero-scene__check {
  fill: none; stroke: #fff; stroke-width: 9; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: sceneDraw .5s cubic-bezier(.65,0,.35,1) 1.5s forwards;
}
@keyframes sceneSpin  { to { transform: rotate(360deg); } }
@keyframes sceneDraw  { to { stroke-dashoffset: 0; } }
@keyframes sceneFade  { to { opacity: 1; } }
@keyframes sceneIconIn { from { opacity: 0; transform: scale(.4); } }
@keyframes sceneFloat {
  0%, 100% { transform: translateY(-50%); }
  50%      { transform: translateY(calc(-50% - 8px)); }
}
@keyframes scenePulse {
  0%   { transform: scale(.7); opacity: .7; }
  100% { transform: scale(2.1); opacity: 0; }
}

/* Pannello unico: scena in alto, 3 punti di forza allineati in griglia sotto */
.hero-scene {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
  width: 100%;
  max-width: 480px;
  margin-inline: auto;
  padding: 1rem 1rem 1.1rem;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 50px rgba(0,20,60,.25);
}
.hero-scene__stage { grid-column: 1 / -1; --stage: 270px; }
.hero-scene__chip {
  flex-direction: column;
  align-items: flex-start;
  gap: .55rem;
  padding: .85rem .8rem;
  border-radius: var(--radius);
  background: rgba(255,255,255,.09);
  backdrop-filter: none;
}
.hero-scene__chip:hover { transform: translateY(-2px); }
.hero-scene__chip .hero__card-icon { width: 34px; height: 34px; }
.hero-scene__chip .hero__card-title { font-size: .85rem; line-height: 1.25; }
.hero-scene__chip .hero__card-desc { font-size: .75rem; line-height: 1.4; color: rgba(255,255,255,.82); }
@media (max-width: 1023px) {
  .hero-scene { grid-template-columns: 1fr; }
  .hero-scene__chip { flex-direction: row; align-items: center; gap: .75rem; padding: .7rem .9rem; }
}
@media (max-width: 767px) {
  .hero-scene { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-scene__rings, .hero-scene__orbit, .hero-scene__icon,
  .hero-scene__shield, .hero-scene__pulse { animation: none; }
  .hero-scene__shield-line, .hero-scene__check { animation: none; stroke-dashoffset: 0; }
  .hero-scene__shield-fill { animation: none; opacity: 1; }
}
.hero__card.hero-scene__chip--1 { animation-delay: 1.8s; }
.hero__card.hero-scene__chip--2 { animation-delay: 1.95s; }
.hero__card.hero-scene__chip--3 { animation-delay: 2.1s; }

/* --- Rifinitura UI: aree tocco e interazioni --- */
.btn, .check-pill, .nav__burger, .type-card { touch-action: manipulation; }
@media (pointer: coarse) {
  .check-pill { min-height: 44px; }
  .footer__links { gap: 0; }
  .footer__links a, .footer__legal a { display: inline-block; padding-block: .6rem; }
  .ivass-bar a { display: inline-block; padding-block: .3rem; }
}
.btn--accent {
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 4px 14px rgba(200,80,14,.28);
}
.btn--accent:hover { box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 6px 18px rgba(169,66,11,.32); }

/* --- Staff: monogrammi al posto dell'icona generica --- */
.staff-card__avatar {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-light) 100%);
  border: 3px solid #fff;
  box-shadow: 0 0 0 1px var(--border), 0 6px 16px rgba(0,63,140,.18);
  color: #fff;
  font-weight: 700;
  font-size: 1.55rem;
  letter-spacing: .03em;
}
.staff-card__avatar--lead {
  font-size: 2rem;
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%);
  box-shadow: 0 0 0 1px var(--border), 0 8px 20px rgba(200,80,14,.25);
}
.staff-card__avatar img { width: 100%; height: 100%; object-fit: cover; }
.staff-card { transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.staff-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--border-dark); }

/* --- Titoletto di sezione con barretta brand --- */
.section-label {
  display: flex; align-items: center; gap: .6rem;
  font-size: clamp(1.2rem, 2.2vw, 1.4rem); font-weight: 700; line-height: 1.3; color: var(--text);
}
.section-label::before {
  content: ''; flex-shrink: 0;
  width: 4px; height: 1.1em; border-radius: 2px;
  background: linear-gradient(180deg, var(--blue), var(--orange));
}
.footer__area { font-size: .8rem; line-height: 1.55; color: rgba(255,255,255,.68); margin-top: .75rem; }

/* --- Footer compatto --- */
.ivass-bar { padding: .7rem 0; font-size: .75rem; line-height: 1.5; }
.ivass-bar__inner { gap: .3rem 1.5rem; }
.footer { padding-block: 2.25rem 1.1rem; }
.footer__grid { grid-template-columns: 1fr 1fr; gap: 1.5rem 1.5rem; margin-bottom: 1.5rem; }
.footer__brand, .footer__grid > div:last-child { grid-column: 1 / -1; }
.footer__brand { max-width: 340px; }
.footer__logo { margin-bottom: .75rem; }
.footer__desc { font-size: .82rem; line-height: 1.55; }
.footer__area { font-size: .75rem; margin-top: .5rem; }
.footer__col-title { font-size: .72rem; margin-bottom: .6rem; }
.footer__links { gap: .3rem; }
.footer__links a, .footer__links li { font-size: .84rem; }
.footer__bottom { padding-top: 1rem; font-size: .75rem; gap: .5rem 1rem; }
@media (min-width: 900px) {
  .footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 2rem; }
  .footer__brand, .footer__grid > div:last-child { grid-column: auto; }
}
@media (pointer: coarse) {
  .footer__links { gap: 0; }
  .footer__links a, .footer__legal a { padding-block: .35rem; }
}
