 @font-face {
      font-family: 'Oswald';
      src: url('../font/Oswald-Regular.ttf') format('truetype');
      font-weight: normal;
      font-style: normal;
  }

  body {
    font-family: 'Oswald', 'Arial Narrow', Arial, sans-serif;
    margin: 0px;
    padding:0px;
    padding-top: 100px;
    background-color: #ffffff;
    line-height: 1.5;
    overflow-x: hidden;
  }


  h1 {
    position: sticky;
    text-shadow: 3px 3px 5px black;
    top: 0;
    z-index: 10;
  }


  h2 {
    margin-bottom: 20px;
    font-size: 2.5em;
    scroll-margin-top: 100px;
  }

  h3 {
    font-size: 1.4em;
    margin-top: 2%;
    margin-bottom: 0px;
  }

  p {
    font-size:1.2em;
  }

  ul{
    font-size:1.2em;
    margin:0px;
  }


  main {
    margin: 40px;
    padding: 20px;
    z-index: o;
  }

  
  figcaption {
    color: #000000da; 
    font-style: bold;
    text-align: center;
  }

  .hero {
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: rgb(255, 255, 255);
    padding: 0;
    font-size: 1.8em;
    position: sticky;
  }

  header h1 {
    margin-top: 25px;
    position: sticky;
    font-size: 4em;
    color: white;
  }

  header { 
    text-align: center; 
    margin-top: 30px; 
    position: relative;
    z-index: 2; 
  }



  

/* ===================CONTENITORI========================= */

  .contenitore {
    display: grid;
    grid-template-columns: 61.8% 38.2%; 
    column-gap: 5%;
    margin: 5% 10%;
    align-items: start;
  }

  .contenitore-nrincammino {
    display: grid;
    grid-template-columns: 61.8% 38.2%; 
    margin: 0% 10% 5%;
    align-items: center;
  }

  .contenitore-nrincammino h2 {
    grid-column: 1 / -1;
    text-align: center;
    }

  .contenitore-nrincammino .introduzione {
    grid-column: 1 / -1;
    }

  .contenitore-nrincammino .testo figure  {
    grid-column: 1 / -1;
    margin: 0 auto;    
  }

  .immagine img {
    width: 100%;    
    height: auto;
    max-width: none;
  }

  .testo {
    display: flex;
    flex-direction: column;
    grid-column: 1;
  }

  .immagine {
    grid-column: 2;      
    justify-self: end;    
    align-self: center;   
    max-width: 600px; 
  }
  
  .svgnrincammino {
    width: 900px;
    height: auto;
    min-width: 500px;
  }

  .contenitoresvg {
    display: flex;
    justify-content: center; 
    align-items: center;  
    margin-top: 10%;  
  }
    

  



  /*===========================STILI E DECORAZIONI ======================*/

    .markblue {
      background-color: #5C809B;
      color:#ffffff;
      font-weight: 400;
    }

  .azione {
    font-style: italic;
    background-color: #FBB03B;
    font-size: 1.1em;
    padding: 5px 5px;   box-sizing: border-box;
  }

  .introduzione {
    margin-top: 40px;
    font-size: 1.4rem;
    margin-left: 7%;
    margin-right: 7%;
  }

  .domanda {
    font-size: 1.3em;
    text-shadow: 2px 2px 2px rgb(0, 0, 0);
    margin: 0;
    color: #fff;      
    font-style: italic;
    text-align: center;
    position: sticky;
    background: #222222;
  }

  .mark {
    color: black;
    background-color: #FBB03B;
  }

  .underline {
    text-decoration: underline;
  }

  
  .frecciaindietro {
    width: 25px;
    background: #f9f9f9cb;
    padding: 25px;
    z-index: 1; 
    margin: 0px;
    position: fixed;
    text-decoration: none;
    font-size: 3em;
    color:#000000;
  }

  .freccia {
    width: 25px;
    background: #f9f9f9cb;
    padding: 25px;
    text-decoration: none;
    font-size: 3em;
    color:#000000;
  }





