/* Olimpiadi del Rispetto — stile ispirato a UNICA / MIM */

:root {
  --blue-900: #003366;
  --blue-800: #004080;
  --blue-700: #0056A4;
  --blue-600: #0066CC;
  --blue-500: #1A7FD4;
  --blue-100: #E8F4FC;
  --blue-50: #F0F7FC;
  --navy: #0D1B4D;
  --unica-yellow: #FFD100;
  --unica-blue: #0047AB;
  --unica-coral: #E07A6B;
  --unica-mint: #B8E8D8;
  --unica-lavender: #E8E0F5;
  --gray-900: #1A1A2E;
  --gray-700: #4A5568;
  --gray-500: #718096;
  --gray-200: #E2E8F0;
  --gray-100: #F7FAFC;
  --white: #ffffff;
  --green: #2A9D8F;
  --orange: #F4A261;
  --coral: #E76F51;
  --red: #E63946;
  --shadow-sm: 0 1px 3px rgba(0, 51, 102, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 51, 102, 0.1);
  --shadow-lg: 0 8px 32px rgba(0, 51, 102, 0.12);
  --radius: 12px;
  --radius-lg: 20px;
  --font: "Source Sans 3", system-ui, -apple-system, sans-serif;
  --header-h: 84px;
  --cost-per-student: 10;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--gray-900);
  background: var(--white);
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--blue-600);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--blue-800);
}

.container {
  width: min(1120px, 100% - 2rem);
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.logo-img {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-text strong {
  font-size: 1.0625rem;
  color: var(--navy);
}

.logo-text small {
  font-size: 0.8125rem;
  color: var(--gray-500);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.main-nav a:not(.btn) {
  text-decoration: none;
  font-weight: 600;
  font-size: 1.0625rem;
  color: var(--navy);
  padding: 0.25rem 0;
}

.main-nav a:not(.btn):hover {
  color: var(--blue-600);
}

.btn-nav {
  padding: 0.625rem 1.25rem;
  font-size: 1rem;
  font-weight: 700;
  background: var(--navy);
  color: var(--white) !important;
  border: 2px solid var(--navy);
  border-radius: 8px;
  white-space: nowrap;
}

.btn-nav:hover {
  background: #1a2d6b;
  border-color: #1a2d6b;
  color: var(--white) !important;
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--blue-900);
  border-radius: 2px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--blue-600);
  color: var(--white);
  border-color: var(--blue-600);
}

.btn-primary:hover {
  background: var(--blue-700);
  border-color: var(--blue-700);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--blue-600);
  border-color: var(--blue-600);
}

.btn-outline:hover {
  background: var(--blue-100);
  color: var(--blue-800);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.0625rem;
}

.btn-dark {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.btn-dark:hover {
  background: #1a2d6b;
  border-color: #1a2d6b;
  color: var(--white);
}

.btn-outline-dark {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

.btn-outline-dark:hover {
  background: rgba(13, 27, 77, 0.08);
  color: var(--navy);
}

/* Hero UNICA — unificato */
.hero-unica {
  overflow: hidden;
}

.hero-unified {
  background: var(--unica-yellow);
  padding: 3rem 0 4rem;
}

.hero-unified-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-unified .hero-content h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  line-height: 1.2;
  color: var(--navy);
  font-weight: 700;
}

.hero-unified .hero-content h1 span {
  font-weight: 400;
}

.hero-illus {
  display: flex;
  justify-content: center;
}

.hero-illus .illus-char {
  max-width: 420px;
}

.hero-unica-visual,
.hero-unica-band {
  display: none;
}

.hero-unica-band h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  line-height: 1.2;
  color: var(--navy);
  font-weight: 700;
  max-width: 28ch;
}

.hero-unica-band h1 span {
  font-weight: 400;
}

.eyebrow-dark {
  color: var(--navy);
  background: rgba(255, 255, 255, 0.55);
}

.lead-dark {
  color: var(--navy);
  opacity: 0.85;
  max-width: 60ch;
  margin-bottom: 1.5rem;
}

/* Illustrations */
.illus-char {
  width: 100%;
  max-width: 400px;
  height: auto;
}

