/* ===========================
   RESET & BASE
=========================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green:       #1565C0;
  --green-dark:  #0d3b7a;
  --green-light: #42A5F5;
  --accent:      #c8a400;
  --accent-light:#f5d000;
  --white:       #ffffff;
  --off-white:   #EBF4FF;
  --text:        #0d1f3c;
  --text-muted:  #4a6080;
  --border:      #c8dff5;
  --shadow:      0 4px 24px rgba(13,59,122,.10);
  --shadow-lg:   0 12px 48px rgba(13,59,122,.16);
  --radius:      12px;
  --radius-lg:   20px;
  --transition:  .3s cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Open Sans', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Montserrat', sans-serif;
  line-height: 1.2;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===========================
   BUTTONS
=========================== */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .5px;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--accent);
  color: var(--text);
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-light);
  border-color: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(200,164,0,.35);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.7);
}
.btn-outline:hover {
  background: rgba(255,255,255,.12);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn-full { width: 100%; text-align: center; }

/* ===========================
   NAVBAR
=========================== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 18px 0;
  transition: background var(--transition), padding var(--transition), box-shadow var(--transition);
}

.navbar.scrolled {
  background: rgba(13,59,122,.97);
  backdrop-filter: blur(10px);
  padding: 12px 0;
  box-shadow: 0 2px 20px rgba(0,0,0,.2);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.brand-name {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--white);
  letter-spacing: 1px;
}

.brand-sub {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: .8rem;
  color: var(--accent-light);
  letter-spacing: 3px;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 36px;
}

.nav-links a {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: .9rem;
  color: rgba(255,255,255,.85);
  letter-spacing: .5px;
  transition: color var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 2px;
  background: var(--accent-light);
  transform: scaleX(0);
  transition: transform var(--transition);
  transform-origin: left;
}

.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { transform: scaleX(1); }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.burger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

/* ===========================
   HERO
=========================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(160deg, #0a2a5e 0%, #1565C0 40%, #1e88e5 70%, #64B5F6 100%);
  overflow: hidden;
}

/* Foto sfondo a tutto schermo */
.hero-bg-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: .35;
  filter: grayscale(20%) contrast(1.1);
}

/* Gradiente blu sopra la foto per leggibilità */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to right, rgba(10,42,94,.85) 0%, rgba(21,101,192,.60) 50%, rgba(21,101,192,.20) 100%),
    linear-gradient(to top, rgba(10,42,94,.6) 0%, transparent 50%);
}

.hero-overlay { display: none; }

.hero-content {
  position: relative;
  z-index: 2;
  padding: 140px 24px 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.hero-text {
  max-width: 600px;
  text-align: left;
}

.hero-logos {
  position: absolute;
  right: 32px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.hero-logos img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  background: rgba(255,255,255,0.08);
  box-shadow: 0 3px 16px rgba(0,0,0,0.5);
  transition: transform .2s;
}

.hero-pretitle {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: .9rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 16px;
  opacity: 0;
  animation: fadeUp .8s .2s forwards;
}

.hero-title {
  font-size: clamp(3.5rem, 9vw, 7rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -1px;
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeUp .8s .4s forwards;
}

.hero-title span {
  color: var(--accent-light);
  position: relative;
}

.hero-subtitle {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  font-weight: 600;
  color: rgba(255,255,255,.85);
  letter-spacing: 1px;
  margin-bottom: 48px;
  opacity: 0;
  animation: fadeUp .8s .6s forwards;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: flex-start;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp .8s .8s forwards;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.hero-scroll-hint span {
  display: block;
  width: 24px;
  height: 38px;
  border: 2px solid rgba(255,255,255,.4);
  border-radius: 12px;
  position: relative;
}
.hero-scroll-hint span::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: rgba(255,255,255,.6);
  border-radius: 2px;
  animation: scrollBounce 2s infinite;
}

/* ===========================
   CLAIM BAR
=========================== */
.claim-bar {
  background: var(--accent);
  padding: 18px 0;
}
.claim-inner {
  text-align: center;
}
.claim-inner p {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: clamp(.9rem, 2vw, 1.15rem);
  color: var(--text);
  letter-spacing: .5px;
  text-transform: uppercase;
}

/* ===========================
   SECTIONS COMMON
=========================== */
.section {
  padding: 96px 0;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}

.section-tag {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--green);
  background: rgba(21,101,192,.10);
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 16px;
}

.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 16px;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* ===========================
   PROGRAMMA CARDS
=========================== */
.programma { background: var(--off-white); }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition);
  opacity: 0;
  transform: translateY(30px);
}

.card.visible {
  opacity: 1;
  transform: translateY(0);
}

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

.card.featured {
  border-color: var(--green);
  border-width: 2px;
}

.card.featured::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, #0d3b7a, #42A5F5);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.card-badge {
  position: absolute;
  top: -12px;
  left: 32px;
  background: var(--green);
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: .72rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 50px;
}

.card-icon {
  width: 52px;
  height: 52px;
  background: rgba(21,101,192,.1);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--green);
}
.card-icon svg { width: 26px; height: 26px; }

.card h3 {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 14px;
  color: var(--text);
}

.card p {
  color: var(--text-muted);
  font-size: .97rem;
  line-height: 1.7;
}

