* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --blue: #1e4fa8;
  --blue-dark: #163d82;
  --blue-light: #edf4ff;
  --white: #ffffff;
  --text: #1f2937;
  --text-soft: #5b6472;
  --border: #d8e2f0;
  --bg-soft: #f7faff;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

body {
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* HEADER */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-content {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo-box {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.logo-text .small-text {
  display: block;
  font-size: 12px;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.logo-text h1 {
  font-size: 22px;
  color: var(--text);
}

.main-nav ul {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.main-nav a {
  color: var(--text);
  font-weight: 600;
  transition: 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--blue);
}

/* HERO */
.hero {
  padding: 70px 0;
  background: linear-gradient(to bottom right, var(--blue-light), var(--white));
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
}

.badge {
  display: inline-block;
  background: var(--white);
  color: var(--blue);
  border: 1px solid var(--border);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  margin-bottom: 20px;
  font-weight: bold;
}

.hero-text h2 {
  font-size: 52px;
  line-height: 1.1;
  margin-bottom: 20px;
  color: var(--blue-dark);
}

.hero-text p {
  font-size: 18px;
  color: var(--text-soft);
  margin-bottom: 25px;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 14px 22px;
  border-radius: 12px;
  font-weight: bold;
  transition: 0.2s ease;
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--blue-dark);
}

.btn-secondary {
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text);
}

.btn-secondary:hover {
  background: var(--bg-soft);
}

.hero-image-box {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-image {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

/* SEZIONI */
.section {
  padding: 70px 0;
}

.alt-section {
  background: var(--bg-soft);
}

.section-title {
  text-align: center;
  margin-bottom: 35px;
}

.section-title h3 {
  font-size: 34px;
  color: var(--blue-dark);
  margin-bottom: 10px;
}

.section-title p {
  color: var(--text-soft);
}

/* CARDS */
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.card h4 {
  color: var(--blue-dark);
  margin-bottom: 10px;
  font-size: 22px;
}

.card p {
  color: var(--text-soft);
}

/* DUE COLONNE */
.two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: start;
}

.two-columns h3 {
  font-size: 32px;
  margin-bottom: 12px;
  color: var(--blue-dark);
}

.info-list {
  display: grid;
  gap: 14px;
}

.info-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 18px;
  font-weight: 600;
  box-shadow: var(--shadow);
}

/* PAGINE INTERNE */
.page-banner {
  background: linear-gradient(to right, var(--blue), var(--blue-dark));
  color: var(--white);
  padding: 60px 0;
}

.page-banner h2 {
  font-size: 42px;
  margin-bottom: 8px;
}

.page-content {
  padding: 60px 0;
}

.page-content p {
  margin-bottom: 18px;
  color: var(--text-soft);
}

/* GALLERIA */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.gallery-grid img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

/* FOOTER */
.site-footer {
  background: var(--blue-dark);
  color: var(--white);
  padding: 24px 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

/* RESPONSIVE */
@media (max-width: 992px) {
  .hero-grid,
  .two-columns,
  .cards,
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-text h2 {
    font-size: 42px;
  }
}

@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    justify-content: center;
    padding: 15px 0;
  }

  .main-nav ul {
    justify-content: center;
  }

  .hero-grid,
  .two-columns,
  .cards,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .hero-text h2 {
    font-size: 34px;
  }

  .hero-image {
    height: 280px;
  }

  .page-banner h2 {
    font-size: 32px;
  }
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.contact-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.contact-card h3 {
  font-size: 24px;
  color: var(--blue-dark);
  margin-bottom: 10px;
}

.contact-card p {
  color: var(--text-soft);
  margin-bottom: 14px;
}

.contact-link {
  display: inline-block;
  font-size: 20px;
  font-weight: bold;
  color: var(--blue);
  word-break: break-word;
}

.contact-link:hover {
  color: var(--blue-dark);
}

.contact-extra {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 30px;
}

.contact-extra h3 {
  font-size: 28px;
  color: var(--blue-dark);
  margin-bottom: 10px;
}

.contact-extra p {
  color: var(--text-soft);
  margin-bottom: 18px;
}

.social-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.social-btn {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--white);
  font-weight: 600;
  color: var(--blue-dark);
  transition: 0.2s ease;
}

.social-btn:hover {
  background: var(--blue);
  color: var(--white);
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.gallery-year-block {
  margin-bottom: 50px;
}

.gallery-year-header {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.gallery-year-header h3 {
  font-size: 32px;
  color: var(--blue-dark);
}

/* MASONRY */
.masonry-gallery {
  column-count: 3;
  column-gap: 18px;
}

.gallery-item {
  position: relative;
  margin-bottom: 18px;
  break-inside: avoid;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: var(--white);
}

.gallery-item img {
  width: 100%;
  display: block;
  border-radius: 18px;
  transition: transform 0.35s ease;
}

/* OVERLAY / FILIGRANA */
.gallery-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 18px;
  background: linear-gradient(
    to top,
    rgba(22, 61, 130, 0.78),
    rgba(22, 61, 130, 0.3),
    rgba(22, 61, 130, 0.08)
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-caption {
  color: var(--white);
  font-size: 14px;
  line-height: 1.45;
  font-weight: 500;
  transform: translateY(12px);
  opacity: 0;
  transition: all 0.3s ease;
  max-width: 95%;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-item:hover .gallery-caption {
  transform: translateY(0);
  opacity: 1;
}

/* Responsive */
@media (max-width: 992px) {
  .masonry-gallery {
    column-count: 2;
  }
}

@media (max-width: 768px) {
  .masonry-gallery {
    column-count: 1;
  }

  .gallery-year-header h3 {
    font-size: 26px;
  }
}

/* HERO MODERNA */
.hero-modern {
  position: relative;
  min-height: 720px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--white);
}

.hero-modern-bg {
  position: absolute;
  inset: 0;
}

.hero-modern-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-modern-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(10, 33, 72, 0.82) 0%,
    rgba(10, 33, 72, 0.7) 38%,
    rgba(10, 33, 72, 0.35) 100%
  );
}

.hero-modern-content {
  position: relative;
  z-index: 2;
  width: 100%;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 30px;
  align-items: center;
}

.hero-modern-left h2 {
  font-size: 68px;
  line-height: 1.02;
  margin: 20px 0 20px;
  color: var(--white);
}

.hero-modern-text {
  max-width: 700px;
  font-size: 20px;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 30px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-chip {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 14px;
  font-weight: 700;
}

.hero-modern-right {
  display: flex;
  justify-content: flex-end;
}

.hero-side-card {
  width: 100%;
  max-width: 360px;
  padding: 28px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.hero-side-logo {
  width: 82px;
  margin-bottom: 18px;
}

.hero-side-card h3 {
  font-size: 28px;
  margin-bottom: 12px;
  color: var(--white);
}

.hero-side-card p {
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.6;
}

.btn-light {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: var(--white);
}

.btn-light:hover {
  background: rgba(255, 255, 255, 0.22);
}

/* TITOLI */
.left-title {
  text-align: left;
}

.home-title-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  text-align: left;
}

.section-kicker {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
}

.section-kicker-light {
  color: rgba(255, 255, 255, 0.82);
}

.text-link {
  color: var(--blue-dark);
  font-weight: 700;
}

.text-link:hover {
  text-decoration: underline;
}

/* QUICK CARDS */
.quick-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.quick-card {
  display: block;
  padding: 26px;
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease;
}

.quick-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 34px rgba(16, 24, 40, 0.08);
}

.quick-icon {
  width: 58px;
  height: 58px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: var(--blue-light);
  font-size: 26px;
}

.quick-card h4 {
  font-size: 24px;
  color: var(--blue-dark);
  margin-bottom: 10px;
}

.quick-card p {
  color: var(--text-soft);
}

/* ABOUT HOME */
.home-about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
  align-items: start;
}

.home-about-text h3 {
  font-size: 38px;
  margin-bottom: 18px;
  color: var(--blue-dark);
}

.home-about-text p {
  color: var(--text-soft);
  line-height: 1.8;
  margin-bottom: 18px;
}

.home-about-boxes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.home-info-box {
  padding: 22px;
  border-radius: 20px;
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.home-info-box strong {
  display: block;
  font-size: 22px;
  color: var(--blue-dark);
  margin-bottom: 8px;
}

.home-info-box span {
  color: var(--text-soft);
  line-height: 1.6;
}

/* NEWS HOME */
.home-news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.home-news-card {
  overflow: hidden;
  border-radius: 24px;
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.home-news-image img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.home-news-body {
  padding: 22px;
}

.home-news-date {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--blue);
}

.home-news-body h4 {
  font-size: 24px;
  color: var(--blue-dark);
  margin-bottom: 12px;
}

.home-news-body p {
  color: var(--text-soft);
  line-height: 1.6;
}

/* GALLERIA HOME */
.home-gallery-preview {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
  align-items: stretch;
}

.home-gallery-large,
.home-gallery-small {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.home-gallery-large img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  display: block;
}

.home-gallery-small-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.home-gallery-small img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

/* CTA */
.home-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 38px;
  border-radius: 28px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: var(--white);
  box-shadow: 0 18px 40px rgba(31, 87, 184, 0.22);
}

.home-cta h3 {
  font-size: 38px;
  margin-bottom: 12px;
}

.home-cta p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.7;
}

