* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Lexend", sans-serif;
    font-optical-sizing: auto;
  font-style: normal;
}
  
html {
    scroll-behavior: smooth;
    scrollbar-color: #7fffd4 #181818;
    scrollbar-width: thin;
}
  
body {
    background-color: black;
    color: white;
    font-family: 'Lexend', Arial, sans-serif;
}
  
body::-webkit-scrollbar {
    width: 10px;
}
body::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #7fffd4 40%, #00e6ff 100%);
    border-radius: 8px;
}
body::-webkit-scrollbar-track {
    background: #181818;
}
  
  /* Navbar & Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: black;
    color: white;
}
  
.navbar-logo {
    font-weight: bold;
    font-size: 1.5rem;
}
  
.navbar-links {
    display: flex;
    flex-direction: row; /* default, per chiarezza */
    align-items: center; /* centra verticalmente i link nell'area della navbar */
    gap: 1rem; /* spazio orizzontale tra link */
    
}
  
.navbar-links a {
    padding-top: 12px;  /* valore a scelta */
    padding-bottom: 12px; /* stesso valore per simmetria */
    padding-left: 8px;   /* opzionale, per spaziare orizzontalmente il testo */
    padding-right: 8px;  /* opzionale */
    display: flex;       /* per evitare problemi di allineamento */
    align-items: center;
    height: auto;        /* o un'altezza fissa se vuoi */
    text-decoration: none;
    color: white; /* o come preferisci */
}
.navbar-links a:hover {
    color: #00ffff;
}
.navbar-toggle {
    display: none;
    cursor: pointer;
    font-size: 2rem;
}
  
  /* Section containers */
section {
    margin-top: 4.5rem;
    margin-bottom: 4.5rem;
}
  
  /* Home */
#home {
    margin-top: 0;
    text-align: center;
    height: 70vh;
    padding: 0 1rem;
}
.profile-pic-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    margin-top: 100px;
}
.profile-pic-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    background: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
}
.profile-pic-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.home-title {
    font-size: 3.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    font-family: 'Lexend', Arial, sans-serif;
}
.home-subtitle {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}
  /* Disponibilità lavoro */
.job-availability {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #b6fcd5;
    border-radius: 1.2rem;
    padding: 0.3rem 1rem;
    width: fit-content;
    margin: 2rem auto 0 auto;
    box-shadow: 0 2px 12px rgba(0,0,0,0.10);
    gap: 0.6rem;
}
.job-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #6ed6a0;
    display: inline-block;
}
.job-text {
    font-size: 0.95rem;
    font-weight: 500;
    color: #22543d;
    letter-spacing: 1px;
}
  
  /* About */
.about-box {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-start;
    background: linear-gradient(135deg, rgba(30,32,36,0.97) 80%, rgba(60,32,10,0.92) 100%);
    border-radius: 1.5rem;
    border: 2.5px solid #7fffd4;
    box-shadow: 0 2px 16px 0 #00e6ff33;
    padding: 2.5rem 2rem;
    margin: 3rem auto 0 auto;
    max-width: 900px;
    min-height: 220px;
    position: relative;
}
.about-title {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1px;
    margin-right: 2.5rem;
    margin-top: 0.2rem;
    flex: 0 0 180px;
    text-shadow: 0 0 5px #7fffd4, 0 0 8px #00e6ff;
    align-self: flex-start;
}
.about-text {
    font-size: 1.15rem;
    color: #f8f8ff;
    line-height: 1.7;
    flex: 1;
    min-width: 0;
}
  
  /* Tech Section */