.illus-wide {
  max-width: 560px;
  margin-inline: auto;
}

.illus-float {
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.section-illus-center {
  display: flex;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.card-char {
  width: 100px;
  height: auto;
  max-height: 115px;
  margin-bottom: 0.5rem;
}

.card-feature .card-char {
  margin-inline: auto;
}

/* Colored sections — palette ridotta: giallo, bianco, grigio, navy footer */
.section {
  padding: 4.5rem 0;
}

.section-white {
  background: var(--white);
}

.section-subtle {
  background: var(--gray-100);
}

.section-bordered {
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
}

.section-accent-top {
  border-top: 6px solid var(--unica-yellow);
}

.section-header h2 {
  color: var(--navy);
}

.section-header p {
  color: var(--gray-700);
}

/* legacy section colors — non più usati nel markup principale */
.section-blue,
.section-yellow,
.section-coral,
.section-mint,
.section-lavender {
  background: var(--white);
}

.info-banner-illus .illus-char {
  max-width: 280px;
}

/* Timeline ad albero */
.timeline {
  position: relative;
  max-width: 900px;
  margin-inline: auto;
  padding: 1rem 0;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--navy);
  transform: translateX(-50%);
  border-radius: 4px;
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 24px 1fr;
  gap: 0;
  align-items: center;
  margin-bottom: 2.5rem;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-left .timeline-card {
  grid-column: 1;
  justify-self: end;
  margin-right: 1.5rem;
}

.timeline-left .timeline-node {
  grid-column: 2;
}

.timeline-right .timeline-node {
  grid-column: 2;
}

.timeline-right .timeline-card {
  grid-column: 3;
  justify-self: start;
  margin-left: 1.5rem;
}

.timeline-node {
  width: 20px;
  height: 20px;
  background: var(--navy);
  border: 4px solid var(--unica-yellow);
  border-radius: 50%;
  z-index: 1;
  justify-self: center;
}

.timeline-card {
  position: relative;
  background: var(--white);
  border-radius: 16px;
  padding: 1.5rem 1.75rem;
  max-width: 380px;
  box-shadow: 0 4px 20px rgba(13, 27, 77, 0.12);
  border: 2px solid rgba(13, 27, 77, 0.08);
}

.timeline-left .timeline-card::after {
  content: "";
  position: absolute;
  right: -12px;
  top: 50%;
  transform: translateY(-50%);
  border: 10px solid transparent;
  border-left-color: var(--white);
  filter: drop-shadow(2px 0 0 rgba(13, 27, 77, 0.06));
}

.timeline-right .timeline-card::after {
  content: "";
  position: absolute;
  left: -12px;
  top: 50%;
  transform: translateY(-50%);
  border: 10px solid transparent;
  border-right-color: var(--white);
  filter: drop-shadow(-2px 0 0 rgba(13, 27, 77, 0.06));
}

.timeline-step {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--blue-600);
  margin-bottom: 0.5rem;
}

.timeline-icon {
  width: 72px;
  height: auto;
  max-height: 88px;
  margin-bottom: 0.75rem;
}

.timeline-icon-wide {
  width: 140px;
  max-height: 80px;
}

.timeline-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
  color: var(--navy);
}

.timeline-card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--gray-700);
  line-height: 1.55;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* FAQ */
.section-subtle .faq-item {
  background: var(--white);
}

.section-subtle .btn-outline {
  border-color: var(--navy);
  color: var(--navy);
}

.section-subtle .btn-outline:hover {
  background: rgba(13, 27, 77, 0.06);
}

/* Registration */
.section-white .registration-form {
  border: 2px solid rgba(13, 27, 77, 0.08);
}

.registration-intro {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.registration-intro .illus-char {
  max-width: 220px;
  opacity: 0.9;
}

/* Hero (legacy fallback) */
.hero {
  background: linear-gradient(180deg, var(--blue-50) 0%, var(--white) 100%);
  padding: 3rem 0 4rem;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--blue-700);
  background: var(--blue-100);
  border-radius: 999px;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.2;
  color: var(--blue-900);
  font-weight: 700;
}

