/* =========================================
   FONT — Heading Pro Smallcase
   ========================================= */

@font-face {
  font-family: 'Heading Smallcase Pro';
  src: url('fonts/Heading-Pro-Smallcase-Heavy.otf') format('opentype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Heading Smallcase Pro';
  src: url('fonts/Heading-Pro-Smallcase-Extrabold.otf') format('opentype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* =========================================
   SARA JANE VOI — Orizzonti in Comune
   Viareggio 2026
   Colori: Viola (Sara) + Rosso + Blu (lista)
   ========================================= */

:root {
  --viola: #7033A0;       /* colore personale Sara Jane Voi */
  --viola-dark: #521E78;
  --viola-light: #9B5CC4;
  --rosso: #E30613;       /* rosso ufficiale campagna */
  --blu: #312783;         /* blu ufficiale campagna */
  --dark: #0D0D1A;
  --white: #FFFFFF;
  --grey-light: #F5F4F8;
  --text: #1A1A2E;
  --font: 'Montserrat', sans-serif;
  /* font display: Heading Smallcase Pro (Heavy/ExtraBold) — da attivare con file font */
  --font-display: 'Heading Smallcase Pro', 'Montserrat', sans-serif;
  --radius: 3px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

/* =========================================
   HEADER
   ========================================= */

.site-header {
  background: var(--dark);
  padding: 14px 24px;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 3px solid var(--viola);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.back-link {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.7);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.back-link:hover { color: var(--white); }

.list-badge {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.badge-viareggio {
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.1em;
  color: var(--rosso);
  text-transform: uppercase;
}

.badge-monamour {
  font-size: 14px;
  font-weight: 600;
  font-style: italic;
  color: rgba(255,255,255,0.6);
}

/* =========================================
   PHOTO WRAP + STEMMA OVERLAY
   ========================================= */

.photo-wrap {
  position: relative;
}

.stemma-overlay {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 90px;
  height: 90px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4));
  pointer-events: none;
}

/* =========================================
   HERO
   ========================================= */

.hero {
  background: var(--viola);
  position: relative;
  overflow: hidden;
  min-height: 92vh;
  display: flex;
  flex-direction: column;
}

/* watermark VOTA! */
.hero-watermark {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='120'%3E%3Ctext x='0' y='95' font-family='Montserrat%2C sans-serif' font-size='90' font-weight='900' letter-spacing='-2' fill='white'%3EVOTA!%3C/text%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 300px 120px;
  opacity: 0.055;
}

.hero-content {
  flex: 1;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 24px 40px;
  width: 100%;
}

.hero-text { flex: 1; max-width: 520px; }

.hero-lista {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 14px;
}

.hero-name {
  font-family: var(--font-display);
  font-size: clamp(56px, 8vw, 100px);
  font-weight: 900;
  line-height: 0.92;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: -0.03em;
  margin-bottom: 0;
}

.hero-surname {
  color: var(--white);
  -webkit-text-stroke: 2px rgba(255,255,255,0.9);
  color: transparent;
}

.hero-payoff {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin-top: 16px;
  margin-bottom: 28px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 36px;
}

.tag {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.9);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 100px;
  white-space: nowrap;
}

.cta-btn {
  display: inline-block;
  background: var(--white);
  color: var(--viola);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 14px 32px;
  border-radius: var(--radius);
  transition: background 0.2s, transform 0.1s;
}
.cta-btn:hover {
  background: rgba(255,255,255,0.9);
  transform: translateY(-1px);
}

.hero-photo {
  flex: 0 0 400px;
  max-width: 400px;
  position: relative;
  z-index: 1;
}

.hero-photo img:not(.stemma-overlay) {
  width: 100%;
  height: 540px;
  object-fit: cover;
  object-position: center 35%;
  border-radius: 4px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.35);
}

/* =========================================
   TICKER — linea orizzonte
   ========================================= */

.ticker-wrap {
  background: var(--rosso);
  overflow: hidden;
  padding: 10px 0;
  white-space: nowrap;
  position: relative;
  z-index: 2;
}

.ticker {
  display: inline-flex;
  gap: 32px;
  animation: ticker-scroll 18s linear infinite;
  will-change: transform;
}

.ticker span {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white);
  white-space: nowrap;
  flex-shrink: 0;
}

@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* CLAIM BAR */
.hero-claim-bar {
  background: var(--blu);
  padding: 18px 24px;
  position: relative;
  z-index: 2;
}

.claim-text {
  display: block;
  text-align: center;
  font-size: clamp(18px, 3vw, 28px);
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
}

/* =========================================
   BIO
   ========================================= */

.bio {
  padding: 80px 0;
  background: var(--white);
}

.bio-inner {
  display: flex;
  align-items: flex-start;
  gap: 64px;
}

.bio-photo {
  flex: 0 0 320px;
  position: sticky;
  top: 90px;
}

.bio-photo img:not(.stemma-overlay) {
  width: 100%;
  height: 460px;
  object-fit: cover;
  object-position: center 30%;
  border-radius: 4px;
  box-shadow: 0 8px 32px rgba(112,51,160,0.2);
}

.bio-text { flex: 1; }

.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--viola);
  margin-bottom: 12px;
}

.section-label.light {
  color: rgba(255,255,255,0.6);
}

