@media (max-width: 800px){

  /* Nascondiamo topbar, barra di ricerca e barra sfumata */
  .topbar,
  .search,
  .header::before{
    display: none !important;
    background: none !important;
  }

  /* Header: fondo bianco e logo centrato */
  .header{
    background: #fff !important;
    box-shadow: none;
  }
  .header-inner{
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 0 !important;
    padding: .75rem 0 !important;
  }

  /* Contenitore del brand */
  .brand{
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin: 0 auto !important;
    width: auto !important;
    max-width: 90vw !important;
  }

  /* Logo: mantieni proporzioni originali e scala solo se necessario */
  .brand img{
    display: block !important;
    width: auto !important;
    height: auto !important;
    max-width: 90vw !important;
    max-height: 60px !important;
    margin: 0 auto !important;
    object-fit: contain !important;
  }

  /* Navigazione */
  .nav{
    padding: .35rem .5rem;
    gap: .25rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .nav a{
    padding: .5rem .65rem;
    font-weight: 600;
    border-radius: .5rem;
    white-space: nowrap;
  }

  /* Hero */
  .hero-inner{
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding: 2rem 1rem;
  }
  .hero h1{
    font-size: 1.8rem;
    line-height: 1.2;
    margin: .2rem 0 .6rem;
  }
  .hero p{
    font-size: 1rem !important;
    margin-bottom: 1rem;
  }
  .hero-visual{
    border-radius: .75rem;
  }

  /* Sezioni e griglie */
  .section{
    padding: 1.5rem 1rem;
  }
  .grid-tiles{
    grid-template-columns: 1fr;
    gap: .75rem;
  }
  .tile{
    height: 150px;
    border-radius: .75rem;
    padding: 1rem;
  }
  .tile h3{
    font-size: 1.25rem;
  }

  /* Cards */
  .cards{
    grid-template-columns: 1fr;
    gap: .75rem;
  }
  .card img{
    height: 160px;
  }

  /* Gallery */
  .gallery{
    gap: .75rem;
  }
  .gallery a{
    width: 100%;
    height: 220px;
    border-radius: 10px;
  }

  /* Footer */
  .footer-inner{
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1.25rem 1rem;
  }
  .footer-bottom{
    flex-direction: column;
    gap: .5rem;
    text-align: center;
  }

  /* Filigrana */
  body::before{
    background-size: 120%;
    opacity: 0.5;
  }

  [id]{
    scroll-margin-top: 90px;
  }
}

[id] {
  scroll-margin-top: 160px; /* oppure regola a piacere, es. 120px */
}