/* ============================ FORM OGGETTI ZAINO ===============================*/

  .griglia-oggetti {
    display: grid;
    grid-template-columns: repeat(2, 1fr); 
    gap: 0px;
  }

  .oggetto {
    display: flex;
    flex-direction: row; 
    align-items: center;
    gap: 5px;
  }

  .disegnooggetto {
    width: 260px;   
    height: auto;
    flex-shrink: 0;
    object-fit: contain; 
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1em;
    transition: transform 0.2s ease;
  }

  .disegnooggetto:hover {
    transform: scale(1.3); 
  }

  .nomeoggetto {
    display: flex;
    flex-direction: column;
    justify-content: center;  
    cursor: pointer;
  }

  .nomeoggetto label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
  }

  #risultato-peso {
    position: sticky;
    top: 90px;              
    align-self: self;
    background: rgba(247, 247, 247, 0.8);
    padding: 1.5em;
    max-width: 160px;
    right: 0;
  }

  #formoggetti img {
    width: 200px;
  }

  .grid-oggetti {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;                     
    margin-top: 0px;
  }

  .grid-oggetti label {
    display: flex;
    align-items: right;
    gap: 0px;
    font-size: 1em;
    cursor: pointer;
  }

  .grid-oggetti img {
    width: 400px;  
    height: auto;
  }

  #formoggetti h3 {
    margin-bottom: 15px;
  }

  #formoggetti .totale {
    margin-top: 20px;
    font-size: 1.2em;
}

  #zaino {
    width: 50%;
    max-width: 300px;
    height: auto;
  }

  #oggetti {
    width: 50%;
    max-width: 300px;
    height: auto;
  }

  #pesozaino {
    font-size: 1.2em;
  }








  /* ===============ILLUSTRAZIONE CORPO UMANO================*/


  .body-container {
    width: 300px;
    grid-column: 1 / -1;     
    display: flex;
    justify-content: center;
    justify-self: center
  }  

  .body-container svg {
      display: flex;
    justify-content: center; 
    align-items: center; 
  }

  .organ {
    position: absolute;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  #reni:hover path{
    fill: #5C809B;
    stroke: #415a6d;
    stroke-width: 2;
  }

  #muscoli:hover path{
    fill: #e18d0e;
    stroke: #cc7906;
    stroke-width: 2;
  }

  .parte { cursor: pointer; }
  .label { display: none; font-size: 14px; fill: #222; }

  .parte:hover .label, .parte:focus-within .label {
    display: block;
  }

  #polmoni:hover path{
    fill: rgb(255, 255, 255);
    stroke: black;
    stroke-width: 2;
  }

  #cuore:hover path{
    fill: rgb(187, 23, 23);
    stroke: black;
    stroke-width: 2;
  }

  #cervello:hover path{
    fill: #B08E5B;
    stroke: white;
    stroke-width: 2;
  }


  .input-peso {
    width: 50px; 
  }




  /* ==================HOMEPAGE====================== */

  #home1 {
    height: 100vh;
  }

  #home2 {
    height: 100vh;
    margin-top: 10vh;
  }

  #home3 {
    height: 100vh;
    margin-bottom: 500px;
  }

  #home1 h1 {
    margin-bottom: 100px; 
  }

  #home1 header h1 {
    color: #d1d0d0;
    font-size: 3;
    text-shadow:  10px 5px 0 #B08E5B,
    -2px 2px 0 #B08E5B,
    2px -2px 0 #B08E5B,
    -2px -2px 0 #B08E5B;
    margin-bottom: 200px;
  }

  #home1 h2 {
    margin-top: 50px; 
  }

  #home2 p {
    margin-top: -200px;
  }
  
  #home2 header {
    margin-bottom: 500px; 
  }
  
  #logo {
    width:250px;
    text-align: center;
    margin:30px;
  }

  #titolohome {
    color: #5C809B;
  }

  .illustrazione {
    width: 225px;
    position: relative;
    top: 50%;             
    left: 50%;             
    transform: translate(-50%, -50%); 
    height: auto;
    margin-top: 400px;
  }

  .scrittahome {
    text-align: center;
    margin: 30px;
    position: sticky;
  }

  .illustrazione2 {
    width: 760px;
    position: relative;
    top: 50%;              
    left: 48%;       
    transform: translate(-50%, -50%);
    height: auto;
    margin-top: 400px;
  }

  .q {
    position: fixed;      
    top: 50%;            
    left: 50%;            
    transform: translate(-50%, -50%); 
    width: 160px;         
    height: auto;
    opacity: 0;                     
    animation: fadeIn 2s forwards;   
    animation-delay: 1s;             
  }

    @keyframes fadeIn {
      from { opacity: 0; }
      to { opacity: 1; }
    }


  #logo {
    height: 80px; 
    width: auto;
  }


    .logohome {
      width: 70%;
      margin-left: 7%;
      margin-top: 150px;
      margin-bottom: 200px;
    }