.section-title {
  font-size: clamp(22px, 3.5vw, 36px);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.15;
  margin-bottom: 32px;
}

.section-title.light {
  color: var(--white);
}

.section-title::after {
  content: '';
  display: block;
  width: 40px;
  height: 4px;
  background: var(--viola);
  margin-top: 16px;
}

.section-title.light::after {
  background: rgba(255,255,255,0.5);
}

.bio-text p {
  font-size: 16px;
  line-height: 1.8;
  color: #333;
  margin-bottom: 18px;
}
.bio-text strong { color: var(--text); }

/* =========================================
   ORIZZONTI
   ========================================= */

.orizzonti {
  background: var(--viola-dark);
  padding: 100px 0;
}

.orizzonti-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 48px;
}

.orizzonte-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 6px;
  padding: 32px 24px;
  transition: background 0.2s, transform 0.2s;
  border-top: 3px solid var(--rosso);
}

.orizzonte-card:hover {
  background: rgba(255,255,255,0.12);
  transform: translateY(-3px);
}

.card-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
}

.card-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.orizzonte-card h3 {
  font-size: 16px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--white);
  margin-bottom: 10px;
}

.orizzonte-card p {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255,255,255,0.7);
}

/* =========================================
   SOCIAL
   ========================================= */

.social-section {
  padding: 100px 0;
  background: var(--grey-light);
}

.social-intro {
  font-size: 16px;
  color: #666;
  margin-bottom: 40px;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 14px 28px;
  border-radius: var(--radius);
  transition: transform 0.15s, opacity 0.15s;
  color: var(--white);
}
.social-btn:hover { transform: translateY(-2px); opacity: 0.9; }
.social-btn.instagram {
  background: linear-gradient(135deg, #f09433, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888);
}
.social-btn.facebook { background: #1877F2; }

/* =========================================
   FOOTER
   ========================================= */

.site-footer {
  background: var(--dark);
  padding: 48px 0 32px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-viareggio {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.12em;
  color: var(--rosso);
  text-transform: uppercase;
}

.footer-monamour {
  font-size: 14px;
  font-weight: 600;
  font-style: italic;
  color: rgba(255,255,255,0.5);
}

.footer-sindaca {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-top: 2px;
}

.footer-link {
  color: rgba(255,255,255,0.6);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  transition: color 0.2s;
}
.footer-link:hover { color: var(--white); }

.footer-copy {
  font-size: 11px;
  color: rgba(255,255,255,0.25);
  text-align: center;
}

/* =========================================
   RESPONSIVE
   ========================================= */

@media (max-width: 900px) {
  .hero {
    min-height: auto; /* no forced height on mobile — content drives the size */
  }

  .hero-content {
    flex-direction: column;
    justify-content: flex-start;
    padding: 40px 20px 40px;
    gap: 24px;
    min-height: unset;
  }

  .bio {
    padding: 48px 0 60px; /* ridotto su mobile */
  }

  .hero-photo {
    flex: none;
    max-width: 100%;
    width: 100%;
    order: -1; /* foto prima del testo su mobile, senza column-reverse (fix bug Safari iOS) */
  }

  .hero-photo img:not(.stemma-overlay) {
    height: 300px;
  }

  .bio-inner {
    flex-direction: column;
    gap: 24px; /* ridotto da 64px su mobile */
  }

  .bio-photo {
    flex: none;
    width: 100%;
    position: relative;
  }

  .bio-photo img:not(.stemma-overlay) { height: 300px; }
}

@media (max-width: 600px) {
  /* HEADER */
  .site-header { padding: 10px 16px; }
  .back-link { font-size: 11px; }
  .list-badge { display: none; }

  /* HERO */
  .hero-content { padding: 32px 16px 56px; gap: 20px; } /* 56px sotto = VOTA! visibile prima del ticker */
  .hero-name { font-size: 52px; line-height: 0.9; }
  .hero-payoff {
    font-size: 11px;
    letter-spacing: 0.1em;
    margin-top: 12px;
    margin-bottom: 8px;
  }
  .hero-lista {
    font-size: 10px;
    letter-spacing: 0.12em;
    margin-bottom: 16px;
  }
  .hero-tags { gap: 6px; margin-bottom: 24px; }
  .tag { font-size: 11px; padding: 5px 10px; }
  .hero-photo img:not(.stemma-overlay) { height: 260px; }
  .cta-btn { padding: 12px 24px; font-size: 12px; }

  /* CLAIM */
  .claim-text { font-size: 15px; letter-spacing: 0.06em; }
  .ticker span { font-size: 11px; }

  /* BIO */
  .bio { padding: 36px 0 48px; }
  .bio-text p { font-size: 15px; }
  .section-title { font-size: 22px; }

  /* CARDS */
  .valori-grid, .orizzonti-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .valore-card, .orizzonte-card { padding: 20px 16px; }
  .card-icon { font-size: 26px; margin-bottom: 10px; }
  .orizzonte-card h3 { font-size: 13px; }
  .orizzonte-card p { font-size: 12px; }

  /* FOOTER */
  .footer-inner { flex-direction: column; gap: 12px; }
  .footer-viareggio { font-size: 18px; }
  .footer-copy { font-size: 10px; }
}
