/* Font imports */
@font-face {
  font-family: 'MV Boli';
  src: url('../fonts/mvboli.ttf') format('truetype');
}

@font-face {
  font-family: 'Satoshi';
  src: url('../fonts/satoshi.otf') format('truetype');
}

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Satoshi', sans-serif;
  line-height: 1.6;
  color: #000;
  background-color: #fff;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header styles */
.header {
  position: sticky;
  top: 0;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo h1 {
  font-family: 'MV Boli', cursive;
  font-size: 2.5rem;
  color: #C42E65;
}

/* Navigation */
.navbar {
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-family: 'Satoshi', sans-serif;
  text-decoration: none;
  color: #000;
  text-transform: uppercase;
  font-size: 1rem;
  letter-spacing: 0.05em;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #C42E65;
}

/* Dropdown menu */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.dropdown-arrow {
  font-size: 0.6rem;
  transition: transform 0.3s ease;
}

.nav-dropdown:hover .dropdown-arrow,
.nav-dropdown.open .dropdown-arrow {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  min-width: 220px;
  z-index: 1001;
  padding: 0.5rem 0;
  padding-top: 0.75rem;
}

.nav-dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 0.5rem;
}

.nav-dropdown:hover .nav-dropdown-menu {
  display: block;
}

.nav-dropdown-menu a {
  display: flex;
  flex-direction: column;
  padding: 0.75rem 1.25rem;
  text-decoration: none;
  color: #000;
  transition: background 0.2s ease;
  text-transform: none;
  font-size: 0.9rem;
  letter-spacing: 0;
}

.nav-dropdown-menu a:hover {
  background: #f5f5f5;
}

.nav-dropdown-menu a strong {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #C8145C;
}

.nav-dropdown-menu a span {
  font-size: 0.8rem;
  color: #888;
  font-style: italic;
  margin-top: 0.15rem;
}

/* Mobile menu button */
.mobile-menu-button {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.mobile-menu-button span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: #000;
  transition: all 0.3s ease;
}

.mobile-menu-button.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-button.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-button.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Profile section layout */
.profile-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
  padding: 5rem 0;
  max-width: 100%;
  margin: 0 auto;
}

.profile-info {
  flex: 1;
  text-align: left;
}

.profile-icon {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin-bottom: 1.5rem;
  object-fit: cover;
}

