/* ============================================================
   FLOORA® — components.css — Componenti UI
   ============================================================ */

/* ---------- Bottoni ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font: inherit;
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1;
  padding: 14px 24px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: transform var(--transition), background var(--transition),
              color var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--c-yellow); color: #3a2e00; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: #ffc933; color: #3a2e00; box-shadow: var(--shadow-md); }

.btn--brand { background: var(--c-green-mid); color: #fff; }
.btn--brand:hover { background: var(--c-green-dark); color: #fff; }

.btn--ghost { background: transparent; border-color: var(--c-green-mid); color: var(--c-green-dark); }
.btn--ghost:hover { background: var(--c-green-light); color: var(--c-green-dark); }

.btn--light { background: #fff; color: var(--c-green-dark); }
.btn--light:hover { background: var(--c-cream); }

.btn--block { width: 100%; }
.btn--lg { padding: 16px 30px; font-size: 1.05rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(46,125,50,0.16), transparent 60%),
    linear-gradient(180deg, #f3f9f1, #ffffff 70%);
  padding: clamp(56px, 9vw, 110px) 0 clamp(48px, 7vw, 88px);
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--c-green-light);
  color: var(--c-green-dark);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 7px 15px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.hero__badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c-green-mid); }
.hero h1 { margin-bottom: 18px; }
.hero h1 .accent { color: var(--c-green-mid); }
.hero__sub { font-size: 1.18rem; color: var(--c-muted); max-width: 42ch; margin-bottom: 30px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 22px; color: var(--c-muted); font-size: 0.92rem; }
.hero__meta span { display: inline-flex; align-items: center; gap: 7px; font-weight: 500; }
.hero__meta svg { color: var(--c-green-mid); flex-shrink: 0; }

.hero__visual {
  position: relative;
  border-radius: var(--radius);
  background: linear-gradient(150deg, #ffffff, #e4f2df);
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-lg);
  padding: 22px;
  aspect-ratio: 4 / 3.2;
  display: flex;
  flex-direction: column;
}

/* Mock dashboard dentro hero */
.mock { display: flex; flex-direction: column; height: 100%; gap: 12px; }
.mock__bar { display: flex; align-items: center; gap: 6px; }
.mock__bar .d { width: 11px; height: 11px; border-radius: 50%; background: var(--c-border); }
.mock__bar .d:nth-child(1) { background: #ff6b5e; }
.mock__bar .d:nth-child(2) { background: var(--c-yellow); }
.mock__bar .d:nth-child(3) { background: var(--c-green-mid); }
.mock__bar .t { margin-left: auto; font-size: 0.72rem; color: var(--c-muted); font-weight: 600; }
.mock__body { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; flex: 1; }
.mock__kpi {
  background: #fff; border: 1px solid var(--c-border);
  border-radius: var(--radius-sm); padding: 14px;
  display: flex; flex-direction: column; gap: 4px;
}
.mock__kpi .label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--c-muted); font-weight: 600; }
.mock__kpi .value { font-size: 1.5rem; font-weight: 900; color: var(--c-green-dark); }
.mock__kpi .trend { font-size: 0.74rem; font-weight: 600; color: var(--c-green-mid); }
.mock__chart {
  grid-column: 1 / -1;
  background: #fff; border: 1px solid var(--c-border);
  border-radius: var(--radius-sm); padding: 14px;
  display: flex; align-items: flex-end; gap: 8px; min-height: 110px;
}
.mock__chart .col { flex: 1; background: linear-gradient(var(--c-green-mid), var(--c-green-light)); border-radius: 4px 4px 0 0; }

/* ---------- Trust bar ---------- */
.trustbar { border-top: 1px solid var(--c-border); border-bottom: 1px solid var(--c-border); background: #fff; }
.trustbar__inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 14px 40px; padding: 22px 0;
}
.trustbar span { color: var(--c-muted); font-weight: 600; font-size: 0.9rem; display: inline-flex; align-items: center; gap: 8px; }
.trustbar svg { color: var(--c-green-mid); }