.lead {
  margin: 0 0 1.5rem;
  font-size: 1.125rem;
  color: var(--gray-700);
  max-width: 54ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-illustration {
  display: flex;
  justify-content: center;
}

.illus-hero {
  width: 100%;
  max-width: 480px;
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section-alt {
  background: var(--blue-50);
}

.section-registration {
  background: linear-gradient(180deg, var(--white) 0%, var(--blue-50) 100%);
}

.section-header {
  margin-bottom: 2.5rem;
  max-width: 720px;
}

.section-header.centered {
  margin-inline: auto;
  text-align: center;
}

.section-header h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--blue-900);
  font-weight: 700;
}

.section-header p {
  margin: 0;
  color: var(--gray-700);
  font-size: 1.0625rem;
}

/* Cards */
.cards-grid {
  display: grid;
  gap: 1.5rem;
}

.cards-3 {
  grid-template-columns: repeat(3, 1fr);
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
}

.card-feature h3 {
  margin: 0.75rem 0 0.5rem;
  font-size: 1.125rem;
  color: var(--navy);
}

.card-feature {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card-feature:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.card-feature p {
  margin: 0;
  color: var(--gray-700);
  font-size: 0.9375rem;
}

.card-icon {
  width: 64px;
  height: 64px;
}

/* Steps */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
  max-width: 800px;
  margin-inline: auto;
}

.step {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  background: var(--white);
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
}

.step-num {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue-600);
  color: var(--white);
  font-weight: 700;
  font-size: 1.125rem;
  border-radius: 50%;
}

.step h3 {
  margin: 0 0 0.35rem;
  font-size: 1.0625rem;
  color: var(--blue-900);
}

.step p {
  margin: 0;
  color: var(--gray-700);
  font-size: 0.9375rem;
}

/* Partners */
.partner-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.partner-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.ministry-banner {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  background: var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  margin-bottom: 1.5rem;
  border-left: 5px solid var(--unica-yellow);
  box-shadow: var(--shadow-sm);
}

.ministry-badge {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue-600);
  color: var(--white);
  font-weight: 700;
  font-size: 0.875rem;
  border-radius: 12px;
  letter-spacing: 0.02em;
}

.ministry-banner h3 {
  margin: 0 0 0.5rem;
  color: var(--navy);
  font-size: 1.0625rem;
}

.ministry-banner p {
  margin: 0;
  color: var(--gray-700);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.partner-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
}

.partner-logo-link {
  display: inline-flex;
  align-items: center;
  margin-bottom: 1rem;
  border-radius: 8px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.partner-logo-link:hover,
.partner-logo-link:focus-visible {
  transform: translateY(-2px);
  opacity: 0.85;
}

.partner-logo-img {
  display: block;
  height: 46px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.partner-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  color: var(--blue-900);
}

.partner-card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--gray-700);
}

/* Zenkai — piattaforma dell'iniziativa (card in evidenza) */
.zenkai-banner {
  display: grid;
  grid-template-columns: minmax(150px, 200px) 1fr;
  gap: 1.75rem;
  align-items: center;
  background: linear-gradient(135deg, #FFF6EF 0%, #FFFFFF 55%);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-bottom: 2rem;
  border: 1px solid #FFD9BF;
  border-left: 5px solid #FF6A13;
  box-shadow: var(--shadow-sm);
}

.zenkai-banner-logo {
  display: flex;
  justify-content: center;
  align-items: center;
}

.zenkai-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.1em;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.zenkai-wordmark:hover,
.zenkai-wordmark:focus-visible {
  transform: translateY(-2px);
}

.zenkai-word {
  font-size: clamp(1.75rem, 3.4vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--navy);
  line-height: 1;
}

.zenkai-logo-img {
  display: block;
  height: clamp(1.9rem, 3.7vw, 2.45rem);
  width: auto;
}

.zenkai-eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #E85D04;
  margin-bottom: 0.5rem;
}

.zenkai-banner-content h3 {
  margin: 0 0 0.6rem;
  font-size: 1.25rem;
  line-height: 1.25;
  color: var(--blue-900);
}

.zenkai-banner-content h3 span {
  color: #E85D04;
}