.profile-info h2 {
  font-family: 'MV Boli', cursive;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.profile-info p {
  font-size: 1.125rem;
  color: #666;
  max-width: 400px;
}

/* Newsletter form */
.newsletter-form {
  flex: 1;
  max-width: 500px;
  padding: 2rem;
  background: #f8f8f8;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.input-group {
  display: flex;
  gap: 0.5rem;
}

.newsletter-form label {
  font-size: 0.875rem;
  color: #666;
  font-weight: 500;
}

.newsletter-form input {
  flex: 1;
  height: 48px;
  padding: 0 1.25rem;
  font-size: 1rem;
  border: 2px solid #eee;
  border-radius: 6px;
  transition: all 0.3s ease;
  background: white;
}

.newsletter-form input:focus {
  outline: none;
  border-color: #C42E65;
  box-shadow: 0 0 0 3px rgba(196, 46, 101, 0.1);
}

.newsletter-form button {
  height: 48px;
  padding: 0 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  background-color: #C42E65;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  border-radius: 100px;
  box-shadow: 0px 4px 0 #9a1546;
}

.newsletter-form button:hover {
  background-color: #a1234f;
  transform: translateY(-1px);
  border-radius: 100px;
  box-shadow: 0px 4px 0 #9a1546;
}

.message {
  margin-top: 1rem;
  padding: 0.75rem;
  border-radius: 4px;
  text-align: left;
}

.message.success {
  background-color: #dcf7ec;
  color: #0d6832;
}

.message.error {
  background-color: #fee2e2;
  color: #991b1b;
}

/* Keywords section */
.keywords {
  padding: 2rem 0;
}

.keyword-item {
  text-align: center;
  margin-bottom: 0.6rem;
}

.keyword-item h2 {
  font-family: Satoshi, sans-serif;
  font-size: 4.5rem;
  font-weight: 900;
  letter-spacing: -0.05em;
  color: #000;
  line-height: 1.1;
  transition: transform 0.3s ease;
}

.keyword-item h2:hover {
  transform: scale(1.02);
}

.keyword-item h2 a {
  font-size: 4.5rem;
  font-weight: bold;
  letter-spacing: -0.05em;
  color: #000;
  line-height: 1.1;
  transition: transform 0.3s ease;
  text-decoration: none;
}

.keyword-item h2 a:hover {
  transform: scale(1.02);
}


.keyword-item h2,
.keyword-item h2 a {
  font-size: clamp(2rem, 14vw, 4.5rem);
  /* Stessi altri stili già presenti */
}

/* Keyword dropdown */
.keyword-dropdown {
  position: relative;
}

.keyword-dropdown-toggle {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.keyword-arrow {
  font-size: 0.5em;
  transition: transform 0.3s ease;
}

.keyword-dropdown:hover .keyword-arrow,
.keyword-dropdown.open .keyword-arrow {
  transform: rotate(180deg);
}

.keyword-dropdown-menu {
  display: none;
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
}

.keyword-dropdown:hover .keyword-dropdown-menu {
  display: block;
}

.keyword-dropdown-menu a {
  display: block;
  text-decoration: none;
  color: #000;
  text-align: center;
  padding: 0.1rem 0;
  transition: transform 0.3s ease;
}

.keyword-dropdown-menu a:hover {
  transform: scale(1.02);
  background: transparent;
}

.keyword-dropdown-menu a strong {
  display: block;
  font-family: Satoshi, sans-serif;
  font-size: clamp(1rem, 5vw, 1.8rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  color: #C8145C;
  line-height: 1.1;
  text-transform: uppercase;
}

.keyword-dropdown-menu a span {
  display: block;
  font-size: clamp(0.7rem, 2.5vw, 1rem);
  color: #888;
  font-style: italic;
  margin-top: 0.1rem;
}

/* Profile section mobile */
.profile-section {
  flex-direction: column;
  gap: 2rem;
  padding: 3rem 0;
}

.profile-info {
  text-align: center;
}

.profile-info p {
  margin: 0 auto;
}

.newsletter-form {
  width: 50%;
  max-width: none;
  /* Rimuovi il max-width su mobile */
}

.input-group {
  flex-direction: column;
  gap: 1rem;
  /* Aumenta lo spazio tra input e button */
}

.newsletter-form input,
.newsletter-form button {
  width: 100%;
  height: 48px;
  /* Mantieni l'altezza consistente */
  min-height: 48px;
  /* Assicura l'altezza minima */
}

.newsletter-form input {
  padding: 0 1.25rem;
  font-size: 1rem;
  border: 2px solid #eee;
  border-radius: 6px;
}

/* Mantieni gli stili hover e focus anche su mobile */
.newsletter-form input:focus {
  outline: none;
  border-color: #C42E65;
  box-shadow: 0 0 0 3px rgba(196, 46, 101, 0.1);
}

.newsletter-form button {
  padding: 0 1.5rem;
}

/* Media queries */
@media (max-width: 768px) {

  .newsletter-form {
    width: 100%;
    max-width: none;
    /* Rimuovi il max-width su mobile */
  }

  /* Header mobile */
  .mobile-menu-button {
    display: flex;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background-color: #C42E65;
    z-index: 999;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    gap: 0.05rem;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    color: white;
    font-family: 'Satoshi', sans-serif;
    font-size: clamp(2rem, 14vw, 4.5rem);
    font-weight: 900;
    letter-spacing: -0.05em;
    padding: 0.05rem;
    text-align: center;
  }

  .nav-links a:hover {
    color: rgba(255, 255, 255, 0.8);
  }

  /* Mobile dropdown */
  .nav-dropdown {
    position: static;
    text-align: center;
  }

  .nav-dropdown-toggle {
    color: white;
    font-family: 'Satoshi', sans-serif;
    font-size: clamp(2rem, 14vw, 4.5rem);
    font-weight: 900;
    letter-spacing: -0.05em;
    padding: 0.05rem;
    text-align: center;
    justify-content: center;
    text-decoration: none;
    text-transform: uppercase;
  }

  .nav-dropdown-toggle:hover {
    color: rgba(255, 255, 255, 0.8);
  }

  .dropdown-arrow {
    font-size: 0.5em;
  }

  .nav-dropdown-menu {
    position: static;
    transform: none;
    background: transparent;
    border: none;
    box-shadow: none;
    min-width: auto;
    padding: 0;
  }

  .nav-dropdown.open .nav-dropdown-menu {
    display: block;
  }

  .nav-dropdown:hover .nav-dropdown-menu {
    display: none;
  }

  .nav-dropdown.open .nav-dropdown-menu {
    display: block;
  }

  .nav-dropdown-menu a {
    color: rgba(255, 255, 255, 0.9);
    align-items: center;
    padding: 0.2rem 1rem;
  }

  .nav-dropdown-menu a:hover {
    background: transparent;
    color: white;
  }

  .nav-dropdown-menu a strong {
    font-size: 1rem;
    color: white;
    letter-spacing: 0;
  }

  .nav-dropdown-menu a span {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
  }

  /* Aggiusta lo z-index del pulsante hamburger per stare sopra il menu */
  .mobile-menu-button {
    position: relative;
    z-index: 1000;
  }

  /* Cambia il colore delle linee del menu quando è aperto */
  .mobile-menu-button.active span {
    background-color: white;
  }

  /* Keywords mobile */
  .keyword-item h2,
  .keyword-item h2 a {
    font-size: clamp(1.4rem, 8vw, 3rem);
    word-break: break-word;
    overflow-wrap: break-word;
  }

  /* Keyword dropdown mobile */
  .keyword-dropdown:hover .keyword-dropdown-menu {
    display: none;
  }

  .keyword-dropdown.open .keyword-dropdown-menu {
    display: block;
  }
}

/* Large screen optimizations */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }

  .profile-section {
    gap: 2rem;
  }

  .profile-icon {
    width: 150px;
    height: 150px;
  }

  .profile-info h2 {
    font-size: 3rem;
  }
}


.highlight {
  outline: 3px solid #FFD700;
  /* Colore e spessore del contorno a piacere */
  box-shadow: 0 0 10px #FFD700;
  /* Un piccolo bagliore dorato */
  transition: box-shadow 0.3s ease-in-out;
}

.social-icons {
  justify-content: center;
  margin-top: 1rem;
  /* un po’ di spazio sopra le icone */
  display: flex;
  gap: 1rem;
  /* spazio tra le icone */
}

.social-icons a {
  color: #666;
  /* colore icone */
  font-size: 1.5rem;
  /* dimensione icone */
  transition: color 0.3s ease;
}

.social-icons a:hover {
  color: #C42E65;
  /* colore al passaggio del mouse */
}

@media (max-width: 768px) {
  .social-icons {
    display: flex;
    /* assicurati che sia un contenitore flex */
    justify-content: center;
    margin-top: 1rem;
    /* se desideri uno spazio sopra */
  }
}


.iframe {
  text-align: center;
}

.iframe p {
  display: block; /* Ogni paragrafo va a capo */
  margin: 10px 0; /* Spaziatura tra i paragrafi */
}

/* Ted Talk link in header */
.nav-links a.ted-talk-link {
  color: #C42E65;
  font-weight: 600;
}

.nav-links a.ted-talk-link:hover {
  color: #a02450;
}

/* Footer styles */
.footer {
  background-color: #C42E65;
  padding: 1.5rem 0;
  margin-top: 3rem;
}

.footer-content {
  display: flex;
  justify-content: center;
  align-items: center;
}

.ted-talk-banner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #fff;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
}

.ted-talk-banner i {
  font-size: 1.5rem;
}

.ted-talk-banner:hover {
  opacity: 0.85;
  transform: scale(1.02);
}

@media (max-width: 768px) {
  .ted-talk-banner {
    font-size: 1rem;
  }
  
  .ted-talk-banner i {
    font-size: 1.25rem;
  }
} 