/* ---------- Feature grid ---------- */
.grid {
  display: grid;
  gap: var(--gap);
}
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--c-green-light); }
.card__icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--c-green-light);
  color: var(--c-green-dark);
  display: grid; place-items: center;
  margin-bottom: 18px;
}
.card__icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.18rem; margin-bottom: 8px; }
.card p { color: var(--c-muted); margin: 0; font-size: 0.96rem; }

/* ---------- About / split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.split__media {
  border-radius: var(--radius);
  background: linear-gradient(150deg, var(--c-green-light), #fff);
  border: 1px solid var(--c-border);
  padding: 32px; box-shadow: var(--shadow-md);
}
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat {
  background: #fff; border: 1px solid var(--c-border);
  border-radius: var(--radius-sm); padding: 20px; text-align: center;
}
.stat .num { font-size: 2rem; font-weight: 900; color: var(--c-green-mid); display: block; }
.stat .lbl { font-size: 0.84rem; color: var(--c-muted); font-weight: 500; }

.check-list { list-style: none; padding: 0; margin: 18px 0 0; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.check-list svg { flex-shrink: 0; color: var(--c-green-mid); margin-top: 3px; }
.check-list b { color: var(--c-green-dark); }

/* ---------- Target / PA ---------- */
.target-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.target-card {
  border-radius: var(--radius);
  padding: 26px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
}
.target-card h3 { color: #fff; font-size: 1.12rem; }
.target-card p { color: #cfe6d6; font-size: 0.94rem; margin: 0; }
.target-card .ico { color: var(--c-yellow); margin-bottom: 14px; }

/* ---------- Moduli (pills) ---------- */
.modules { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.module-pill {
  background: #fff; border: 1px solid var(--c-border);
  border-radius: 999px; padding: 10px 18px;
  font-size: 0.9rem; font-weight: 600; color: var(--c-green-dark);
  display: inline-flex; align-items: center; gap: 8px;
  transition: background var(--transition), transform var(--transition);
}
.module-pill:hover { background: var(--c-green-light); transform: translateY(-2px); }
.module-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--c-yellow); }

/* ---------- Certificazioni ---------- */
.cert-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.cert-badge {
  background: #fff; border: 1px solid var(--c-border);
  border-radius: var(--radius); padding: 22px 16px; text-align: center;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  transition: transform var(--transition), box-shadow var(--transition);
}
.cert-badge:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.cert-badge .seal {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--c-green-light); color: var(--c-green-dark);
  display: grid; place-items: center; font-weight: 900; font-size: 0.7rem;
  border: 2px solid var(--c-green-mid);
}
.cert-badge .name { font-weight: 700; color: var(--c-green-dark); font-size: 0.9rem; }
.cert-badge .desc { font-size: 0.76rem; color: var(--c-muted); }