/*===================MENU E FOOTER==============================*/

  #barranavigazione {
    padding: 10px;
    width: 100vw;
    top: 0;
    height: 80px;
    background-color: #ffffff;
    display: flex;
    gap: 40px;
    position: fixed;
    z-index: 4;
    align-items: center;
  }

  #barranavigazione a {
    text-decoration: none;
    font-family: 'Oswald';
    color: black;
    font-size: 1.2;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  #sidemenu {
    position: fixed;
    top: 0;
    left: 0;
    width: 17px;
    height: 100vh;
    background: #f9f9f9cb;
    padding: 20px;
    z-index: 1; 
     margin-top: 80px;
  }

  #sidemenu ul {
    list-style: none;
    padding: 0;
    margin-left: 0px;
  }

  #sidemenu li {
    margin: 40px 0;
  }

  #sidemenu a {
    font-size: 2em;         
    color: black;             
    text-decoration: none;
    gap: 300px;
  }

  #sidemenu a:hover {
    color: #5C809B;
  }

  .menu {
    display: flex;
    flex: 1;
    justify-content: space-evenly;
  }

  #menu-toggle {
    display: none;
  }

  .hamburger {
    display: none;      
    font-size: 30px;
    color: black;
    padding: 0 10px;
    cursor: pointer;
    user-select: none;
    margin-left: 10px;   
  }

  
  #foo {
    width: 100%;
    height: 30px;
    background:#5D809B;
    color: white;
    text-align: center;
    padding: 20px;
    font-size: 1.1em;
    position: relative;
    z-index: 2;
  }




/*==================MAPPA IMMAGINE DISTRIBUZIONE PESO ZAINO===============*/

  .img-hotspots {
        position: relative;
        height: 80vh;
        aspect-ratio: 592.35 / 713.84;
        margin: 0;
        background: url('distribuzionepeso.svg') center/contain no-repeat;
        flex: 1;
      }

      .hotspot {
        position: absolute;
        width: 20px; height: 20px;
        border-radius: 50%;
        background: #ffffff;
        box-shadow: 0 0 0 4px rgba(75, 75, 75, 0.25);
        cursor: pointer;
        display: grid; place-items: center;
        outline: none;
        transition: transform .15s;
      }
      .hotspot:hover,
      .hotspot:focus { transform: scale(1.1); }

      .hotspot::after {
        content: attr(data-label);
        position: absolute;
        top: 50%;
        left: calc(100% + 10px);
        transform: translateY(-50%);
        background: rgba(0,0,0,.85);
        color: #fff;
        font: 14px, 'Oswald';
        padding: 6px 10px;
        border-radius: 6px;
        white-space: nowrap;
        opacity: 0;
        pointer-events: none;
        transition: opacity .15s;
      }
      .hotspot:hover::after,
      .hotspot:focus::after { opacity: 1; }

      .hotspot::before {
        content: "";
        position: absolute;
        top: 50%;
        left: 100%;
        transform: translate(2px,-50%);
      
        opacity: 0;
        transition: opacity .15s;
      }
      .hotspot:hover::before,
      .hotspot:focus::before { opacity: 1; }


    


/* =======NUMERI IN CAMMINO HOVER==========*/


  #cerchiomarrone:hover circle {
    fill:rgb(0, 0, 0);
  }

  #cerchiopiede:hover path {
    fill: #FBB03B;

  }

  #cerchiomarrone:hover text {
    opacity: 1;
  }

   #cerchiopiede:hover text {
    opacity: 1;
    fill: #97620e;
  }

  #cerchioscarabocchio:hover path {
    fill:rgb(255, 255, 255);
    stroke:#5C809B;
  }

    #cerchioscarabocchio:hover text {
    opacity: 1;
fill:#5C809B;
  }

  #cerchionero:hover text {
    opacity: 1;
    fill:#B08E5B
  }

    #cerchionero:hover circle {
    fill:#b08e5b;
  }

    #cerchiofiori:hover text {
    opacity: 1;
    fill:#5C809B;
  }

    #cerchiofiori:hover path {
    fill: black;
  }

    #cerchionumeri:hover text {
    opacity: 1;
  }

    #cerchionumeri:hover path {
    fill:black;
    stroke:#5C809B;
  }

     #cerchionumeri:hover text {
    opacity: 1;
  }

    #cerchiogiallo:hover circle {
    fill:rgb(255, 255, 255);
    stroke:#5C809B;
    stroke-width: 3%;
  
  }

      #cerchiogiallo:hover text {
    opacity: 1;
    fill: #FBB03B;
  
  }







/*================== CLASSI SVG CORPO UMANO===============*/


  .cls-1, .cls-10, .cls-2, .cls-3, .cls-4, .cls-5, .cls-6, .cls-7, .cls-8, .cls-9 {
          fill: none;
          stroke-miterlimit: 10;
        }

        .cls-1, .cls-2, .cls-3 {
          stroke: #b08e5b;
        }

        .cls-2 {
          stroke-width: 0.5px;
        }

        .cls-3, .cls-6 {
          stroke-width: 0.75px;
        }

        .cls-4 {
          stroke: #fff;
        }

        .cls-5, .cls-6, .cls-7 {
          stroke: #b20b2b;
        }

        .cls-7 {
          stroke-width: 0.25px;
        }

        .cls-8 {
          stroke: #5d809b;
        }

        .cls-10, .cls-9 {
          stroke: #d8861a;
        }

        .cls-10 {
          stroke-width: 2px;
        }