.tech-title {
    font-family: 'Georgia', serif;
    font-size: 2.5rem;
    font-weight: 500;
    text-align: center;
    margin-bottom: 2.5rem;
    color: #fff;
    letter-spacing: 1px;
}
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 2rem;
    margin: 2.5rem auto 0 auto;
    max-width: 900px;
}
.tech-cards-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 0 auto;
    margin-left: 80px;
}
  .tech-row {
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
    width: 100%;
    justify-content: center;
  }
  .tech-row:last-child {
    justify-content: flex-start;
  }
  .tech-card {
    background: linear-gradient(135deg, rgba(30,32,36,0.92) 60%, rgba(60,32,10,0.85) 100%);
    border-radius: 1.4rem;
    border: 1.5px solid #222;
    box-shadow: 0 2px 16px 0 #000a, 0 0 0.5px 0 #fff2;
    min-width: 340px;
    max-width: 420px;
    flex: 1 1 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2.2rem 2.2rem 2.2rem 2rem;
    position: relative;
    transition: box-shadow 0.18s, transform 0.18s;
    overflow: hidden;
  }
  .tech-card.astro { background: linear-gradient(135deg, rgba(60,32,10,0.92) 70%, rgba(30,32,36,0.92) 100%); border-color: #ffb347; }
  .tech-card.nextjs, .tech-card.react { background: linear-gradient(135deg, rgba(30,32,36,0.92) 80%, rgba(60,32,10,0.85) 100%); border-color: #fff; }
  .tech-card:hover {
    box-shadow: 0 4px 32px 0 #00e6ff33, 0 0 0.5px 0 #fff2;
    transform: translateY(-4px) scale(1.01);
    z-index: 2;
  }
  .tech-card-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
  }
  .tech-card-header {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 0.7rem;
  }
  .tech-card-icon-left {
    font-size: 1.7rem;
    margin-right: 0.2rem;
  }
  .tech-card-name {
    font-size: 1.45rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.5px;
    font-family: 'Lexend', Arial, sans-serif;
  }
  .tech-card-desc {
    font-size: 1.05rem;
    color: #e0e0e0;
    font-weight: 400;
    line-height: 1.6;
    max-width: 320px;
  }
  .tech-card-icon-right {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 1.5rem;
    min-width: 38px;
  }
  
  /* Progetti */
  .projects-title {
    font-family: 'Georgia', serif;
    font-size: 2.3rem;
    font-weight: 500;
    text-align: center;
    margin-bottom: 2.5rem;
    color: #fff;
    letter-spacing: 1px;
  }
  .projects-cards-container {
    display: flex;
    flex-direction: row;
    gap: 2.2rem;
    justify-content: center;
    align-items: stretch;
    margin: 0 auto 4rem auto;
    max-width: 1300px;
  }
  .project-card {
    background: linear-gradient(135deg, rgba(30,32,36,0.97) 80%, rgba(60,32,10,0.92) 100%);
    border-radius: 1.5rem;
    border: 2px solid #222;
    box-shadow: 0 2px 24px 0 #000a, 0 0 0.5px 0 #fff2;
    min-width: 340px;
    max-width: 400px;
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: box-shadow 0.18s, transform 0.18s;
    position: relative;
  }
  .project-card:hover {
    box-shadow: 0 4px 32px 0 #00e6ff33, 0 0 0.5px 0 #fff2;
    transform: translateY(-4px) scale(1.01);
    z-index: 2;
  }
  .project-image-wrapper {
    width: 100%;
    height: 210px;
    background: #181818;
    display: flex;
    align-items: center;
    justify-content: center;
    border-top-left-radius: 1.5rem;
    border-top-right-radius: 1.5rem;
    overflow: hidden;
  }
  .project-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  .project-info {
    padding: 1.7rem 1.3rem 1.3rem 1.3rem;
    display: flex;
    flex-direction: column;
    flex: 1;
  }
  .project-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.7rem;
    font-family: 'Lexend', Arial, sans-serif;
  }
  .project-desc {
    font-size: 1.05rem;
    color: #e0e0e0;
    font-weight: 400;
    line-height: 1.6;
    margin-bottom: 1.2rem;
  }
  .project-links {
    display: flex;
    gap: 1.1rem;
    margin-top: auto;
  }
  .project-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    border-radius: 0.8rem;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    background: rgba(255,255,255,0.04);
    color: #fff;
    border: 1.5px solid #444;
    transition: background 0.15s, border 0.15s, color 0.15s;
  }
  .project-btn.github {
    border-color: #a18fff;
  }
  .project-btn.demo {
    border-color: #7fffd4;
  }
  .project-btn:hover {
    background: #222;
    color: #7fffd4;
    border-color: #7fffd4;
  }
  .project-btn.github:hover {
    color: #a18fff;
    border-color: #a18fff;
  }
  
  /* Contatti */
  .contact-container {
    display: flex;
    flex-direction: row;
    gap: 2.5rem;
    justify-content: center;
    align-items: stretch;
    max-width: 1200px;
    margin: 0 auto;
  }
  .contact-form-box {
    background: linear-gradient(135deg, rgba(30,32,36,0.97) 80%, rgba(60,32,10,0.92) 100%);
    border-radius: 1.5rem;
    border: 2px solid #222;
    box-shadow: 0 2px 24px 0 #000a, 0 0 0.5px 0 #fff2;
    flex: 2 1 0;
    padding: 2.5rem 2.2rem 2.2rem 2.2rem;
    display: flex;
    flex-direction: column;
    min-width: 320px;
    max-width: 520px;
  }
  .contact-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.7rem;
    font-family: 'Lexend', Arial, sans-serif;
  }
  .contact-subtitle {
    color: #e0e0e0;
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
  }
  .contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
  }
  .contact-form input,
  .contact-form textarea {
    background: rgba(255,255,255,0.04);
    border: 1.5px solid #444;
    border-radius: 0.7rem;
    color: #fff;
    font-size: 1rem;
    padding: 0.8rem 1rem;
    font-family: 'Lexend', Arial, sans-serif;
    outline: none;
    transition: border 0.15s;
  }
  .contact-form input:focus,
  .contact-form textarea:focus {
    border-color: #7fffd4;
  }
  .contact-btn {
    background: #7fffd4;
    color: #222;
    font-weight: 700;
    border: none;
    border-radius: 0.7rem;
    padding: 0.8rem 1.2rem;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
  }
  .contact-btn:hover {
    background: #222;
    color: #7fffd4;
    border: 1.5px solid #7fffd4;
  }
  
  /* Contatti Side */
  .contact-side {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    flex: 1 1 0;
    min-width: 260px;
    max-width: 420px;
  }
  .contact-map-box {
    background: linear-gradient(135deg, rgba(30,32,36,0.97) 80%, rgba(60,32,10,0.92) 100%);
    border-radius: 1.2rem;
    border: 2.5px solid #a18fff;
    box-shadow: 0 2px 16px 0 #000a;
    padding: 1.2rem 1.2rem 0.7rem 1.2rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
  .contact-map-title {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.7rem;
  }
  .contact-map-placeholder {
    width: 100%;
    height: 180px;
    border-radius: 1rem;
    overflow: hidden;
    position: relative;
    border: 2px solid #a18fff;
    margin-bottom: 0.5rem;
  }
  .contact-map-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(0.2) brightness(0.8);
  }
  .contact-map-marker {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 18px;
    height: 18px;
    background: #a18fff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    border: 3px solid #fff;
    box-shadow: 0 0 8px 2px #a18fff99;
    z-index: 2;
  }
  .contact-social-box {
    background: linear-gradient(135deg, rgba(30,32,36,0.97) 80%, rgba(60,32,10,0.92) 100%);
    border-radius: 1.2rem;
    border: 2.5px solid #39ff14;
    box-shadow: 0 2px 16px 0 #000a;
    padding: 1.2rem 1.2rem 1.2rem 1.2rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
  .contact-social-title {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
  }
  .contact-social-desc {
    color: #e0e0e0;
    font-size: 1rem;
    margin-bottom: 0.7rem;
  }
  .contact-social-links {
    display: flex;
    gap: 1.2rem;
  }
  .contact-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.04);
    border-radius: 0.7rem;
    border: 1.5px solid #444;
    padding: 0.5rem 0.7rem;
    color: #fff;
    transition: border 0.15s, background 0.15s, color 0.15s;
  }
  .contact-social-link:hover {
    border-color: #7fffd4;
    background: #222;
    color: #7fffd4;
  }
  
  /* Footer */
  .site-footer {
    background: linear-gradient(135deg, rgba(20,22,24,0.98) 80%, rgba(30,32,36,0.97) 100%);
    padding: 2.2rem 1rem 1.2rem 1rem;
    border-top: 2px solid #222;
    margin-top: 0;
  }
  .footer-content {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.1rem;
    padding: 0 0.5rem;
  }
  .footer-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1px;
    font-family: 'Lexend', Arial, sans-serif;
  }
  .footer-socials {
    display: flex;
    gap: 1.2rem;
    margin: 0.5rem 0;
  }
  .footer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.04);
    border-radius: 50%;
    border: 1.5px solid #444;
    width: 44px;
    height: 44px;
    color: #fff;
    transition: border 0.15s, background 0.15s, color 0.15s;
  }
  .footer-social-link:hover {
    border-color: #7fffd4;
    background: #222;
    color: #7fffd4;
  }
  .footer-copy {
    color: #e0e0e0;
    font-size: 0.98rem;
    text-align: center;
    margin-top: 0.5rem;
  }
  
  /* Social Home */
  .home-socials {
    display: flex;
    gap: 1.1rem;
    justify-content: center;
    margin-top: 1.2rem;
  }
  .home-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.04);
    border-radius: 50%;
    border: 1.5px solid #444;
    width: 40px;
    height: 40px;
    color: #fff;
    transition: border 0.15s, background 0.15s, color 0.15s;
  }
  .home-social-link:hover {
    border-color: #7fffd4;
    background: #222;
    color: #7fffd4;
  }
  @media (max-width: 1024px) {
    .tech-cards-container,
    .contact-container {
      flex-direction: column;
      align-items: center;
      margin: 0 1rem;
    }
    .tech-row,
    .navbar-links {
      flex-direction: column;
      align-items: center;
      gap: 1rem;
    }
  
    .navbar-links {
      display: none;
      position: absolute;
      top: 100%;
      left: 0;
      right: 0;
      background: black;
      flex-direction: column;
      padding: 1rem;
    }
  
    .navbar-links a {
      padding: 0.5rem 0;
    }
  
    .navbar-toggle {
      display: block;
    }
  
    .navbar.active .navbar-links {
      display: flex;
    }
  
    .about-box {
      flex-direction: column;
      align-items: flex-start;
      padding: 2rem 1.2rem;
    }
  
    .about-title {
      margin: 0 0 1rem 0;
      text-align: left;
    }
  
    .tech-card {
      min-width: unset;
      width: 100%;
    }
  
    .project-card {
      min-width: unset;
      width: 100%;
    }
  
    .contact-form-box,
    .contact-side {
      max-width: 100%;
    }
  
    .home-title {
      font-size: 2.5rem;
    }
  
    .home-subtitle {
      font-size: 1rem;
    }
  
    .job-availability {
      flex-direction: row;
      justify-content: center;
    }
  
    .profile-pic-circle {
      width: 120px;
      height: 120px;
    }
  }
  
  @media (max-width: 600px) {
    .home-title {
      font-size: 2rem;
    }
  
    .tech-card-name,
    .project-title {
      font-size: 1.2rem;
    }
  
    .tech-card-desc,
    .project-desc {
      font-size: 0.95rem;
    }
  
    .contact-btn {
      font-size: 1rem;
      padding: 0.6rem 1rem;
    }
  }
  @media (max-width: 768px) {
    .projects-cards-container {
      display: flex;
  flex-direction: row;
  flex-wrap: wrap; /* <<< AGGIUNGI QUESTA RIGA */
  gap: 2.2rem;
  justify-content: center;
  align-items: stretch;
  margin: 0 auto 4rem auto;
  max-width: 1300px;
    }
  
    .project-card {
      min-width: 100%;
    max-width: 100%;
    }
    .tech-cards-container {
      margin-left: 0;
      padding: 0 1rem;
    }
  
    .tech-row {
      flex-direction: column;
      gap: 1.5rem;
      align-items: center;
    }
  
    .tech-card {
      min-width: auto;
      width: 100%;
      padding: 1.5rem;
      text-align: left;
      flex-direction: column;
      align-items: flex-start;
    }
  
    .tech-card-header {
      flex-direction: row;
      align-items: center;
      gap: 0.5rem;
    }
  
    .tech-card-name {
      font-size: 1.3rem;
    }
  
    .tech-card-desc {
      font-size: 0.95rem;
      line-height: 1.4;
      max-width: 100%;
    }
  
    .tech-card-icon-right {
      display: none;
    }
  }
  @media (max-width: 768px) {
    .about-title{
        margin-bottom: -100px;
    }
    .tech-card-name{
        margin-top: -22px;
    }
    .tech-card-icon-left{
        margin-top: -15px;
    }
  }
  @media (max-width: 768px) {
    body {
      font-size: 0.95rem;
    }
  
    section {
      margin-top: 3rem;
      margin-bottom: 3rem;
    }
  }
  /* Nascondi il menu di default su mobile */