/* ---------- Consent placeholder (YouTube / Maps) ---------- */
.consent-embed {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--c-border);
  background: var(--c-bg-alt);
  min-height: 360px;
  box-shadow: var(--shadow-md);
}
.consent-embed iframe { width: 100%; height: 100%; min-height: 360px; border: 0; display: block; }
.consent-embed video { width: 100%; height: auto; display: block; background: #000; }
.consent-placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: 14px; padding: 32px;
  background: linear-gradient(150deg, #e4f2df, #fff);
}
.consent-placeholder svg { color: var(--c-green-mid); }
.consent-placeholder h3 { margin: 0; }
.consent-placeholder p { color: var(--c-muted); max-width: 46ch; margin: 0; font-size: 0.95rem; }

/* ---------- Form contatto ---------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 5vw, 56px); align-items: start; }
.contact-info ul { list-style: none; padding: 0; margin: 24px 0 0; }
.contact-info li { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 20px; }
.contact-info .ico {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
  background: var(--c-green-light); color: var(--c-green-dark);
  display: grid; place-items: center;
}
.contact-info .lbl { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--c-muted); font-weight: 700; }
.contact-info a, .contact-info span.val { color: var(--c-green-dark); font-weight: 600; }

.form {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 36px);
  box-shadow: var(--shadow-md);
}
.form .field { margin-bottom: 18px; }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 7px; color: var(--c-green-dark); }
.form label .req { color: #c0392b; }
.form input,
.form select,
.form textarea {
  width: 100%;
  font: inherit;
  font-size: 0.98rem;
  padding: 12px 14px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--c-text);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--c-green-mid);
  box-shadow: 0 0 0 3px rgba(46,125,50,0.18);
}
.form textarea { resize: vertical; min-height: 130px; }
.form .consent {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 0.86rem; color: var(--c-muted); margin-bottom: 18px;
}
.form .consent input { width: auto; margin-top: 3px; }
.form-note { font-size: 0.78rem; color: var(--c-muted); margin-top: 14px; }
.form-msg { padding: 14px 16px; border-radius: var(--radius-sm); font-size: 0.92rem; margin-bottom: 18px; display: none; }
.form-msg.is-ok { display: block; background: var(--c-green-light); color: var(--c-green-dark); border: 1px solid var(--c-green-mid); }
.form-msg.is-err { display: block; background: #fdecea; color: #a13226; border: 1px solid #e6a99f; }

/* ---------- Inline contact privacy notice ---------- */
.inline-notice {
  margin-top: 22px;
  font-size: 0.82rem;
  color: var(--c-muted);
  background: var(--c-cream);
  border: 1px solid #ece9a3;
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}
.inline-notice strong { color: var(--c-green-dark); }

/* ============================================================
   COOKIE BANNER
   ============================================================ */
.cookie-banner {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  z-index: 1500;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 24px;
  max-width: 760px;
  margin-inline: auto;
  display: none;
}
.cookie-banner.is-visible { display: block; animation: cookieUp 0.32s ease; }
@keyframes cookieUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.cookie-banner h3 { font-size: 1.2rem; margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.cookie-banner p { font-size: 0.92rem; color: var(--c-muted); margin-bottom: 18px; }
.cookie-banner p a { font-weight: 600; text-decoration: underline; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cookie-actions .btn { flex: 1; min-width: 150px; }

/* Pannello preferenze granulari */
.cookie-prefs { display: none; margin: 18px 0; border-top: 1px solid var(--c-border); padding-top: 18px; }
.cookie-prefs.is-open { display: block; }
.cookie-cat {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 14px 0; border-bottom: 1px solid var(--c-bg-alt);
}
.cookie-cat:last-child { border-bottom: 0; }
.cookie-cat__txt { flex: 1; }
.cookie-cat__txt strong { color: var(--c-green-dark); font-size: 0.96rem; }
.cookie-cat__txt p { font-size: 0.84rem; margin: 4px 0 0; }
.cookie-cat__badge { font-size: 0.72rem; font-weight: 700; color: var(--c-green-mid); }

/* Toggle switch */
.switch { position: relative; display: inline-block; width: 46px; height: 26px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .slider {
  position: absolute; cursor: pointer; inset: 0;
  background: #c2ccd6; border-radius: 999px; transition: background var(--transition);
}
.switch .slider::before {
  content: ""; position: absolute; height: 20px; width: 20px; left: 3px; bottom: 3px;
  background: #fff; border-radius: 50%; transition: transform var(--transition);
}
.switch input:checked + .slider { background: var(--c-green-mid); }
.switch input:checked + .slider::before { transform: translateX(20px); }
.switch input:disabled + .slider { background: var(--c-green-dark); cursor: not-allowed; opacity: 0.7; }

/* Pulsante riapri preferenze (footer) */
.cookie-reopen { background: none; border: 0; color: inherit; font: inherit; cursor: pointer; text-decoration: underline; padding: 0; }

/* Pulsante flottante "Preferenze cookie" — presente su ogni pagina */
.cookie-fab {
  position: fixed; left: 18px; bottom: 18px; z-index: 1400;
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--c-border);
  background: var(--c-white); color: var(--c-green-dark);
  box-shadow: var(--shadow-md); cursor: pointer;
  display: grid; place-items: center;
  transition: transform var(--transition), background var(--transition), color var(--transition);
}
.cookie-fab:hover { transform: translateY(-2px); background: var(--c-green-dark); color: #fff; }
.cookie-fab:focus-visible { outline: 3px solid var(--c-green-mid); outline-offset: 2px; }
.cookie-fab svg { display: block; }
/* Nascondi il FAB mentre il banner è aperto, per evitare sovrapposizioni */
.cookie-banner.is-visible ~ .cookie-fab { opacity: 0; visibility: hidden; pointer-events: none; }
@media print { .cookie-fab { display: none; } }

/* ---------- Tabs IT/EN nelle pagine legali ---------- */
.legal-page { padding: clamp(40px, 6vw, 72px) 0; }
.legal-page h1 { margin-bottom: 8px; }
.legal-meta { color: var(--c-muted); font-size: 0.9rem; margin-bottom: 28px; }
.legal-content h2 { font-size: 1.4rem; margin-top: 36px; }
.legal-content h3 { font-size: 1.12rem; margin-top: 24px; }
.legal-content table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 0.9rem; }
.legal-content th, .legal-content td { border: 1px solid var(--c-border); padding: 10px 12px; text-align: left; vertical-align: top; }
.legal-content th { background: var(--c-green-mid); color: #fff; font-weight: 700; }
.legal-content tr:nth-child(even) td { background: var(--c-cream); }
.legal-content a { text-decoration: underline; }

/* ============================================================
   CORPORATE — componenti sito aziendale ERA Soluzioni
   ============================================================ */

/* ---------- Logo header ---------- */
.nav__logo img { height: 44px; }

/* ---------- Voce di menu attiva ---------- */
.nav__links a.is-active { color: var(--c-green-dark); }
.nav__links a.is-active::after { width: 100%; }

/* ---------- Dropdown nav (Chi Siamo › Team) ---------- */
.nav__item--sub { position: relative; }
.nav__submenu {
  position: absolute; top: calc(100% + 10px); left: 0;
  min-width: 190px; list-style: none; margin: 0; padding: 8px;
  background: #fff; border: 1px solid var(--c-border);
  border-radius: 12px; box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  z-index: 1001;
}
.nav__item--sub:hover .nav__submenu,
.nav__item--sub:focus-within .nav__submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav__submenu a { display: block; padding: 9px 12px; border-radius: 8px; font-weight: 500; }
.nav__submenu a::after { display: none; }
.nav__submenu a:hover { background: var(--c-green-light); color: var(--c-green-dark); }

/* ---------- Page hero (pagine interne) ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--c-green-dark), #0c3a1d);
  color: #e7f3ec;
  padding: clamp(46px, 7vw, 88px) 0 clamp(40px, 6vw, 68px);
}
.page-hero h1 { color: #fff; margin-bottom: 14px; }
.page-hero .eyebrow {
  display: inline-block; font-size: 0.82rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--c-yellow); margin-bottom: 12px;
}
.page-hero p { color: #d3e7db; font-size: 1.1rem; max-width: 64ch; margin: 0; }
.page-hero .breadcrumb { font-size: 0.86rem; color: #b6d3bf; margin-bottom: 18px; }
.page-hero .breadcrumb a { color: #d8ece0; text-decoration: underline; }
.page-hero .breadcrumb span { opacity: 0.7; }

/* ---------- Card servizio: numero/indice ---------- */
.card .card__num {
  position: absolute; top: 20px; right: 22px;
  font-size: 0.8rem; font-weight: 800; color: var(--c-green-light);
}
.card { position: relative; }
.card--link { display: block; color: inherit; }
.card--link:hover { color: inherit; }

/* ---------- Stato del sistema (Era Cloud) ---------- */
.status-card {
  display: inline-flex; align-items: center; gap: 14px;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 16px 26px;
  box-shadow: var(--shadow-sm);
}
.status-card .status-label { color: var(--c-muted); font-weight: 700; }
.status-card .status-badge {
  width: 32px; height: 32px; flex: none; display: block;
}
.status-card[data-state="loading"] .status-badge {
  animation: status-flip 1.6s ease-in-out infinite;
}
@keyframes status-flip {
  0%, 35%   { transform: rotate(0deg); }
  65%, 100% { transform: rotate(180deg); }
}

/* ---------- Floora highlight band ---------- */
.split__media.is-floora {
  background: linear-gradient(150deg, var(--c-green-light), #fff);
  display: grid; place-items: center;
}
.floora-logo { max-width: 320px; width: 100%; }

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.team-card {
  background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius);
  padding: 32px 24px; text-align: center; box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.team-card .avatar {
  width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 18px;
  display: grid; place-items: center;
  background: linear-gradient(150deg, var(--c-green-mid), var(--c-green-bright));
  color: #fff; font-size: 2.2rem; font-weight: 900;
  box-shadow: var(--shadow-sm);
}
.team-card h3 { margin-bottom: 4px; font-size: 1.25rem; }
.team-card .role {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--c-green-mid);
}

/* ---------- Partner blocks ---------- */
.partner-block {
  background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: clamp(24px, 3vw, 40px);
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 48px);
  align-items: center; margin-bottom: var(--gap);
}
.partner-block:nth-child(even) .partner-block__media { order: -1; }
.partner-head { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.partner-head img { height: 46px; width: auto; }
.partner-head .sub { font-size: 0.82rem; font-weight: 700; color: var(--c-green-mid); text-transform: uppercase; letter-spacing: 0.05em; }
.partner-features { list-style: none; padding: 0; margin: 18px 0 0; }
.partner-features li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.partner-features svg { flex-shrink: 0; color: var(--c-green-mid); margin-top: 3px; }
.partner-features b { color: var(--c-green-dark); display: block; }
.partner-features span { color: var(--c-muted); font-size: 0.92rem; }
.partner-block__media {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--c-border);
  background: var(--c-bg-alt); aspect-ratio: 16/11; display: grid; place-items: center;
  padding: 40px;
}
.partner-block__media img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }

/* ---------- Logo strip partner ---------- */
.logo-strip {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 28px 52px;
}
.logo-strip img { height: 80px; width: auto; opacity: 0.92; transition: opacity var(--transition); }
.logo-strip img:hover { opacity: 1; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--c-green-mid), var(--c-green-dark));
  border-radius: var(--radius); padding: clamp(34px, 5vw, 60px);
  text-align: center; box-shadow: var(--shadow-md);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #e2f1e7; max-width: 56ch; margin: 0 auto 26px; font-size: 1.08rem; }

/* ---------- Responsive components ---------- */
@media (max-width: 1200px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .cert-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { order: -1; max-width: 520px; }
  .split, .contact-grid { grid-template-columns: 1fr; }
  .target-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  .partner-block { grid-template-columns: 1fr; }
  .partner-block .partner-block__media { order: -1; }
}
@media (max-width: 768px) {
  .grid--3, .grid--2, .grid--4 { grid-template-columns: 1fr; }
  .cert-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: 1fr; }
  .form .row2 { grid-template-columns: 1fr; }
  .cookie-actions .btn { flex: 1 1 100%; }

  /* Tabelle pagine legali: scroll orizzontale invece di sforare il viewport */
  .legal-content table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Dropdown nav su mobile: sottomenu inline */
  .nav__submenu {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; border-radius: 0; padding: 0 0 0 14px;
    min-width: 0;
  }
  .nav__submenu a { padding: 12px 0; border-bottom: 1px solid var(--c-bg-alt); }
}

