@charset "UTF-8";
/* CSS Document */

* { 
    -moz-box-sizing: border-box; 
    -webkit-box-sizing: border-box; 
     box-sizing: border-box; 
	font-family: 'Open Sans'; 
	font-weight: normal; 
	font-style: normal;
	font-size: 18px;
    color: #3A3A3A;
    text-decoration: none;
    color: white;
}

html, body {
  background-image: url("../immagini/sfondo_erba_minigolfeden.jpg");
  background-repeat: repeat;
  width: 100%;
  height: 100%;
  margin: 0;
}

#logo_menu {
    margin: 10px;
    height: auto;
}

#menu_desktop {
    top: 0;
    left: 0;
    width: 100%;
    margin-left: 0px;
    height: 235px;
    /* background: rgba(0,0,0,0.75); */
    display: flex;
    align-items: center;
}

#voci_menu_desktop {
    text-align: right;
    width: 100%;
    padding-right: 20px;
    margin-top: 120px;
}

.voce_menu {
    width: 100px;
    height: 100px;
    background-image: url("../immagini/pallina-menu.png");
    background-size: cover;
    display: inline-flex;
    justify-content: center;   
    align-items: center;       
    text-align: center;        
    font-size: 19px;
    margin-left: 30px;
    transition: transform 0.25s ease, 
                box-shadow 0.25s ease;
    font-family: 'Super Wonder'; 
    font-weight: normal; 
    font-style: normal;
    color: white;
    text-shadow:
        -1px -1px 0 #666,
         1px -1px 0 #666,
        -1px  1px 0 #666,
         1px  1px 0 #666,
        3px 3px 0 #4f7313;
    letter-spacing: 1.5px;
}

.voce_menu:hover {
    transform: scale(1.1);
}

/* L'immagine panoramica deve occupare spazio nel flusso del documento:
   in posizione assoluta andava a sovrapporsi al primo paragrafo. */
#immagine_top {
    position: relative;
    width: 100%;
    overflow: hidden;
}

#immagine_top img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 1;
    object-fit: cover;
    object-position: center 60%;
    position: static;
    transform: none;
}

.testo {
    display: flow-root; /* contiene anche le immagini con float, senza invadere la sezione seguente */
    margin: 30px;
    background-color: rgb(0,0,0,0.5);
    color: white;
    padding: 30px;
    border-radius: 40px;
    line-height: 1.6em;
    text-align: justify;
    font-size: 20px;
}

.titolo {
    font-family: 'Super Wonder'; 
    font-weight: bold; 
    font-style: normal;
    font-size: 40px;
    color: white;
    margin-bottom: 20px;
    letter-spacing: 1.5px;
}

th {
    font-weight: bold;
}

.incorniciato-destra {
    float: right;                 
    width: min(44%, 500px);
    max-width: 100%;
    height: auto;
    margin: 0 0 15px 20px;        
    border: 2px solid #4f7313;    
    border-radius: 10px;          
    box-shadow: 4px 4px 10px rgba(0,0,0,0.25); 
}

.incorniciato-sinistra {
    float: left;                  
    width: min(44%, 500px);
    max-width: 100%;
    height: auto;
    margin: 0 20px 15px 0;        
    border: 2px solid #4f7313;    
    border-radius: 10px;          
    box-shadow: 4px 4px 10px rgba(0,0,0,0.25); 
}

.max-900 {
    width: 100%;        
    max-width: 900px;   
    display: block;   
}

#tabella_prezzi {
    display: table;
}

#tabella_prezzi_piccola {
    display: none;
}

#tabella_prezzi, #tabella_prezzi_piccola {
    width: 100%;
    border-collapse: collapse;
    font-family: Arial, sans-serif;
}

#tabella_prezzi td:nth-child(2),
#tabella_prezzi_piccola td:nth-child(2) {
    text-align: right;
}

#tabella_prezzi td:nth-child(3),
#tabella_prezzi_piccola td:nth-child(3) {
    padding-left: 15px;
}


/* Intestazione */
#tabella_prezzi thead th, #tabella_prezzi_piccola thead th {
    background-color: #ff7a00; /* arancione del sito */
    color: #fff;
    padding: 10px;
    border-bottom: 2px solid #cc5f00;
    text-align: left;
}

/* Celle */
#tabella_prezzi, #tabella_prezzi_piccola {
    padding: 10px;
    border-bottom: 1px solid #ddd;
    width: 100%;
}


#tabella_prezzi tbody tr:nth-child(even) {
    background-color: rgb(0, 0, 0, 0.4);
}

#tabella_prezzi_piccola tbody tr:nth-child(4n+3),
#tabella_prezzi_piccola tbody tr:nth-child(4n+4) {
    background-color: rgb(0, 0, 0, 0.4); /* colore alternato */
}

.torna-su {
    padding: 4px 10px;
    border-radius: 10px;
    color: white;
    background-color: #4f7313;
    margin-top: 30px;
    float: right;
}

#pie {
    background-color: #4f7313;
    padding: 30px;
}

#vai_inglese, #vai_italiano {
    position: relative;
    display: inline-block;
    vertical-align: top;
    margin: 12px 0 0 10px;
    padding: 6px 6px 0px 5px;
    border-radius: 10px;
    background-color: white;
    border: none;
}


#RP {
    text-decoration: none;
    text-align: right;
    margin-top: -24px;
}

#RP a {
    font-size: 10px;
    color: #ededed;
    text-decoration: none;
}

@media (max-width: 880px) {
    
    .voce_menu {
        width: 80px;
        height: 80px;
        font-size: 13px;
        margin-left: 10px;
    }

    th, td, td strong {
        font-size: 16px;
        text-align: left;
    }
}


@media (max-width: 800px) {

    .incorniciato-destra, .incorniciato-sinistra {
        float: none;
        width: 100%;
        max-width: 100%;
        height: auto;
        margin: 0 0 20px;
        display: block;
    }
    

}


@media (max-width: 720px) {
    
    #menu_desktop {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        height: auto; /* logo e menu partecipano al flusso, senza sovrapporsi alla foto */
        padding-bottom: 16px;
        text-align: center;
    }

    #logo_menu {
        display: block;
        width: min(300px, 75vw);
        height: auto;
        margin: 10px auto;
    }

    #voci_menu_desktop {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
        gap: 10px;
        width: 100%;
        padding: 0 10px;
        margin: 0;
    }

    .voce_menu {
        margin-left: 0;
        flex: 0 0 auto;
    }

    #immagine_top {
        margin-top: 0;
    }
    
    .testo {
        font-size: 18px;
    }
    
}

@media (max-width: 650px) {


    .testo {
        font-size: 16px;
        border-radius: 30px;
    }
    
    th, td, td strong {
        font-size: 14px;
    }
    
    #tabella_prezzi {
        display: none;
    }

    #tabella_prezzi_piccola {
        display: table;
    }

    .torna-su { 
        font-size: 15px;
    }
}


@media (max-width: 600px) {
  #immagine_top img {
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 480px) {


    th, td, td strong {
        font-size: 12px;
    }
    
    .titolo {
        font-size: 32px;
    }
    
}

@media (max-width: 400px) {
    
    .voce_menu
        {
            width: 65px;
            height: 65px;
            font-size: 11px;
            margin-left: 3px;
        }
    
    .testo {
        margin: 15px;
    }
}