.home-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn-white {
  background: var(--white);
  color: var(--blue-dark);
}

.btn-white:hover {
  background: #f4f7fb;
}

.btn-outline-white {
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: transparent;
  color: var(--white);
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* FOOTER */
.site-footer-modern {
  background: var(--blue-dark);
  color: var(--white);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.footer-grid h4 {
  margin-bottom: 12px;
  font-size: 22px;
}

.footer-grid p,
.footer-grid a {
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.7;
}

/* RESPONSIVE */
@media (max-width: 1200px) {
  .hero-modern-content,
  .home-gallery-preview,
  .home-about-grid {
    grid-template-columns: 1fr;
  }

  .quick-cards,
  .home-news-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .hero-modern {
    min-height: 680px;
  }

  .hero-modern-left h2 {
    font-size: 48px;
  }

  .home-title-row,
  .home-cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .home-about-boxes,
  .quick-cards,
  .home-news-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .home-gallery-small-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 650px) {
  .hero-modern-left h2 {
    font-size: 38px;
  }

  .hero-modern-text {
    font-size: 17px;
  }

  .hero-modern {
    min-height: 620px;
  }

  .home-gallery-small-grid {
    grid-template-columns: 1fr;
  }

  .home-gallery-large img {
    min-height: 320px;
  }

  .home-gallery-small img {
    height: 220px;
  }

  .home-cta h3,
  .home-about-text h3 {
    font-size: 30px;
  }
}

/* =========================================
   VOLONTARIO PAGE - FIX COMPLETO FORM
========================================= */

.volunteer-page {
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.volunteer-progress {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.volunteer-progress-step {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  border: 1px solid #d8e2f0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.volunteer-progress-step span {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #edf4ff;
  color: #163d82;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  flex-shrink: 0;
}

.volunteer-progress-step strong {
  display: block;
  color: #163d82;
  font-size: 15px;
}

.volunteer-progress-step small {
  color: #5b6472;
  font-size: 13px;
}

.volunteer-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: start;
}

.volunteer-sidebar {
  position: sticky;
  top: 110px;
}

.volunteer-side-card {
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  border: 1px solid #d8e2f0;
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  padding: 22px;
}

.volunteer-side-card h4 {
  font-size: 24px;
  color: #163d82;
  margin-bottom: 10px;
}

.volunteer-side-card p {
  color: #5b6472;
  line-height: 1.7;
  margin-bottom: 18px;
}

.volunteer-side-points {
  display: grid;
  gap: 14px;
}

.volunteer-side-point {
  padding: 14px 16px;
  border-radius: 16px;
  background: #f8fbff;
  border: 1px solid #d8e2f0;
}

.volunteer-side-point strong {
  display: block;
  color: #163d82;
  margin-bottom: 4px;
}

.volunteer-side-point span {
  color: #5b6472;
  line-height: 1.5;
  font-size: 14px;
}

.volunteer-form.volunteer-form-modern {
  display: grid;
  gap: 24px;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.volunteer-block {
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  border: 1px solid #d8e2f0;
  border-radius: 24px;
  padding: 26px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.volunteer-block-header {
  margin-bottom: 18px;
}

.volunteer-block-header h4 {
  font-size: 28px;
  color: #163d82;
  margin-bottom: 6px;
}

.volunteer-block-header p {
  color: #5b6472;
  line-height: 1.6;
}

.volunteer-grid.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: start;
}

.volunteer-grid.three {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 18px;
  align-items: start;
}

.volunteer-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.volunteer-form .form-group label {
  font-weight: 700;
  color: #1f2937;
  min-height: 22px;
}

.volunteer-form .form-group input,
.volunteer-form .form-group select,
.volunteer-form .form-group textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #d8e2f0;
  border-radius: 16px;
  background: #fff;
  font-size: 15px;
  line-height: 1.2;
  font-family: inherit;
}

.volunteer-form .form-group input,
.volunteer-form .form-group select {
  height: 52px;
  padding: 0 16px;
}

.volunteer-form .form-group textarea {
  min-height: 120px;
  padding: 14px 16px;
  resize: vertical;
}

.volunteer-form .form-group input:focus,
.volunteer-form .form-group select:focus,
.volunteer-form .form-group textarea:focus {
  outline: none;
  border-color: #93b4ec;
  box-shadow: 0 0 0 4px rgba(31, 87, 184, 0.1);
}

.volunteer-form .form-group select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #5b6472 50%),
    linear-gradient(135deg, #5b6472 50%, transparent 50%);
  background-position:
    calc(100% - 20px) calc(50% - 3px),
    calc(100% - 14px) calc(50% - 3px);
  background-size:
    6px 6px,
    6px 6px;
  background-repeat: no-repeat;
  padding-right: 40px;
}

.field-help {
  margin-top: 2px;
  font-size: 12px;
  color: #5b6472;
  line-height: 1.4;
}

.volunteer-section {
  padding: 22px;
  border-radius: 20px;
  background: #f8fbff;
  border: 1px solid #d8e2f0;
}

.volunteer-section h5 {
  font-size: 20px;
  color: #163d82;
  margin-bottom: 14px;
}

.checkbox-grid {
  display: grid;
  gap: 12px;
}

.modern-checkbox-grid label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid #d8e2f0;
  border-radius: 16px;
  background: #fff;
  transition: 0.2s ease;
  min-height: 56px;
  box-sizing: border-box;
}

.modern-checkbox-grid label:hover {
  border-color: #bdd4f7;
  box-shadow: 0 10px 20px rgba(31, 87, 184, 0.06);
  transform: translateY(-1px);
}

.modern-checkbox-grid label span {
  flex: 1;
}

.modern-checkbox-grid input[type="checkbox"] {
  margin-top: 4px;
  flex-shrink: 0;
}

.cf-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: stretch;
  width: 100%;
}

.cf-row input {
  min-width: 0;
  width: 100%;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cf-generate-btn {
  height: 52px;
  min-width: 110px;
  padding: 0 18px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
}

.step-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 18px;
}

.step-actions.between {
  justify-content: space-between;
}

.submit-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.step-actions .btn,
.submit-actions .btn {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.volunteer-submit-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 26px;
  border-radius: 24px;
  background: linear-gradient(135deg, #1e4fa8 0%, #163d82 100%);
  color: #ffffff;
  box-shadow: 0 18px 40px rgba(31, 87, 184, 0.18);
}

.volunteer-submit-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.volunteer-submit-text strong {
  font-size: 24px;
}

.volunteer-submit-text span {
  color: rgba(255, 255, 255, 0.88);
}

.volunteer-submit-btn {
  min-width: 220px;
}

.volunteer-alert {
  padding: 18px 20px;
  border-radius: 18px;
  margin-bottom: 20px;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.volunteer-success {
  background: linear-gradient(180deg, #ecfdf3 0%, #e8fff2 100%);
  color: #166534;
  border: 1px solid #bbf7d0;
}

.volunteer-error {
  background: linear-gradient(180deg, #fff1f2 0%, #fff7f7 100%);
  color: #b42318;
  border: 1px solid #fecdd3;
}

@media (max-width: 1100px) {
  .volunteer-layout {
    grid-template-columns: 1fr;
  }

  .volunteer-sidebar {
    position: static;
  }
}

@media (max-width: 980px) {
  .volunteer-submit-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .volunteer-submit-btn {
    width: 100%;
  }
}

@media (max-width: 900px) {
  .volunteer-progress {
    grid-template-columns: 1fr 1fr;
  }

  .volunteer-grid.three {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .volunteer-grid.two,
  .volunteer-progress,
  .cf-row {
    grid-template-columns: 1fr;
  }

  .cf-generate-btn {
    width: 100%;
  }

  .submit-actions {
    width: 100%;
  }

  .submit-actions .btn {
    width: 100%;
  }
}

/* ===== FIX CODICE FISCALE DEFINITIVO ===== */

.cf-row {
  display: flex !important;
  gap: 10px;
  width: 100%;
}

.cf-row input {
  flex: 1;
  min-width: 0;
  width: 100%;
  font-family: monospace;
  letter-spacing: 1px;
  font-size: 14px;
}

.cf-generate-btn {
  flex-shrink: 0;
  width: auto;
  min-width: 110px;
}

/* IMPORTANTISSIMO: evita tagli nei grid */
.volunteer-grid,
.volunteer-grid.two,
.volunteer-grid.three {
  min-width: 0;
}

.form-group {
  min-width: 0;
}

.volunteer-block,
.volunteer-form,
.volunteer-grid {
  overflow: visible !important;
}

.cf-full-row {
  width: 100%;
}

.cf-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  width: 100%;
  align-items: stretch;
}

.cf-row input {
  width: 100%;
  min-width: 0;
  font-family: monospace;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.cf-generate-btn {
  min-width: 110px;
  height: 52px;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .cf-row {
    grid-template-columns: 1fr;
  }

  .cf-generate-btn {
    width: 100%;
  }
}

.cf-full-row {
  width: 100%;
}

.cf-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  width: 100%;
  align-items: stretch;
}

.cf-row input {
  width: 100%;
  min-width: 0;
  font-family: monospace;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.cf-generate-btn {
  min-width: 110px;
  height: 52px;
  white-space: nowrap;
}

.volunteer-grid.three {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 18px;
  align-items: start;
}

@media (max-width: 900px) {
  .volunteer-grid.three {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .cf-row {
    grid-template-columns: 1fr;
  }

  .cf-generate-btn {
    width: 100%;
  }
}

:root {
  --bg: #07111f;
  --bg-soft: #0d1a2d;
  --bg-card: rgba(14, 28, 48, 0.88);
  --bg-card-2: rgba(20, 36, 60, 0.92);
  --primary: #2f5bcc;
  --primary-light: #4f78e6;
  --primary-dark: #193a93;
  --text: #eef4ff;
  --text-soft: #adc0e3;
  --border: rgba(120, 156, 226, 0.18);
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --container: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, Arial, Helvetica, sans-serif;
  background:
    radial-gradient(
      circle at top left,
      rgba(47, 91, 204, 0.2),
      transparent 26%
    ),
    radial-gradient(
      circle at 85% 8%,
      rgba(79, 120, 230, 0.14),
      transparent 18%
    ),
    linear-gradient(180deg, #07111f 0%, #091524 45%, #060f1b 100%);
  color: var(--text);
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 17, 31, 0.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  padding: 6px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
}

.brand-subtitle {
  font-size: 0.84rem;
  color: var(--text-soft);
  margin-top: 4px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.main-nav a {
  padding: 12px 16px;
  border-radius: 999px;
  color: var(--text-soft);
  font-size: 0.95rem;
  font-weight: 600;
  transition: 0.25s;
}

.main-nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.main-nav .nav-cta {
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-light) 100%
  );
  color: #fff;
  box-shadow: 0 12px 28px rgba(47, 91, 204, 0.35);
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 1.8rem;
  cursor: pointer;
}

.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    rgba(4, 10, 20, 0.94) 0%,
    rgba(9, 19, 35, 0.86) 35%,
    rgba(15, 35, 68, 0.68) 62%,
    rgba(21, 52, 104, 0.4) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 30px;
  align-items: center;
  padding: 70px 0;
}

.hero-badge,
.section-kicker,
.news-tag {
  display: inline-flex;
  align-items: center;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(79, 120, 230, 0.14);
  border: 1px solid rgba(113, 149, 226, 0.18);
  color: #dfe9ff;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-left h1 {
  margin: 18px 0 18px;
  font-size: clamp(2.8rem, 5vw, 5.4rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
  max-width: 900px;
}

.hero-left p {
  max-width: 720px;
  font-size: 1.08rem;
  line-height: 1.8;
  color: rgba(238, 244, 255, 0.82);
  margin: 0 0 30px;
}

.hero-buttons,
.cta-buttons,
.contact-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.96rem;
  transition: 0.25s;
}

.btn-primary {
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-light) 100%
  );
  color: #fff;
  box-shadow: 0 14px 30px rgba(47, 91, 204, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
}

.btn-secondary {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.09);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 34px;
  max-width: 760px;
}

.hero-stat {
  background: rgba(10, 23, 40, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 18px;
  backdrop-filter: blur(10px);
}

.hero-stat strong {
  display: block;
  font-size: 1.45rem;
  margin-bottom: 6px;
  color: #fff;
}

.hero-stat span {
  color: var(--text-soft);
  font-size: 0.92rem;
}

.hero-right {
  display: flex;
  justify-content: center;
}

.hero-card {
  width: 100%;
  max-width: 390px;
  padding: 28px;
  background: rgba(10, 21, 38, 0.74);
  border: 1px solid rgba(126, 159, 224, 0.16);
  border-radius: 30px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  text-align: center;
}

.hero-card-logo {
  width: 180px;
  margin: 0 auto 20px;
  object-fit: contain;
}

.hero-card h3 {
  margin: 0 0 14px;
  font-size: 1.5rem;
}

.hero-card p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.8;
}

.section {
  padding: 90px 0;
}

.dark-section {
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.section-header {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-header h2 {
  margin: 14px 0 14px;
  font-size: clamp(2rem, 3vw, 3.3rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.section-header p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.8;
}

.about-grid,
.services-grid,
.news-grid {
  display: grid;
  gap: 20px;
}

.about-grid {
  grid-template-columns: repeat(3, 1fr);
}

.services-grid {
  grid-template-columns: repeat(4, 1fr);
}

.news-grid {
  grid-template-columns: repeat(3, 1fr);
}

.info-box,
.service-card,
.news-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.info-box h3,
.service-card h3,
.news-card h3 {
  margin: 0 0 12px;
  font-size: 1.2rem;
}

.info-box p,
.service-card p,
.news-card p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.75;
}

.service-card {
  position: relative;
  overflow: hidden;
  transition: 0.25s;
}

.service-card:hover,
.news-card:hover,
.info-box:hover {
  transform: translateY(-4px);
}

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: linear-gradient(
    135deg,
    rgba(47, 91, 204, 0.16),
    rgba(79, 120, 230, 0.22)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 1.4rem;
  font-weight: 800;
}

.cta-section,
.contact-banner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  align-items: center;
}

.cta-text h2,
.contact-left h2 {
  margin: 14px 0 14px;
  font-size: clamp(2rem, 3vw, 3.2rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.cta-text p,
.contact-left p {
  margin: 0 0 24px;
  color: var(--text-soft);
  line-height: 1.8;
  max-width: 700px;
}

.cta-image-box,
.contact-right {
  background: var(--bg-card-2);
  border: 1px solid var(--border);
  border-radius: 30px;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  box-shadow: var(--shadow);
}

.cta-image-box img,
.contact-right img {
  max-width: 68%;
  object-fit: contain;
}

.news-tag {
  margin-bottom: 16px;
}

.news-card a {
  display: inline-block;
  margin-top: 18px;
  color: #dfe8ff;
  font-weight: 700;
}

.site-footer {
  padding: 28px 0 38px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(4, 10, 18, 0.65);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-brand strong {
  color: #fff;
}

.footer-brand span,
.footer-links a {
  color: var(--text-soft);
}

.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

@media (max-width: 1100px) {
  .hero-content,
  .cta-section,
  .contact-banner {
    grid-template-columns: 1fr;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  .hero-right {
    justify-content: flex-start;
  }
}

@media (max-width: 860px) {
  .menu-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: #0c1728;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 20px;
    padding: 16px;
    box-shadow: var(--shadow);
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    width: 100%;
    text-align: center;
  }

  .hero {
    min-height: auto;
  }

  .hero-content {
    padding: 120px 0 60px;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 70px 0;
  }

  .hero-left h1 {
    font-size: 2.45rem;
  }

  .hero-card {
    padding: 22px;
  }
}

.timeline {
  position: relative;
  margin-top: 40px;
  padding-left: 30px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 0;
  width: 2px;
  height: 100%;
  background: rgba(120, 156, 226, 0.2);
}

.timeline-item {
  position: relative;
  margin-bottom: 35px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -2px;
  top: 6px;
  width: 14px;
  height: 14px;
  background: #4f78e6;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(79, 120, 230, 0.2);
}

.timeline-year {
  font-size: 0.9rem;
  font-weight: 800;
  color: #8fb1ff;
  margin-bottom: 8px;
}

.timeline-content h3 {
  margin: 0 0 8px;
  font-size: 1.2rem;
}

.timeline-content p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.8;
}

/* =====================================================
   VOLONTARIO.PHP - STILE ABBINATO AL LAYOUT FUTURISTICO
   Da inserire alla FINE di style.css
   Mantiene invariati HTML, form e script
===================================================== */

/* palette dark coerente con lo stile moderno del sito */
:root {
  --vol-bg: #07111f;
  --vol-bg-soft: #0c1728;
  --vol-bg-card: rgba(14, 28, 48, 0.9);
  --vol-bg-card-2: rgba(18, 34, 56, 0.94);
  --vol-primary: #2f5bcc;
  --vol-primary-light: #4f78e6;
  --vol-primary-dark: #193a93;
  --vol-text: #eef4ff;
  --vol-text-soft: #adc0e3;
  --vol-border: rgba(120, 156, 226, 0.18);
  --vol-border-strong: rgba(143, 177, 255, 0.24);
  --vol-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  --vol-radius-xl: 30px;
  --vol-radius-lg: 24px;
  --vol-radius-md: 18px;
}

body {
  background:
    radial-gradient(
      circle at top left,
      rgba(47, 91, 204, 0.2),
      transparent 26%
    ),
    radial-gradient(
      circle at 85% 8%,
      rgba(79, 120, 230, 0.14),
      transparent 18%
    ),
    linear-gradient(180deg, #07111f 0%, #091524 45%, #060f1b 100%);
  color: var(--vol-text);
}

/* header adattato alle classi reali di volontario.php */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(7, 17, 31, 0.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-content {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo-box {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  padding: 6px;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.logo-text .small-text {
  font-size: 0.84rem;
  color: var(--vol-text-soft);
  margin: 0 0 4px;
  letter-spacing: 0.04em;
}

.logo-text h1 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 999px;
  color: var(--vol-text-soft);
  font-size: 0.95rem;
  font-weight: 600;
  transition: 0.25s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

/* banner pagina */
.page-banner {
  position: relative;
  overflow: hidden;
  padding: 90px 0 70px;
  background: linear-gradient(
    115deg,
    rgba(4, 10, 20, 0.96) 0%,
    rgba(9, 19, 35, 0.9) 40%,
    rgba(15, 35, 68, 0.8) 100%
  );
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.page-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 10% 15%,
      rgba(79, 120, 230, 0.2),
      transparent 24%
    ),
    radial-gradient(circle at 90% 20%, rgba(47, 91, 204, 0.22), transparent 22%);
  pointer-events: none;
}

.page-banner .container {
  position: relative;
  z-index: 1;
}

.page-banner h2 {
  margin: 0 0 14px;
  font-size: clamp(2.4rem, 4vw, 4.2rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
  color: #fff;
}

.page-banner p {
  max-width: 760px;
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.8;
  color: rgba(238, 244, 255, 0.82);
}

.page-content.volunteer-page {
  position: relative;
  padding: 42px 0 90px;
  background: transparent;
}

/* progress */
.volunteer-progress {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.volunteer-progress-step {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 22px;
  background: rgba(10, 21, 38, 0.72);
  border: 1px solid var(--vol-border);
  box-shadow: var(--vol-shadow);
  backdrop-filter: blur(14px);
}

.volunteer-progress-step span {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(
    135deg,
    var(--vol-primary) 0%,
    var(--vol-primary-light) 100%
  );
  box-shadow: 0 12px 24px rgba(47, 91, 204, 0.35);
}

.volunteer-progress-step strong {
  display: block;
  color: #fff;
  font-size: 0.96rem;
}

.volunteer-progress-step small {
  color: var(--vol-text-soft);
  font-size: 0.82rem;
}

/* layout */
.volunteer-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 24px;
  align-items: start;
}

.volunteer-sidebar {
  position: sticky;
  top: 108px;
}

/* cards */
.volunteer-block,
.volunteer-side-card,
.volunteer-alert {
  background: var(--vol-bg-card);
  border: 1px solid var(--vol-border);
  border-radius: var(--vol-radius-xl);
  box-shadow: var(--vol-shadow);
  backdrop-filter: blur(16px);
}

.volunteer-form.volunteer-form-modern {
  display: grid;
  gap: 24px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.volunteer-block {
  padding: 28px;
}

.volunteer-block-header {
  margin-bottom: 22px;
}

.volunteer-block-header h4 {
  margin: 0 0 8px;
  font-size: clamp(1.6rem, 2.2vw, 2rem);
  line-height: 1.05;
  color: #fff;
  letter-spacing: -0.03em;
}

.volunteer-block-header p {
  margin: 0;
  color: var(--vol-text-soft);
  line-height: 1.7;
}

.volunteer-side-card {
  padding: 24px;
}

.volunteer-side-card h4 {
  margin: 0 0 12px;
  font-size: 1.4rem;
  color: #fff;
}

.volunteer-side-card p {
  color: var(--vol-text-soft);
  line-height: 1.7;
}

.volunteer-side-points {
  display: grid;
  gap: 14px;
}

.volunteer-side-point {
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.volunteer-side-point strong {
  display: block;
  margin-bottom: 5px;
  color: #fff;
}

.volunteer-side-point span {
  color: var(--vol-text-soft);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* grids */
.volunteer-grid.two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.volunteer-grid.three {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.volunteer-grid,
.volunteer-grid.two,
.volunteer-grid.three,
.form-group {
  min-width: 0;
}

/* form */
.volunteer-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.volunteer-form .form-group label {
  font-weight: 700;
  color: #f3f7ff;
  min-height: 22px;
}

.volunteer-form .form-group input,
.volunteer-form .form-group select,
.volunteer-form .form-group textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(143, 177, 255, 0.16);
  border-radius: var(--vol-radius-md);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-size: 15px;
  line-height: 1.3;
  font-family: inherit;
  transition:
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    background 0.22s ease;
}

.volunteer-form .form-group input,
.volunteer-form .form-group select {
  height: 54px;
  padding: 0 16px;
}

.volunteer-form .form-group textarea {
  min-height: 130px;
  padding: 14px 16px;
  resize: vertical;
}

.volunteer-form .form-group input::placeholder,
.volunteer-form .form-group textarea::placeholder {
  color: rgba(173, 192, 227, 0.7);
}

.volunteer-form .form-group input:focus,
.volunteer-form .form-group select:focus,
.volunteer-form .form-group textarea:focus {
  outline: none;
  border-color: rgba(111, 155, 255, 0.55);
  box-shadow: 0 0 0 4px rgba(47, 91, 204, 0.16);
  background: rgba(255, 255, 255, 0.06);
}

.volunteer-form .form-group select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #dfe9ff 50%),
    linear-gradient(135deg, #dfe9ff 50%, transparent 50%);
  background-position:
    calc(100% - 20px) calc(50% - 3px),
    calc(100% - 14px) calc(50% - 3px);
  background-size:
    6px 6px,
    6px 6px;
  background-repeat: no-repeat;
  padding-right: 40px;
}

.volunteer-form .form-group select option {
  color: #0b1626;
}

.field-help {
  margin-top: 2px;
  font-size: 12px;
  color: var(--vol-text-soft);
  line-height: 1.45;
}

/* blocchi interni */
.volunteer-section {
  padding: 22px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.volunteer-section + .volunteer-section {
  margin-top: 18px;
}

.volunteer-section h5 {
  margin: 0 0 14px;
  font-size: 1.12rem;
  color: #fff;
}

.checkbox-grid {
  display: grid;
  gap: 12px;
}

.modern-checkbox-grid label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 15px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
  min-height: 58px;
  box-sizing: border-box;
}

.modern-checkbox-grid label:hover {
  transform: translateY(-1px);
  border-color: rgba(111, 155, 255, 0.28);
  background: rgba(255, 255, 255, 0.06);
}

.modern-checkbox-grid label span {
  flex: 1;
  color: #f3f7ff;
}

.modern-checkbox-grid input[type="checkbox"] {
  margin-top: 4px;
  flex-shrink: 0;
  accent-color: var(--vol-primary-light);
}

/* codice fiscale */
.cf-full-row {
  width: 100%;
}

.cf-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: stretch;
  width: 100%;
}

.cf-row input {
  width: 100%;
  min-width: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.cf-generate-btn {
  min-width: 118px;
  height: 54px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* buttons */
.btn {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.96rem;
  transition: 0.25s ease;
  border: 0;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(
    135deg,
    var(--vol-primary) 0%,
    var(--vol-primary-light) 100%
  );
  color: #fff;
  box-shadow: 0 14px 30px rgba(47, 91, 204, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
}

.btn-secondary {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.09);
}

.step-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
}

.step-actions.between {
  justify-content: space-between;
}

.submit-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.step-actions .btn,
.submit-actions .btn {
  min-height: 52px;
}

/* barra invio */
.volunteer-submit-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 26px;
  border-radius: 28px;
  background: linear-gradient(
    135deg,
    rgba(47, 91, 204, 0.22) 0%,
    rgba(25, 58, 147, 0.4) 100%
  );
  border: 1px solid var(--vol-border-strong);
  box-shadow: 0 18px 40px rgba(31, 87, 184, 0.18);
}

.volunteer-submit-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.volunteer-submit-text strong {
  font-size: 1.45rem;
  color: #fff;
}

.volunteer-submit-text span {
  color: rgba(255, 255, 255, 0.84);
}

.volunteer-submit-btn {
  min-width: 220px;
}

/* alert */
.volunteer-alert {
  padding: 18px 20px;
  margin-bottom: 22px;
  font-weight: 600;
}

.volunteer-success {
  background: linear-gradient(
    180deg,
    rgba(16, 185, 129, 0.18) 0%,
    rgba(5, 150, 105, 0.12) 100%
  );
  color: #d9ffef;
  border: 1px solid rgba(52, 211, 153, 0.28);
}

.volunteer-error {
  background: linear-gradient(
    180deg,
    rgba(239, 68, 68, 0.16) 0%,
    rgba(190, 24, 93, 0.12) 100%
  );
  color: #ffe2e2;
  border: 1px solid rgba(248, 113, 113, 0.24);
}

/* footer */
.site-footer.site-footer-modern {
  padding: 34px 0 42px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(4, 10, 18, 0.68);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.footer-grid h4 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 1.18rem;
}

.footer-grid p,
.footer-grid a {
  margin: 0 0 8px;
  color: var(--vol-text-soft);
  line-height: 1.7;
}

.footer-grid a:hover {
  color: #fff;
}

/* responsive */
@media (max-width: 1100px) {
  .volunteer-layout {
    grid-template-columns: 1fr;
  }

  .volunteer-sidebar {
    position: static;
  }
}

@media (max-width: 980px) {
  .volunteer-submit-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .volunteer-submit-btn {
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .volunteer-progress {
    grid-template-columns: 1fr 1fr;
  }

  .volunteer-grid.three {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .header-content {
    flex-direction: column;
    justify-content: center;
    padding: 14px 0;
  }

  .main-nav ul {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .volunteer-grid.two,
  .volunteer-progress,
  .cf-row {
    grid-template-columns: 1fr;
  }

  .cf-generate-btn,
  .submit-actions,
  .submit-actions .btn {
    width: 100%;
  }

  .step-actions.between {
    flex-direction: column;
    gap: 12px;
  }

  .step-actions.between .btn,
  .step-actions .btn {
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .page-banner {
    padding: 76px 0 56px;
  }

  .page-content.volunteer-page {
    padding: 34px 0 72px;
  }

  .volunteer-block,
  .volunteer-side-card {
    padding: 22px;
  }

  .page-banner h2 {
    font-size: 2.25rem;
  }
}