@media (max-width: 768px) {
    .navbar-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: #000000;
        position: absolute;
        top: 70px;
        left: 0;
        padding: 1rem;
    }
  
    .navbar-links.active {
      display: flex;
    }
  
    .navbar-toggle {
      display: block;
    }
  }
  #language-selector {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #fff;
    padding: 8px 12px;
    font-family: 'Lexend', sans-serif;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    outline: none;
    min-width: 140px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
    padding-right: 35px;
  }
  
  #language-selector:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  }
  
  #language-selector:focus {
    background: rgba(255, 255, 255, 0.2);
    border-color: #a18fff;
    box-shadow: 0 0 0 3px rgba(161, 143, 255, 0.3);
  }
  
  /* Stile per le opzioni del select */
  #language-selector option {
    background: #1a1a1a;
    color: #fff;
    padding: 8px 12px;
    border: none;
    font-family: 'Lexend', sans-serif;
    font-size: 14px;
  }
  
  #language-selector option:hover {
    background: #2a2a2a;
  }
  
  #language-selector option:checked {
    background: #a18fff;
    color: #fff;
  }

  /* Responsive design per mobile */
  @media(max-width: 1024px) {
    #language-selector {
      font-size: 13px;
      padding: 6px 10px;
      min-width: 120px;
      padding-right: 30px;
      background-size: 14px;
      background-position: right 8px center;
    }
  }
  
  /* Stile alternativo con effetto glassmorphism più pronunciato */
  .language-selector-glass {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
  }
  
  .language-selector-glass:hover {
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15) !important;
  }
  
  /* Stile per quando il selettore è nella navbar */
  .navbar-links #language-selector {
    margin-left: 15px;
  }
  
  /* Animazione di apertura del dropdown */
  #language-selector:focus {
    animation: selectFocus 0.3s ease-out;
  }
  
  @keyframes selectFocus {
    0% {
      transform: scale(1);
    }
    50% {
      transform: scale(1.02);
    }
    100% {
      transform: scale(1);
    }
  }
  
  /* Stile per il testo delle opzioni con flag */
  #language-selector option {
    font-weight: 400;
    line-height: 1.4;
  }
  
  /* Effetto hover personalizzato per browser WebKit */
  #language-selector::-webkit-scrollbar {
    width: 8px;
  }
  
  #language-selector::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
  }
  
  #language-selector::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
  }
  
  #language-selector::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
  }
  
  /* Stile per dispositivi touch */
  @media (hover: none) and (pointer: coarse) {
    #language-selector:hover {
      transform: none;
    }
    
    #language-selector:active {
      background: rgba(255, 255, 255, 0.2);
      transform: scale(0.98);
    }
  }
  /* Container principale per la policy */
