﻿@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700&display=swap');

* {
 margin: 0;
 padding: 0;
 box-sizing: border-box;
 font-family: 'Poppins', sans-serif;
}

/* --- HEADER & LOGO --- */
#logo {
 width: 100%;
 display: block;
 background: #fff;
 line-height: 0; /* Rimuove spazi bianchi indesiderati sotto l'immagine */
}

 #logo img {
  width: 100%; /* Forza l'immagine a occupare tutto lo spazio disponibile */
  height: auto;
  display: block;
 }

/* --- NAVBAR DESKTOP --- */
nav {
 background: #ffffff;
 width: 100%;
 height: 65px;
 line-height: 65px;
 position: relative;
 z-index: 10;
}

 nav .wrapper {
  position: relative;
  max-width: 1250px;
  margin: auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
 }

.wrapper .nav-links {
 display: flex;
 justify-content: space-around;
}

.nav-links li {
 list-style: none;
}

 .nav-links li a {
  color: #0f2c64;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 5px;
  transition: all 0.3s ease;
 }

.wrapper .btn.menu-btn {
 display: none;
 font-size: 30px;
 cursor: pointer;
 color: #0f2c64;
}

/* --- MOBILE MENU --- */
@media screen and (max-width: 970px) {
 nav {
  height: 50px !important;
  line-height: 50px !important;
  background: #ffffff; /* Torniamo al bianco se preferisci continuità */
  border-bottom: 1px solid #f0f0f0;
 }

  nav .wrapper {
   justify-content: flex-end;
   height: 50px;
   padding: 0 20px;
  }

 .wrapper .btn.menu-btn {
  display: block !important;
  position: relative;
  top: 0;
 }

 .wrapper .nav-links {
  display: block !important;
  position: fixed;
  top: 0;
  left: -100%;
  height: 100vh;
  width: 100%;
  max-width: 350px;
  background: #ffffff;
  padding: 50px 10px;
  z-index: 1000;
  transition: all 0.3s ease;
 }

 #menu-btn:checked ~ .nav-links {
  left: 0 !important;
 }
}
