/* === VARIABILI === */
:root {
  --main-font: serif;
  --text-dark: #333;
  --purple: #764ba2;
  --purple-dark: #5a3b8c;
  --green: #28a745;
  --yellow: #ffc107;
  --red: #dc3545;
  --instagram-color: #e1306c;
  --instagram-hover: #c1275b;
}

/* === FONT GLOBALE === */
html, body, button, input, textarea, select, a, h1, h2, h3, h4, h5, h6, p, li, span {
  font-family: var(--main-font);
  margin: 0;
  padding: 0;
  color: var(--text-dark);
}

/* === SFONDO PAGINA === */
html, body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: url("../img/header_sito_giornalino_originale.png") center/cover no-repeat fixed;
  background-blend-mode: overlay;
  background-color: rgba(255, 255, 255, 0.88);
}

main { flex: 1; }

/* === CONTENITORE PRINCIPALE === */
.index-main {
  flex: 1;
  padding: 0.2rem 2rem 4rem;
  background: rgba(245, 245, 245, 0.96);
  margin: 0 auto;
  border-radius: 18px;
  box-shadow: 0 0 40px rgba(0,0,0,0.22);
  width: 100%;
  max-width: 1400px;
}

/* === HIGHLIGHT SECTION === */
.highlight-wrapper {
  padding: 2rem;
  display: flex;
  justify-content: center;
}

.highlight-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  max-width: 1200px;
  width: 100%;
  justify-content: center;
}

.highlight-gallery {
  flex: 1 1 400px;
  background: #fff;
  border-radius: 16px;
  padding: 2rem 1rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  text-align: center;
  min-height: 400px;
}

.project-logo {
  width: 100%;
  max-width: 500px;
  display: block;
  margin: 0 auto 1.5rem;
}

.highlight-gallery img.highlight-image {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  border-radius: 14px;
  margin: 0 0 2.5rem 0;
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
  cursor: pointer;
}

.highlight-gallery .start-btn {
  display: inline-block;
  background: var(--purple);
  color: #fff;
  padding: 0.9rem 2rem;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(118, 75, 162, 0.3);
  transition: all 0.3s ease;
}

.highlight-gallery .start-btn:hover {
  background: var(--purple-dark);
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(118, 75, 162, 0.4);
}

/* === INSTAGRAM CARD === */
.highlight-instagram {
  flex: 1 1 320px;
  max-width: 400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, #063e6b, #074d87, #1463a3);
  border-radius: 20px;
  padding: 2rem 1.5rem;
  box-shadow: 0 8px 24px rgba(168, 105, 255, 0.4);
  border: 2px solid #022c4f;
  position: relative;
  overflow: visible;
}

.highlight-instagram::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 10% 20%, rgba(255,255,255,0.4) 2px, transparent 0),
                    radial-gradient(circle at 80% 40%, rgba(255,255,255,0.3) 2px, transparent 0),
                    radial-gradient(circle at 30% 70%, rgba(255,255,255,0.5) 2px, transparent 0);
  background-size: 200px 200px;
  animation: sparkle 6s linear infinite;
  pointer-events: none;
}

@keyframes sparkle {
  from { background-position: 0 0, 50px 100px, 100px 50px; }
  to   { background-position: 200px 200px, 250px 300px, 300px 250px; }
}

.instagram-logo { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.instagram-handle { display: flex; align-items: center; justify-content: center; gap: 0.6rem; margin-bottom: 1rem; }
.instagram-username { font-weight: bold; color: #fff; font-size: 1.1rem; }

/* === CARD DESCRIPTION === */
.card-description {
  font-size: 1.2rem;
  line-height: 1.6;
  color: #333;
  font-weight: 400;
  text-align: center;
  margin-bottom: 1.5rem;
}

.card-description a {
  color: var(--purple);
  font-weight: 500;
  text-decoration: underline;
}
.card-description a:hover { color: var(--purple-dark); }

/* === RADIO CARD === */
.radio-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.radio-avatar { width: 100px; height: 100px; border-radius: 50%; margin-bottom: 1rem; object-fit: cover; box-shadow: 0 4px 6px rgba(0,0,0,0.1); }
.radio-card h3 { font-size: 1.4rem; font-weight: 800; color: #fff; margin-bottom: 0.5rem; }
.radio-card p  { font-size: 1rem; color: #fff; margin-bottom: 1rem; }
.radio-stats { list-style: none; padding: 0; margin: 1rem 0; display: flex; justify-content: center; gap: 1rem; }
.radio-stats li { font-weight: bold; color: #fff; }

/* === PULSANTE “SEGUICI” CONTRASTANTE MA ARMONICO === */
.radio-btn {
  display: inline-block;
  background: #ff6b35; /* arancio caldo, contrasta col blu/viola */
  color: #fff;
  font-weight: 700;
  padding: 0.6rem 1.2rem;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  transition: all 0.3s ease;
}

.radio-btn:hover {
  background: #ff844c; /* arancio più chiaro su hover */
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.3);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .highlight-container { flex-direction: column; align-items: center; }
  .highlight-gallery { min-height: auto; padding-top: 0.8rem; padding-bottom: 1rem; }
  .highlight-gallery .start-btn { margin-top: 1rem; margin-bottom: 1rem; align-self: center; }
  .project-logo { max-width: 320px; }
  .card-description { font-size: 1rem; line-height: 1.5; }
  .radio-card h3 { font-size: 1.1rem; }
  .radio-card p { font-size: 0.9rem; }
}

@media (max-width: 480px) {
  .highlight-gallery .start-btn { margin-top: 0.8rem; margin-bottom: 1rem; }
  .project-logo { max-width: 280px; }
  .card-description { font-size: 0.95rem; line-height: 1.4; }
  .radio-card h3 { font-size: 1rem; }
  .radio-card p { font-size: 0.85rem; }
}