.privacy-container {
  max-width: 800px;
  margin: 40px auto;
  padding: 32px 28px;
  background: #383838;
  border-radius: 9px;
  box-shadow: 0 3px 18px #0002;
  font-family: 'Segoe UI', Arial, sans-serif;
  color: #ffffff;
  line-height: 1.7;
  text-align:center;
}

/* Titoli */
.privacy-container h1 {
  font-size: 2.1rem;
  color: #ffffff;
  margin-bottom: 1.3rem;
  border-bottom: 2px solid #eee;
  padding-bottom: 0.5rem;
}
.privacy-container h2 {
  font-size: 1.3rem;
  color: #7fffd4;
  margin-top: 2rem;
  margin-bottom: 0.7rem;
  border-left: 4px solid #88abfd;
  padding-left: 0.7rem;
}

/* Elenchi puntati ordinati */
.privacy-container ul, .privacy-container ol {
  padding-left: 1.7em;
}

/* Paragrafi */
.privacy-container p {
  margin-bottom: 1.3em;
}

/* Blocco “ultimo aggiornamento” */
.privacy-container em {
  display: block;
  margin-top: 2.4rem;
  font-size: 1rem;
  color: #d6d6d6;
}

@media (max-width: 600px) {
  .privacy-container {
      padding: 14px 6px;
      font-size: 1em;
  }
  .privacy-container h1 {
      font-size: 1.3em;
  }
  .privacy-container h2 {
      font-size: 1.1em;
  }
}
.privacy{
  text-decoration: none;
  color: white;
}