.zenkai-banner-content p {
  margin: 0 0 1.25rem;
  color: var(--gray-700);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.zenkai-banner-content .btn {
  padding: 0.6rem 1.25rem;
  font-size: 0.9375rem;
}

.zenkai-banner-content strong {
  color: var(--blue-900);
}

.zenkai-banner-content .btn {
  background: #FF6A13;
  border-color: #FF6A13;
  color: var(--white);
}

.zenkai-banner-content .btn:hover,
.zenkai-banner-content .btn:focus-visible {
  background: #E85D04;
  border-color: #E85D04;
}

@media (max-width: 720px) {
  .zenkai-banner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1.75rem;
    text-align: center;
  }
  .zenkai-banner-logo a {
    max-width: 240px;
    margin-inline: auto;
  }
  .zenkai-banner-content h3 {
    font-size: 1.25rem;
  }
}

.info-banner {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 2px solid var(--blue-100);
  box-shadow: var(--shadow-md);
}

.info-banner h3 {
  margin: 0 0 0.5rem;
  color: var(--blue-900);
}

.info-banner p {
  margin: 0;
  color: var(--gray-700);
}

/* FAQ */
.faq-list {
  max-width: 800px;
  margin-inline: auto;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.faq-item[hidden] {
  display: none;
}

.faq-item summary {
  padding: 1.125rem 1.5rem;
  font-weight: 600;
  color: var(--blue-900);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.25rem;
  color: var(--blue-600);
  font-weight: 400;
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-answer {
  padding: 0 1.5rem 1.25rem;
}

.faq-answer p {
  margin: 0;
  color: var(--gray-700);
  font-size: 0.9375rem;
}

.faq-more {
  text-align: center;
  margin-top: 1.5rem;
}

/* Form */
.registration-form {
  max-width: 760px;
  margin-inline: auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200);
}

.registration-form fieldset {
  border: none;
  margin: 0 0 2rem;
  padding: 0;
}

.registration-form legend {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--blue-900);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--blue-100);
  width: 100%;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-row-3 {
  grid-template-columns: 2fr 1fr 1fr;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--gray-900);
}

.required {
  color: var(--red);
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  background: var(--white);
  color: var(--gray-900);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--blue-600);
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.15);
}

.form-group input:invalid:not(:placeholder-shown),
.form-group select:invalid:not(:placeholder-shown) {
  border-color: var(--red);
}

.field-hint {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.8125rem;
  color: var(--gray-500);
}

.checkbox-group {
  margin-bottom: 0.75rem;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-weight: 400;
  font-size: 0.9375rem;
  cursor: pointer;
}

.checkbox-label input {
  margin-top: 0.25rem;
  width: 18px;
  height: 18px;
  accent-color: var(--blue-600);
  flex-shrink: 0;
}

/* Calculator */
.calculator-fieldset legend {
  border-bottom-color: var(--blue-600);
}

.calculator {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: center;
  background: var(--blue-50);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 2px solid var(--blue-100);
}

.calc-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.calculator-input input[type="number"] {
  width: 120px;
  font-size: 1.25rem;
  font-weight: 700;
  text-align: center;
  padding: 0.75rem;
  border: 2px solid var(--blue-600);
  border-radius: 8px;
}

.calc-operator,
.calc-equals {
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--gray-500);
}

.calc-unit-price {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--gray-700);
  background: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--gray-200);
}

.calc-total {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--blue-600);
  background: var(--white);
  padding: 0.5rem 1.25rem;
  border-radius: 8px;
  border: 2px solid var(--blue-600);
  min-width: 120px;
  text-align: center;
}

.form-actions {
  text-align: center;
  padding-top: 0.5rem;
}

/* Summary */
.registration-summary {
  max-width: 900px;
  margin: 2rem auto 0;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  border: 2px solid var(--green);
}

.registration-summary.hidden {
  display: none;
}

.summary-header {
  text-align: center;
  margin-bottom: 2rem;
}

.summary-success-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  background: var(--green);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  font-weight: 700;
}

.summary-header h2 {
  margin: 0 0 0.5rem;
  color: var(--blue-900);
}

.summary-ref {
  margin: 0;
  color: var(--gray-700);
}

.summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.summary-block {
  background: var(--blue-50);
  border-radius: var(--radius);
  padding: 1.25rem;
  border: 1px solid var(--blue-100);
}

.summary-block h3 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  color: var(--blue-900);
}

.summary-block dl {
  margin: 0;
}

.summary-block dt {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--gray-500);
  margin-top: 0.5rem;
}

.summary-block dt:first-child {
  margin-top: 0;
}

.summary-block dd {
  margin: 0.15rem 0 0;
  font-weight: 600;
  color: var(--gray-900);
}

.summary-payment {
  grid-column: 1 / -1;
}

.payment-box {
  background: var(--white);
  border-radius: 8px;
  padding: 1.25rem;
  border: 1px solid var(--gray-200);
}

.payment-box p {
  margin: 0 0 0.5rem;
  font-size: 0.9375rem;
}

.payment-box code {
  background: var(--blue-100);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-size: 0.875rem;
  word-break: break-all;
}

.amount-highlight {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--blue-600);
}

.payment-note {
  margin-top: 1rem !important;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--gray-200);
  font-size: 0.875rem !important;
  color: var(--gray-500) !important;
}

.regolamento-block {
  background: var(--gray-100);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  max-height: 400px;
  overflow-y: auto;
  border: 1px solid var(--gray-200);
}

.regolamento-block h3 {
  margin: 0 0 1rem;
  color: var(--blue-900);
  position: sticky;
  top: 0;
  background: var(--gray-100);
  padding-bottom: 0.5rem;
}

.regolamento-content h4 {
  margin: 1rem 0 0.35rem;
  font-size: 0.9375rem;
  color: var(--blue-800);
}

.regolamento-content p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--gray-700);
}

.summary-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Footer */
.site-footer {
  background: var(--blue-900);
  color: rgba(255, 255, 255, 0.85);
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  padding: 3rem 0 2rem;
}

.footer-brand strong {
  display: block;
  font-size: 1.125rem;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.footer-brand p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
}

.footer-links h4 {
  margin: 0 0 0.75rem;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--white);
}

.footer-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.35rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 0.875rem;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding: 1rem 0;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
}

/* Print */
@media print {
  .site-header,
  .site-footer,
  .registration-form,
  .summary-actions,
  .hero-unica,
  .hero,
  .section:not(.section-registration) {
    display: none !important;
  }

  .registration-summary {
    border: none;
    box-shadow: none;
    max-width: 100%;
  }

  .regolamento-block {
    max-height: none;
    overflow: visible;
  }
}

/* Responsive */
@media (max-width: 900px) {
  .hero-unified-grid,
  .hero-grid,
  .cards-3,
  .partner-grid,
  .partner-grid-2,
  .summary-grid {
    grid-template-columns: 1fr;
  }

  .timeline::before {
    left: 20px;
  }

  .timeline-item {
    grid-template-columns: 40px 1fr;
    gap: 0 1rem;
  }

  .timeline-left .timeline-card,
  .timeline-right .timeline-card {
    grid-column: 2;
    grid-row: 1;
    justify-self: stretch;
    margin: 0;
    max-width: none;
  }

  .timeline-left .timeline-node,
  .timeline-right .timeline-node {
    grid-column: 1;
    grid-row: 1;
    justify-self: center;
  }

  .timeline-left .timeline-card::after,
  .timeline-right .timeline-card::after {
    left: -12px;
    right: auto;
    border: 10px solid transparent;
    border-right-color: var(--white);
    border-left-color: transparent;
    filter: drop-shadow(-2px 0 0 rgba(13, 27, 77, 0.06));
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .form-row,
  .form-row-3 {
    grid-template-columns: 1fr;
  }

  .calculator {
    grid-template-columns: 1fr;
  }

  .calculator-visual {
    display: none;
  }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--white);
    padding: 1rem;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-md);
  }

  .main-nav.is-open {
    display: flex;
  }

  .menu-toggle {
    display: flex;
  }

  .info-banner {
    flex-direction: column;
    text-align: center;
  }

  .ministry-banner {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .calc-row {
    justify-content: center;
  }
}