/* ============================================================
   ACCESSIBILITÀ — pulsante + pannello strumenti (a11y.js)
   ============================================================ */

/* Pulsante trigger (iniettato nella barra di navigazione, in alto a destra) */
.a11y-toggle {
  display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--c-border);
  background: var(--c-white); color: var(--c-green-dark);
  cursor: pointer; flex-shrink: 0;
  transition: transform var(--transition), background var(--transition), color var(--transition);
}
.a11y-toggle:hover { transform: translateY(-2px); background: var(--c-green-dark); color: #fff; }
.a11y-toggle:focus-visible { outline: 3px solid var(--c-green-mid); outline-offset: 2px; }
.a11y-toggle svg { display: block; }
/* Variante flottante (se la nav non è disponibile) */
.a11y-toggle--fab { position: fixed; top: calc(var(--header-h) + 14px); right: 16px; z-index: 1400; box-shadow: var(--shadow-md); }
@media print { .a11y-toggle, .a11y-panel { display: none !important; } }

/* Pannello strumenti */
.a11y-panel {
  position: fixed; top: calc(var(--header-h) + 10px); right: 12px; z-index: 1450;
  width: min(320px, calc(100vw - 24px));
  background: var(--c-bg); color: var(--c-text);
  border: 1px solid var(--c-border); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 18px;
  opacity: 0; transform: translateY(-8px);
  transition: opacity var(--transition), transform var(--transition);
}
.a11y-panel.is-open { opacity: 1; transform: translateY(0); }
.a11y-panel[hidden] { display: none; }
.a11y-panel__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.a11y-panel__head h2 { font-size: 1.1rem; margin: 0; }
.a11y-panel__close {
  background: none; border: 0; cursor: pointer;
  font-size: 1.6rem; line-height: 1; color: var(--c-muted); padding: 0 4px;
}
.a11y-panel__close:hover { color: var(--c-green-dark); }
.a11y-panel__close:focus-visible { outline: 3px solid var(--c-green-mid); outline-offset: 2px; }

.a11y-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 0; border-top: 1px solid var(--c-border);
}
.a11y-row:first-of-type { border-top: 0; }
.a11y-row__label { font-size: 0.95rem; font-weight: 600; color: var(--c-text); }