.card p strong { color: #0d3b7a; font-weight: 700; }

/* ===========================
   QUOTE SECTION
=========================== */
.quote-section {
  background: linear-gradient(135deg, #0a2a5e, #1565C0);
  padding: 80px 0;
}

.quote-section blockquote {
  text-align: center;
  max-width: 780px;
  margin: 0 auto;
}

.quote-section blockquote p {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.5;
  margin-bottom: 20px;
  font-style: italic;
}

.quote-section blockquote p::before { content: '\201C'; }
.quote-section blockquote p::after  { content: '\201D'; }

.quote-section blockquote footer {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: .95rem;
  color: var(--accent-light);
  letter-spacing: 1px;
}

/* ===========================
   COALIZIONE
=========================== */
.liste-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
}

.lista-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .5s, transform .5s, box-shadow .3s;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.lista-card.visible {
  opacity: 1;
  transform: translateY(0);
}

a.lista-card:hover .lista-img,
a.lista-card:hover .lista-svg {
  box-shadow: 0 8px 32px rgba(21,101,192,0.35);
  transform: translateY(-4px) scale(1.05);
  transition: transform .3s, box-shadow .3s;
}

a.lista-card:hover .lista-name {
  color: var(--green);
}

.lista-svg,
.lista-img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  display: block;
}

.lista-svg:hover,
.lista-img:hover {
  transform: scale(1.06);
  box-shadow: var(--shadow-lg);
}

.lista-name {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: .82rem;
  color: var(--text);
  text-align: center;
  max-width: 120px;
}

/* ===========================
   HASHTAG BAR
=========================== */
.hashtag-bar {
  background: var(--text);
  padding: 20px 0;
  overflow: hidden;
}

.hashtag-scroll {
  display: flex;
  gap: 40px;
  white-space: nowrap;
  animation: scrollTicker 20s linear infinite;
}

.hashtag-scroll span {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: .9rem;
  color: var(--accent-light);
  letter-spacing: 1px;
  flex-shrink: 0;
}

/* ===========================
   CONTATTI
=========================== */
.contatti { background: var(--off-white); }

.contact-box {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: .85rem;
  color: var(--text);
}

.form-group input,
.form-group textarea {
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: 'Open Sans', sans-serif;
  font-size: .95rem;
  color: var(--text);
  background: var(--off-white);
  transition: border-color var(--transition), box-shadow var(--transition);
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(46,125,50,.12);
  background: var(--white);
}

.contact-form .form-group:not(.form-row .form-group) {
  margin-bottom: 24px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 24px 0;
  border-left: 1px solid var(--border);
  padding-left: 48px;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: .95rem;
}

.info-item svg {
  width: 20px; height: 20px;
  color: var(--green);
  flex-shrink: 0;
}

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.social-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(21,101,192,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  transition: var(--transition);
}

.social-btn svg { width: 18px; height: 18px; }

.social-btn:hover {
  background: var(--green);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(21,101,192,.3);
}

/* ===========================
   FOOTER
=========================== */
.footer {
  background: #0a2a5e;
  padding: 48px 0;
}

.footer-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.footer .brand-name { font-size: 1.3rem; }
.footer .brand-sub { font-size: .7rem; }

.footer-tagline {
  font-family: 'Montserrat', sans-serif;
  font-size: .9rem;
  font-weight: 600;
  color: rgba(255,255,255,.7);
}

.footer-legal {
  font-size: .78rem;
  color: rgba(255,255,255,.4);
  margin-top: 4px;
}

/* ===========================
   ANIMATIONS
=========================== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
  80%       { transform: translateX(-50%) translateY(12px); opacity: 0; }
}

@keyframes scrollTicker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 900px) {
  .contact-box {
    grid-template-columns: 1fr;
  }
  .contact-info {
    border-left: none;
    border-top: 1px solid var(--border);
    padding-left: 0;
    padding-top: 32px;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(27,94,32,.97);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    z-index: 999;
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 1.4rem; }
  .burger { display: flex; z-index: 1001; }

  .section { padding: 64px 0; }

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

  .contact-box { padding: 32px 24px; }

  /* Hero mobile */
  .hero {
    display: block;
    min-height: 100vh;
  }
  .hero-content {
    flex-direction: column;
    gap: 0;
    padding: 110px 20px 24px;
    justify-content: flex-start;
  }
  .hero-text {
    text-align: center;
    max-width: 100%;
  }
  .hero-text .hero-cta { align-items: center; }
  .hero-cta {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  .hero-cta .btn { width: 100%; text-align: center; }

  /* Loghi: da colonna assoluta a riga orizzontale in fondo */
  .hero-logos {
    position: relative;
    top: auto;
    right: auto;
    transform: none;
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 28px 20px 48px;
    z-index: 2;
  }
  .hero-logos img {
    width: 56px;
    height: 56px;
  }

  .hero-photo { flex: none; width: 100%; max-width: 340px; margin: 0 auto; }
  .liste-grid { gap: 20px; }
  .lista-logo { width: 110px; height: 110px; }
}

@media (max-width: 480px) {
  .cards-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 3rem; }
  .hero-pretitle { font-size: .75rem; letter-spacing: 2px; }
  .hero-logos img { width: 48px; height: 48px; }
}
