  @import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;700&family=Inter:wght@400;600&display=swap');

  :root {
    --verde-primario: #1c4a24;
    --verde-secondario: #4caf50;
    --verde-pastello: #dff9de;
    --bianco-puro: #ffffff;
    --ombra-leggera: rgba(28, 74, 36, 0.12);
    --ombra-forza: rgba(40, 100, 52, 0.3);
    --menu-opacity: 0.45;
    --menu-hover-opacity: 0.9;
    --menu-font-size: 0.85rem;
  }

  * {
    box-sizing: border-box;
  }

  html, body {
    margin: 0;    
    height: 100%;
    background: var(--bianco-puro);
    font-family: 'Inter', sans-serif;
    color: var(--verde-primario);
    overflow-x: hidden;
    position: relative;
  }

  body::before {
    content: "";
    position: fixed;
    top: -105%;
    left: -105%;
    width: 310%;
    height: 310%;
    background-image: url('../../assets/img/logo.png');
    background-repeat: repeat;
    background-position: center;
    background-size: 190px 190px;
    opacity: 0.06;
    transform: rotate(-16deg);
    pointer-events: none;
    z-index: 0;
  }

  .container-wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    height: 100vh;
    padding-top: 90px;
    padding-bottom: 90px;
    position: relative;
    z-index: 1;
  }

  .container {
    position: relative;
    max-width: 720px;
    width: 100%;
    padding: 4rem 3rem 6rem 3rem;
    background: rgba(255,255,255,0.8);
    border-radius: 40px;
    box-shadow:
      0 25px 52px var(--ombra-leggera),
      inset 0 0 40px var(--ombra-forza);
    text-align: center;
    animation: fadeInContainer 1.6s ease forwards;
    opacity: 0;
  }

  /* menu lingua posizionato allineato in alto a destra del box con margini e minor ingombro */
  .lang-select-wrapper {
    position: absolute;
    top: 30px;
    right: 35px;
    z-index: 10;
    backdrop-filter: blur(7px);
    background: rgba(255, 255, 255, var(--menu-opacity));
    border-radius: 12px;
    padding: 6px 10px;
    box-shadow: 0 0 6px rgba(76, 175, 80, 0.2);
    font-size: var(--menu-font-size);
    transition: background 0.3s ease, opacity 0.3s ease;
    cursor: pointer;
  }
  .lang-select-wrapper:hover,
  .lang-select-wrapper:focus-within {
    background: rgba(255, 255, 255, var(--menu-hover-opacity));
    box-shadow: 0 0 12px rgba(76, 175, 80, 0.4);
    font-size: 0.9rem;
  }
  select.lang-select {
    all: unset;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--verde-primario);
    cursor: pointer;
    padding-left: 28px;
    background-image: url('data:image/svg+xml;charset=utf-8,<svg fill="%234caf50" height="20" viewBox="0 0 24 24" width="20" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: left 8px center;
    background-size: 16px 16px;
    border-radius: 8px;
    padding-right: 10px;
    outline-offset: 2px;
  }

  /* Usare emoji come workaround per bandiere in option */
  .lang-select option[value="it"]::before {
    content: "🇮🇹 ";
  }
  .lang-select option[value="en"]::before {
    content: "🇬🇧 ";
  }


  h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3rem;
    color: var(--verde-primario);
    letter-spacing: 0.06em;
    line-height: 1.1;
    margin: 1rem 0 3.4rem 0;
    text-shadow: 0 7px 20px rgba(28, 74, 36, 0.38);
    font-weight: 700;
    animation: fadeSlideInTop 1.1s ease 0.6s forwards;
    opacity: 0;
  }