.a11y-stepper { display: inline-flex; align-items: center; gap: 8px; }
.a11y-stepper button {
  width: 34px; height: 34px; border-radius: var(--radius-sm);
  border: 1px solid var(--c-green-mid); background: var(--c-white); color: var(--c-green-dark);
  font-weight: 700; font-size: 1rem; cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.a11y-stepper button:hover:not(:disabled) { background: var(--c-green-light); }
.a11y-stepper button:disabled { opacity: 0.4; cursor: not-allowed; }
.a11y-stepper button:focus-visible { outline: 3px solid var(--c-green-mid); outline-offset: 2px; }
.a11y-stepper__val { min-width: 48px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }

.a11y-reset { width: 100%; margin-top: 16px; justify-content: center; }

/* ------------------------------------------------------------
   MODALITÀ DI ACCESSIBILITÀ (classi su <html>)
   ------------------------------------------------------------ */

/* Alto contrasto: ridefinisce le variabili di tema → ricolora tutto il sito */
html.a11y-contrast {
  --c-bg:        #000000;
  --c-bg-alt:    #0a0a0a;
  --c-white:     #000000;
  --c-text:      #ffffff;
  --c-muted:     #f2f2f2;
  --c-black:     #ffffff;
  --c-green-dark:  #ffffff;
  --c-green-mid:   #ffe14d;
  --c-green-light: #1a1a1a;
  --c-green-bright:#ffe14d;
  --c-border:    #ffffff;
  --c-cream:     #1a1a1a;
}
html.a11y-contrast body { background: #000; color: #fff; }
html.a11y-contrast .page-hero { background: #000; color: #fff; }
html.a11y-contrast .site-header { background: #000; border-bottom: 1px solid #fff; }
html.a11y-contrast a { text-decoration: underline; }
html.a11y-contrast .btn--primary { background: var(--c-yellow); color: #000; }
html.a11y-contrast img:not([src*=".svg"]) { filter: none; }

/* Scala di grigi: applicata solo ai landmark di contenuto, così il pannello
   strumenti resta a colori e i suoi elementi fixed non vengono "agganciati". */
html.a11y-grayscale .site-header,
html.a11y-grayscale main,
html.a11y-grayscale .site-footer { filter: grayscale(100%); }

/* Link evidenziati */
html.a11y-underline a { text-decoration: underline !important; }

/* Riduzione delle animazioni */
html.a11y-no-motion,
html.a11y-no-motion *,
html.a11y-no-motion *::before,
html.a11y-no-motion *::after {
  animation-duration: 0.001ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.001ms !important;
  scroll-behavior: auto !important;
}
