@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;700;800;900&family=Oswald:wght@700&display=swap");

/* ==========================================================================
   RESET & VARIABILI GLOBALI
   ========================================================================== */
:root {
   --bg-main: #0b1026;
   --color-primary: #3155ff;
   --color-accent: #7b4dff;
   --color-light-accent: #a78bfa;
   --text-main: #f5f7ff;
   --text-muted: #8b91a8;

   --gradient-primary: linear-gradient(135deg, #3155ff 0%, #7b4dff 100%);
   --gradient-hover: linear-gradient(135deg, #2544d6 0%, #683cd4 100%);
   --card-bg: rgba(255, 255, 255, 0.03);
   --card-border: rgba(123, 77, 255, 0.2);
}

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

html,
body {
   overflow-x: hidden;
   width: 100%;
   max-width: 100%;
}

html {
   scroll-behavior: smooth;
}

body {
   background-color: var(--bg-main);
   color: var(--text-main);
   font-family: "Inter", sans-serif;
   line-height: 1.6;
}

a {
   color: inherit;
   text-decoration: none;
   transition: all 0.25s ease;
}

img {
   display: block;
   max-width: 100%;
   height: auto;
}

/* ==========================================================================
   TIPOGRAFIA & STRUTTURA COMUNE
   ========================================================================== */
section,
.progetto,
.cosa_facciamo,
.offerta_formativa,
.metodo,
.partner,
.founder,
.contatti {
   padding: 6rem 8%;
}

h1 {
   font-family: "Oswald", sans-serif;
   font-size: clamp(2.2rem, 5vw, 3.5rem);
   text-transform: uppercase;
   letter-spacing: 1px;
   margin-bottom: 1.5rem;
}

h2 {
   font-size: 1.4rem;
   font-weight: 700;
   margin-top: 2rem;
   margin-bottom: 0.8rem;
   color: var(--color-light-accent);
}

p {
   color: var(--text-muted);
   margin-bottom: 1.2rem;
}

/* ==========================================================================
   PULSANTI GLOBALI
   ========================================================================== */
.btn,
button {
   display: inline-flex;
   align-items: center;
   justify-content: center;
   padding: 0.9rem 1.8rem;
   border-radius: 50px;
   font-size: 0.85rem;
   font-weight: 700;
   letter-spacing: 1px;
   text-transform: uppercase;
   cursor: pointer;
   transition: all 0.3s ease;
   border: none;
   font-family: "Inter", sans-serif;
}

.btn-primary,
button {
   background: var(--gradient-primary);
   color: var(--text-main);
   box-shadow: 0 4px 20px rgba(49, 85, 255, 0.3);
}

.btn-primary:hover,
button:hover {
   background: var(--gradient-hover);
   transform: translateY(-2px);
   box-shadow: 0 6px 25px rgba(123, 77, 255, 0.45);
}

.btn-secondary {
   background: transparent;
   color: var(--text-main);
   border: 1px solid rgba(245, 247, 255, 0.3);
}

.btn-secondary:hover {
   border-color: var(--text-main);
   background: rgba(255, 255, 255, 0.05);
}

/* ==========================================================================
   HEADER & NAVBAR
   ========================================================================== */
.header {
   position: sticky;
   top: 0;
   z-index: 1000;
   background: rgba(11, 16, 38, 0.85);
   backdrop-filter: blur(12px);
   display: flex;
   justify-content: space-between;
   align-items: center;
   padding: 1.2rem 8%;
   border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.title a {
   font-size: 1.1rem;
   font-weight: 800;
   letter-spacing: 2px;
   text-transform: uppercase;
}

.navbar ul {
   display: flex;
   gap: 2rem;
   list-style: none;
}

.navbar a {
   font-size: 0.85rem;
   font-weight: 600;
   text-transform: uppercase;
   letter-spacing: 1px;
   color: var(--text-muted);
}

.navbar a:hover,
.navbar a.active {
   color: var(--text-main);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
   min-height: 100vh;
   display: flex;
   align-items: center;

   overflow: hidden;
   position: relative;
   background: linear-gradient(-45deg, #0b1026, #131b40, #1f1b4a, #0e1738);
   background-size: 400% 400%;
   animation: heroGradientAnimation 14s ease infinite;
}

@keyframes heroGradientAnimation {
   0% {
      background-position: 0% 50%;
   }
   50% {
      background-position: 100% 50%;
   }
   100% {
      background-position: 0% 50%;
   }
}

.hero_container {
   display: flex;
   justify-content: space-between;
   align-items: center;
   width: 100%;
   gap: 4rem;
}

.hero_text_col {
   flex: 1;
   max-width: 650px;
}

.hero_tagline {
   color: var(--text-muted);
   font-size: 0.8rem;
   font-weight: 700;
   letter-spacing: 2px;
   text-transform: uppercase;
   margin-bottom: 1.5rem;
   display: inline-block;
}

.hero_title {
   font-family: "Oswald", sans-serif;
   font-size: clamp(3rem, 6vw, 5.5rem);
   line-height: 0.95;
   font-weight: 700;
   text-transform: uppercase;
   letter-spacing: -1px;
   margin-bottom: 2rem;
}

.hero_divider {
   width: 50px;
   height: 3px;
   background: var(--text-main);
   margin-bottom: 2rem;
}

.hero_desc {
   color: var(--text-muted);
   font-size: 1.05rem;
   margin-bottom: 2.5rem;
}

.hero_buttons {
   display: flex;
   gap: 1.5rem;
   align-items: center;
   flex-wrap: wrap;
}

.hero_image_col {
   flex: 1;
   display: flex;
   justify-content: center;
   align-items: center;
   position: relative;
}

.hero_img {
   max-width: 400px;
   filter: drop-shadow(0 0 30px rgba(73, 110, 255, 0.3));
   animation: float 6s ease-in-out infinite;
}

.hero_circle_deco {
   position: absolute;
   width: 120%;
   height: 120%;
   border: 1px solid rgba(255, 255, 255, 0.05);
   border-radius: 50%;
   z-index: -1;
   pointer-events: none;
}

@keyframes float {
   0% {
      transform: translateY(0px);
   }
   50% {
      transform: translateY(-15px);
   }
   100% {
      transform: translateY(0px);
   }
}

/* ==========================================================================
   IL PROGETTO & FOUNDER
   ========================================================================== */
.progetto,
.founder {
   display: flex;
   gap: 4rem;
   align-items: center;
   border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.progetto_logo {
   width: 100%;
   display: flex;
   justify-content: center;
}

.progetto_logo img {
   width: 100%;
   max-width: 580px; /* Limite per desktop */
   height: auto;
   border-radius: 16px;
   box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
   border: 1px solid var(--card-border);
}

/* ==========================================================================
   FOUNDER (Formato circolare ingrandito)
   ========================================================================== */
.founder_foto {
   flex: 0 0 auto;
   display: flex;
   justify-content: center;
   align-items: center;
}

.founder_foto img {
   width: 240px; /* Più grande rispetto ai 135px dei partner */
   height: 240px;
   border-radius: 50%; /* Cerchio perfetto */
   object-fit: cover; /* Riempie il cerchio senza deformarsi */
   border: 3px solid rgba(167, 139, 250, 0.4);
   box-shadow: 0 10px 30px rgba(123, 77, 255, 0.25);
   transition:
      transform 0.3s ease,
      border-color 0.3s ease;
}

.founder_foto img:hover {
   transform: scale(1.04);
   border-color: var(--color-light-accent);
}

/* ==========================================================================
   COSA FACCIAMO & METODO
   ========================================================================== */
.cosa_facciamo,
.metodo {
   background: #141f42;
   border-top: 1px solid rgba(167, 139, 250, 0.15);
   border-bottom: 1px solid rgba(167, 139, 250, 0.15);
}

.cosa_facciamo_card_section {
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
   gap: 2rem;
   margin-top: 3rem;
}

.cosa_facciamo_card {
   display: flex;
   flex-direction: column;
   background: rgba(255, 255, 255, 0.05);
   border: 1px solid rgba(167, 139, 250, 0.25);
   border-radius: 16px;
   padding: 2.2rem;
   transition:
      transform 0.3s ease,
      border-color 0.3s ease;
}

.cosa_facciamo_card:hover {
   transform: translateY(-5px);
   border-color: var(--color-light-accent);
}

.cosa_facciamo_card h3 {
   font-family: "Oswald", sans-serif;
   font-size: 1.35rem;
   letter-spacing: 1px;
   color: var(--text-main);
   margin-bottom: 1rem;
}

.cosa_facciamo_card p {
   font-size: 0.95rem;
   line-height: 1.6;
   color: var(--text-muted);
   margin-bottom: 1.2rem;
   flex-grow: 1;
}

.cosa_facciamo_card a {
   margin-top: auto;
   align-self: flex-start;
   color: var(--color-light-accent);
   font-weight: 600;
}

/* Sezione Metodo */
.metodo_subtitle {
   font-size: 1.1rem;
   color: var(--color-light-accent);
   margin-bottom: 3rem;
}

.metodo_cards_container,
.metodo_content {
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
   gap: 1.8rem;
}

.metodo_card,
.metodo_content > p {
   background: rgba(255, 255, 255, 0.05);
   border: 1px solid rgba(167, 139, 250, 0.25);
   border-radius: 16px;
   padding: 2.2rem 1.8rem;
   position: relative;
   overflow: hidden;
   transition: all 0.3s ease;
}

.metodo_card::before,
.metodo_content > p::before {
   content: "";
   position: absolute;
   top: 0;
   left: 0;
   width: 100%;
   height: 3px;
   background: var(--gradient-primary);
}

.metodo_card:hover,
.metodo_content > p:hover {
   transform: translateY(-5px);
   border-color: var(--color-accent);
   box-shadow: 0 10px 25px rgba(123, 77, 255, 0.15);
}

.metodo_card h3 {
   font-size: 1.3rem;
   font-weight: 700;
   letter-spacing: 1px;
   color: var(--text-main);
   margin-bottom: 0.8rem;
}

/* ==========================================================================
   OFFERTA FORMATIVA (GALLERIA)
   ========================================================================== */
.offerta_formativa_foto {
   display: grid;
   grid-template-columns: repeat(3, 1fr);
   gap: 1.8rem;
   margin: 2.5rem 0 3.5rem 0;
}

.galleria_item {
   position: relative;
   border-radius: 16px;
   overflow: hidden;
   aspect-ratio: 16 / 10;
   border: 1px solid var(--card-border);
   background-color: var(--card-bg);
   box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
   transition:
      transform 0.35s ease,
      border-color 0.35s ease,
      box-shadow 0.35s ease;
}

.galleria_item img {
   width: 100%;
   height: 100%;
   object-fit: cover;
   filter: brightness(0.92);
   transition:
      transform 0.5s ease,
      filter 0.35s ease;
}

.galleria_item:hover {
   transform: translateY(-6px);
   border-color: var(--color-light-accent);
   box-shadow: 0 12px 30px rgba(123, 77, 255, 0.25);
}

.galleria_item:hover img {
   transform: scale(1.06);
   filter: brightness(1.02);
}

/* ==========================================================================
   PARTNER
   ========================================================================== */
.partner {
   text-align: center;
   border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.partner_header {
   margin-bottom: 4rem;
}

.partner_subtitle {
   color: var(--text-muted);
   font-size: 1.05rem;
   max-width: 650px;
   margin: 0 auto;
}

.partner_grid {
   display: flex;
   flex-wrap: wrap;
   justify-content: center;
   gap: 2.5rem 1.8rem;
   max-width: 1250px;
   margin: 0 auto;
}

.partner_card {
   flex: 0 1 200px;
   display: flex;
   flex-direction: column;
   align-items: center;
   text-align: center;
}

/* Cerchio contenitore */
.partner_img_wrap {
   width: 140px; /* Diametro del cerchio */
   height: 140px;
   border-radius: 50%; /* Bordo circolare */
   overflow: hidden; /* Taglia rigorosamente tutto ciò che esce dal cerchio */
   margin-bottom: 1.2rem;
   border: 2px solid rgba(167, 139, 250, 0.35);
   background-color: rgba(255, 255, 255, 0.04);
   box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
   padding: 0; /* AZZERA il padding: fa riempire l'intero cerchio */
   display: flex;
   align-items: center;
   justify-content: center;
   transition:
      transform 0.3s ease,
      border-color 0.3s ease,
      box-shadow 0.3s ease;
}

/* Immagine che riempie interamente il cerchio */
.partner_img_wrap img {
   width: 100%;
   height: 100%;
   object-fit: cover; /* Rende circolare qualsiasi foto o logo rettangolare */
   object-position: center; /* Centra il soggetto/volto */
   border-radius: 50%;
   display: block;
}

.partner_card:hover .partner_img_wrap {
   transform: scale(1.06);
   border-color: var(--color-light-accent);
   box-shadow: 0 10px 30px rgba(123, 77, 255, 0.3);
}

.partner_card h3 {
   font-size: 1rem;
   font-weight: 700;
   color: var(--text-main);
   margin-bottom: 0.45rem;
   letter-spacing: 0.5px;
}

.partner_card p {
   font-size: 0.82rem;
   font-style: italic;
   color: var(--text-muted);
   line-height: 1.45;
   margin: 0;
}

/* ==========================================================================
   CONTATTI
   ========================================================================== */
.contatti {
   text-align: center;
   padding: 7rem 8%;
   border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.contatti_header {
   width: 100%;
   display: flex;
   flex-direction: column;
   align-items: center;
   text-align: center;
   margin-bottom: 3.5rem;
}

.contatti_tagline {
   color: var(--color-light-accent);
   font-size: 0.8rem;
   font-weight: 700;
   letter-spacing: 2px;
   text-transform: uppercase;
   margin-bottom: 0.8rem;
}

.contatti_subtitle {
   color: var(--text-muted);
   font-size: 1.05rem;
   max-width: 620px;
}

.contatti_cards_wrap {
   display: flex;
   justify-content: center;
   align-items: center;
   gap: 2.5rem;
   max-width: 860px;
   margin: 0 auto;
}

.contatti_card {
   flex: 1;
   background: var(--card-bg);
   border: 1px solid var(--card-border);
   border-radius: 24px;
   padding: 3rem 2.2rem;
   display: flex;
   flex-direction: column;
   align-items: center;
   text-align: center;
   min-height: 380px;
   transition: all 0.35s ease;
}

.contatti_card:hover {
   transform: translateY(-5px);
   border-color: rgba(167, 139, 250, 0.4);
}

.contatti_card.featured {
   background: linear-gradient(
      180deg,
      rgba(49, 85, 255, 0.08) 0%,
      rgba(123, 77, 255, 0.14) 100%
   );
   border: 1.5px solid var(--color-accent);
   box-shadow: 0 12px 35px rgba(123, 77, 255, 0.2);
   transform: scale(1.04);
   padding: 3.4rem 2.4rem;
}

.contatti_card.featured:hover {
   transform: scale(1.06) translateY(-4px);
   box-shadow: 0 16px 45px rgba(123, 77, 255, 0.3);
}

.contatti_icon {
   width: 64px;
   height: 64px;
   border-radius: 50%;
   background: rgba(255, 255, 255, 0.05);
   border: 1px solid rgba(167, 139, 250, 0.3);
   display: flex;
   align-items: center;
   justify-content: center;
   margin: 0 auto 1.5rem auto;
   color: var(--color-light-accent);
}

.contatti_icon svg {
   display: block;
   width: 26px;
   height: 26px;
}

.contatti_card.featured .contatti_icon {
   background: var(--gradient-primary);
   color: var(--text-main);
   border: none;
   box-shadow: 0 4px 15px rgba(49, 85, 255, 0.4);
}

.contatti_card h3 {
   font-size: 1.25rem;
   font-weight: 700;
   color: var(--text-main);
   margin-bottom: 0.9rem;
}

.contatti_card p {
   font-size: 0.92rem;
   color: var(--text-muted);
   line-height: 1.55;
   margin-bottom: 2rem;
   flex-grow: 1;
}

/* Pulsanti Contatti */
.contatti_buttons {
   display: flex;
   gap: 0.8rem;
   flex-wrap: wrap;
   justify-content: center;
   width: 100%;
}

.contatti_card .contatti_buttons {
   display: flex;
   flex-direction: row;
   align-items: center;
   justify-content: center;
   gap: 0.9rem;
   max-width: 320px;
   margin: 0 auto;
}

.btn_pill {
   padding: 0.75rem 1.6rem;
   border-radius: 50px;
   font-size: 0.82rem;
   font-weight: 700;
   letter-spacing: 0.5px;
   text-transform: uppercase;
   transition: all 0.25s ease;
   display: inline-block;
}

.btn_social {
   flex: 1;
   display: inline-flex;
   align-items: center;
   justify-content: center;
   gap: 0.6rem;
   padding: 0.8rem 1rem;
   border-radius: 12px;
   font-size: 0.85rem;
   font-weight: 600;
   line-height: 1;
   text-decoration: none;
   white-space: nowrap;
   background: rgba(255, 255, 255, 0.06);
   color: var(--text-main);
   border: 1px solid rgba(255, 255, 255, 0.15);
   transition:
      transform 0.2s ease,
      box-shadow 0.2s ease;
}

.btn_social svg {
   width: 18px;
   height: 18px;
   display: block;
   flex-shrink: 0;
}

.btn_social span {
   display: inline-block;
   line-height: 1;
}

.btn_social:hover {
   transform: translateY(-2px);
   box-shadow: 0 4px 14px rgba(167, 139, 250, 0.2);
}

.banner_fb {
   background: #1877f2;
   box-shadow: 0 4px 15px rgba(24, 119, 242, 0.3);
}

.banner_fb:hover {
   box-shadow: 0 6px 20px rgba(24, 119, 242, 0.45);
}

.btn_primary_action {
   background: var(--gradient-primary);
   color: var(--text-main);
   box-shadow: 0 4px 18px rgba(49, 85, 255, 0.35);
}

.btn_primary_action:hover {
   background: var(--gradient-hover);
   transform: translateY(-2px);
   box-shadow: 0 6px 22px rgba(123, 77, 255, 0.5);
}

.btn_secondary_action {
   background: transparent;
   color: var(--text-main);
   border: 1px solid rgba(245, 247, 255, 0.25);
}

.btn_secondary_action:hover {
   border-color: var(--text-main);
   background: rgba(255, 255, 255, 0.06);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site_footer {
   background: radial-gradient(circle at 50% 0%, #151b3d 0%, #080c1d 100%);
   border-top: 1px solid rgba(167, 139, 250, 0.12);
   padding: 4.5rem 1.5rem 3.5rem;
   text-align: center;
   display: flex;
   justify-content: center;
   align-items: center;
}

.footer_content {
   max-width: 680px;
   margin: 0 auto;
   display: flex;
   flex-direction: column;
   align-items: center;
}

.footer_title {
   font-family: "Oswald", sans-serif;
   font-size: 1.15rem;
   font-weight: 600;
   text-transform: uppercase;
   letter-spacing: 5px;
   color: var(--text-main);
   margin-bottom: 0.35rem;
}

.footer_subtitle {
   display: block;
   font-size: 0.78rem;
   font-weight: 400;
   letter-spacing: 2px;
   text-transform: uppercase;
   color: var(--color-light-accent);
   opacity: 0.85;
   margin-bottom: 1.6rem;
}

.footer_quote {
   font-size: 0.92rem;
   font-style: italic;
   font-weight: 300;
   color: #d1d6ed;
   letter-spacing: 0.5px;
   margin-bottom: 2rem;
   opacity: 0.9;
}

.footer_credits {
   display: flex;
   flex-direction: column;
   gap: 0.3rem;
   margin-bottom: 1.8rem;
}

.footer_credits p {
   font-size: 0.8rem;
   color: var(--text-muted);
   letter-spacing: 0.6px;
   margin: 0;
}

.footer_author span {
   color: var(--text-main);
   font-weight: 500;
}

.footer_disclaimer {
   font-size: 0.72rem;
   font-style: italic;
   line-height: 1.5;
   color: var(--text-muted);
   opacity: 0.65;
   margin: 0;
   max-width: 580px;
}

/* ==========================================================================
   MEDIA QUERIES (RESPONSIVE)
   ========================================================================== */
@media (max-width: 992px) {
   .hero {
      padding-top: -10rem;
   }

   .hero_container {
      flex-direction: column;
      text-align: center;
      gap: 3rem;
   }

   .hero_text_col {
      max-width: 100%;
      display: flex;
      flex-direction: column;
      align-items: center;
   }

   .hero_divider {
      margin-left: auto;
      margin-right: auto;
   }

   .hero_buttons {
      justify-content: center;
   }

   .hero_img {
      max-width: 80%;
   }

   .offerta_formativa_foto {
      grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
      gap: 1.2rem;
   }
}

@media (max-width: 868px) {
   .header {
      flex-direction: column;
      gap: 1rem;
   }

   .navbar ul {
      flex-wrap: wrap;
      justify-content: center;
      gap: 1.2rem;
   }

   .progetto,
   .founder {
      flex-direction: column;
      text-align: left;
   }

   .founder_foto img {
      width: 170px; /* Più grande rispetto ai 100px dei partner su mobile */
      height: 170px;
      margin: 0 auto;
   }
}

@media (max-width: 768px) {
   .hero_title {
      font-size: 3rem;
   }

   .contatti_cards_wrap {
      flex-direction: column;
      gap: 2rem;
   }

   .contatti_card,
   .contatti_card.featured {
      width: 100%;
      transform: none;
      min-height: auto;
      padding: 2.5rem 1.8rem;
   }

   .contatti_card.featured:hover {
      transform: translateY(-3px);
   }
}

@media (max-width: 600px) {
   .offerta_formativa_foto {
      grid-template-columns: 1fr;
   }

   .partner_card {
      flex: 0 1 150px;
   }

   .partner_img_wrap {
      width: 110px;
      height: 110px;
      padding: 0;
   }
}

@media (max-width: 868px) {
   /* Riduci il padding laterale della pagina su mobile per dare respiro ai contenuti */
   section,
   .progetto,
   .cosa_facciamo,
   .offerta_formativa,
   .metodo,
   .partner,
   .founder,
   .contatti {
      padding: 4rem 5%;
   }

   .progetto,
   .founder {
      flex-direction: column;
      gap: 2.5rem;
   }

   /* Immagine proporzionata allo schermo dello smartphone */
   .progetto_logo img {
      max-width: 100%;
      max-height: 280px; /* Evita che occupi tutta l'altezza dello schermo */
      object-fit: cover;
   }

   .founder_foto img {
      max-width: 240px;
   }
}

/* ==========================================================================
   MENU HAMBURGER & NAVBAR MOBILE
   ========================================================================== */

/* Nascosto su desktop */
.menu_toggle {
   display: none;
   background: transparent;
   border: none;
   cursor: pointer;
   padding: 0.5rem;
   flex-direction: column;
   gap: 5px;
   box-shadow: none;
   z-index: 1001;
}

.menu_toggle:hover {
   background: transparent;
   box-shadow: none;
   transform: none;
}

.menu_toggle .bar {
   display: block;
   width: 25px;
   height: 2.5px;
   background-color: var(--text-main);
   border-radius: 3px;
   transition:
      transform 0.3s ease,
      opacity 0.3s ease;
}

/* Animazione da Hamburger a "X" quando è attivo */
.menu_toggle.active .bar:nth-child(1) {
   transform: translateY(7.5px) rotate(45deg);
}
.menu_toggle.active .bar:nth-child(2) {
   opacity: 0;
}
.menu_toggle.active .bar:nth-child(3) {
   transform: translateY(-7.5px) rotate(-45deg);
}

/* Regole per schermi tablet e mobile */
@media (max-width: 868px) {
   .header {
      position: sticky;
      top: 0;
      flex-direction: row; /* Mantiene logo a sinistra e toggle a destra */
      justify-content: space-between;
      padding: 1rem 6%;
   }

   .menu_toggle {
      display: flex; /* Visibile su mobile */
   }

   /* Pannello a comparsa dall'alto con blur */
   .navbar {
      position: absolute;
      top: 100%;
      left: 0;
      width: 100%;
      background: rgba(11, 16, 38, 0.96);
      backdrop-filter: blur(15px);
      border-bottom: 1px solid rgba(167, 139, 250, 0.2);
      max-height: 0;
      overflow: hidden;
      transition:
         max-height 0.4s ease-in-out,
         opacity 0.3s ease;
      opacity: 0;
      box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
   }

   /* Classe applicata via JS per mostrare il menu */
   .navbar.open {
      max-height: 380px;
      opacity: 1;
   }

   .navbar ul {
      flex-direction: column;
      align-items: center;
      gap: 1.5rem;
      padding: 2.2rem 0;
   }

   .navbar a {
      font-size: 1.05rem;
      letter-spacing: 2px;
   }
}