.lead-in {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 1.25rem;
  margin: 0 auto 3rem;   /* centro con margine verticale */
  max-width: 85%;        /* larghezza limitata a 85% */
  color: var(--verde-secondario);
  text-shadow: 0 3px 16px var(--ombra-testo);
  animation: fadeSlideInRight 1.3s ease 1.4s forwards;
  opacity: 0;
}
  .description {
    font-family: 'Inter', sans-serif;
    font-size: 1.14rem;
    margin-bottom: 4.2rem;
    line-height: 1.75;
    color: var(--verde-primario);
    animation: fadeSlideInLeft 1.3s ease 1.75s forwards;
    opacity: 0;
  }

  .description a {
    color: var(--verde-secondario);
    font-weight: 700;
    text-decoration: none;
    border-bottom: 2.7px solid transparent;
    padding-bottom: 2px;
    transition: border-color 0.38s ease, color 0.38s ease;
    position: relative;
  }

  .description a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 0;
    background: var(--verde-secondario);
    border-radius: 3px;
    transition: width 0.45s cubic-bezier(0.4, 0, 0.3, 1);
    z-index: -1;
  }

  .description a:hover, .description a:focus {
    color: var(--verde-primario);
  }

  .description a:hover::before, .description a:focus::before {
    width: 100%;
  }

  .firma {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--verde-secondario);
    letter-spacing: 0.05em;
    opacity: 1;
    text-shadow: 0 1px 15px rgba(76, 175, 80, 0.68);
    user-select: none;
    cursor: default;
    animation: pulseGlow 2.8s ease infinite alternate;
  }
  

  /* Animazioni */

  @keyframes fadeInContainer {
    0% {
      opacity: 0;
      transform: scale(0.97);
    }
    100% {
      opacity: 1;
      transform: scale(1);
    }
  }

  @keyframes fadeSlideInTop {
    0% {
      opacity: 0;
      transform: translateY(-30px);
    }
    100% {
      opacity: 1;
      transform: translateY(0);
    }
  }

  @keyframes fadeSlideInRight {
    0% {
      opacity: 0;
      transform: translateX(30px);
    }
    100% {
      opacity: 1;
      transform: translateX(0);
    }
  }

  @keyframes fadeSlideInLeft {
    0% {
      opacity: 0;
      transform: translateX(-30px);
    }
    100% {
      opacity: 1;
      transform: translateX(0);
    }
  }

  @keyframes pulseGlow {
    0% {
      text-shadow:
        0 0 10px #4caf5033,
        0 0 20px #4caf5055,
        0 0 30px #4caf5099;
      transform: scale(1);
    }
    100% {
      text-shadow:
        0 0 12px #4caf5066,
        0 0 25px #4caf5077,
        0 0 42px #4caf50cc;
      transform: scale(1.04);
    }
  }

  /* Responsive */

  @media (max-width: 720px) {
    body::before {
      background-size: 130px 130px;
      top: -90%;
      left: -70%;
      width: 300%;
      height: 300%;
    }

    .container-wrapper {
      padding-top: 70px;
      padding-bottom: 70px;
    }

    .container {
        max-width: 90vw;
      padding: 3.4rem 2.2rem 4.4rem 2.2rem;
      border-radius: 29px;
      box-shadow:
        0 18px 48px var(--ombra-leggera),
        inset 0 0 32px var(--ombra-forza);
    }

    h1 {
      font-size: 2.4rem;
      margin-bottom: 2.6rem;
    }

    .lead-in {
      font-size: 1.15rem;
      margin-bottom: 2.6rem;
      animation: none;
      opacity: 1;
      transform: none;
    }

    .description {
      font-size: 1.02rem;
      margin-bottom: 3rem;
      animation: none;
      opacity: 1;
    }

    .firma {
      font-size: 1.1rem;
      margin-top: 3rem;
      animation: none;
      opacity: 1;
    }
  }
  
      .lang-select {
      top: 12px;
      right: 12px;
    }
  }
  
   .lang-select-wrapper {
      top: 12px;
      right: 12px;
      padding: 5px 9px;
    }

    select.lang-select {
      font-size: 0.9rem;
      padding-left: 24px;
      padding-right: 8px;
    }
  }