/* :root {
  --bg-primary: #f4f5f0;
  --bg-secondary: #ffffff;
  --text-primary: #111111;
  --text-secondary: #666666;
  --accent-green: #008c45;
  --accent-red: #cd212a;
  --border-color: #dddddd;
}



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

body {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-weight: bold;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.4;
  transition: all 0.3s ease;
  letter-spacing: 1.2px;
}

html {
  scroll-behavior: smooth;
}

.theme-toggle {
  position: fixed;
  top: 30px;
  left: 30px;
  z-index: 1000;
  width: 40px;
  height: 40px;
  background: var(--text-primary);
  color: var(--bg-primary);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: all 0.2s ease;
}

.theme-toggle:hover {
  transform: scale(1.1);
}

.main-nav {
  position: fixed;
  top: 30px;
  right: 30px;
  z-index: 1000;
  display: flex;
  gap: 30px;
}

.main-nav a {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 1px;
  transition: all 0.2s ease;
  padding: 10px 0;
  border-bottom: 2px solid transparent;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--accent-red);
  border-bottom-color: var(--accent-red);
}

.hero-section {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  grid-template-rows: 1fr 2fr 1fr;
  width: 100%;
  height: 100vh;
  gap: 40px;
  max-width: 1400px;
  padding: 0 40px;
}

.hero-title-container {
  grid-column: 2;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero-title {
  font-size: clamp(60px, 15vw, 200px);
  letter-spacing: -5px;
  line-height: 0.9;
  text-align: center;
}

.title-line {
  display: block;
}

.title-line.offset {
  margin-left: 40px;
}

.title-overlay {
  font-size: 18px;
  letter-spacing: 3px;
  color: var(--text-secondary);
  margin-top: 20px;
}

.italian-flag {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  width: 200px;
  height: 60px;
  justify-self: center;
  align-self: end;
  border: 2px solid var(--text-primary);
}

.flag-green {
  flex: 1;
  background-color: #008c45;
}

.flag-white {
  flex: 1;
  background-color: #ffffff;
}

.flag-red {
  flex: 1;
  background-color: #cd212a;
}

.hero-info {
  grid-column: 3;
  grid-row: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  align-self: start;
}

.info-text {
  font-size: 16px;
  letter-spacing: 3px;
}

.info-year {
  font-size: 12px;
  color: var(--text-secondary);
  letter-spacing: 2px;
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 40px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.scroll-text {
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--text-secondary);
}

.scroll-line {
  width: 60px;
  height: 1px;
  background: var(--text-secondary);
}

section {
  padding: 80px 0;
  text-align: center;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
   text-align: center;
}

.section-title {
  font-size: 48px;
  letter-spacing: -2px;
  margin-bottom: 50px;
  text-align: center;
}

.social-section {
  text-align: center;
  padding: 120px 0;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 60px;
  margin-bottom: 50px;
}

.social-link {
    position: relative;
    display: inline-block;
    min-width: 170px; /* aumenta se serve più spazio */
    overflow: hidden;
}

.social-content {
    position: relative;
    width: 100%;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.social-icon {
    font-size: 48px;
    transition: transform 0.4s ease;
    z-index: 1;
    min-width: 48px;
}

.social-name {
    position: absolute;
    left: 60px; /* sempre a destra dell’icona */
    opacity: 0;
    font-size: 22px;
    font-weight: 600;
    white-space: nowrap;
    transition: opacity 0.4s ease, transform 0.4s ease;
    transform: translateX(10px);
    pointer-events: none;
}

.social-link:hover {
  border-color: var(--accent-green);
  transform: translateY(-2px);
}

.social-link:hover .social-icon {
    transform: translateX(-10px);
}

.social-link:hover .social-name {
    opacity: 1;
    transform: translateX(0);
}

.social-name {
  position: absolute;
  font-size: 24px;
  letter-spacing: 1px;
  text-align: center;
  pointer-events: none;
}

.social-count {
  font-size: 14px;
  color: var(--text-secondary);
}

.social-description {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.social-description p {
  font-size: 16px;
  color: var(--text-secondary);
  font-weight: normal;
  line-height: 1.6;
}

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    text-align: center;
    gap: 60px;
  }

  .hero-title-container {
    grid-column: 1;
    grid-row: 2;
  }

  .title-line.offset {
    margin-left: 0;
  }

  .italian-flag {
    grid-column: 1;
    grid-row: 1;
    justify-self: center;
  }

  .hero-info {
    grid-column: 1;
    grid-row: 3;
    align-items: center;
  }
}

@media (max-width: 768px) {
  .theme-toggle {
    top: 20px;
    left: 20px;
    width: 35px;
    height: 35px;
  }

  .main-nav {
    top: 20px;
    right: 20px;
    gap: 20px;
  }

  .main-nav a {
    font-size: 12px;
  }

  .container {
    padding: 0 20px;
  }

  .hero-grid {
    padding: 0 20px;
  }

  .scroll-indicator {
    bottom: 20px;
    left: 20px;
  }

  .section-title {
    font-size: 36px;
  }

  .news-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .social-links {
    flex-direction: column;
    gap: 30px;
    align-items: center;
  }

  .social-link {
    min-width: 200px;
    padding: 30px;
  }

  .social-name {
    font-size: 20px;
     text-align: center;
  }

  .italian-flag {
    width: 150px;
    height: 45px;
  }
  
  .site-footer {
    width: 100%;
    text-align: center;
    padding: 20px 0;
    background: none;
    color: var(--text-secondary);
    font-size: 14px;
    letter-spacing: 1px;
    margin-top: 40px;
}
}

