﻿body {
    overflow-x: hidden;
    overflow-y: auto;
    font-family: 'Titillium Web', 'Roboto Flex', sans-serif;
    background: #FFFFFF left top no-repeat fixed;
}
                       
a { 
    text-decoration: none; 
}     

a.intro { 
    text-decoration: underline;
    color: #475569;
    cursor: pointer;
}

.real { 
    width: auto;
    height: auto;
    max-width: none;
}

#Pagina { 
    width: 80vw;
    max-width: 1024px;
    margin: 0 auto;
    background-color: #FFFFFF;
}

/* ------------------- Div ttlpg ---------------- */

#ttlpg { 
    display: grid;
    width: 100%;
}

#ttlpg > * { 
    grid-area: 1 / 1 / 2 / 2;
}

#ttlpg img { 
    box-shadow: 0 4px 15px rgba(41, 45, 50, 0.4);
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    min-height: 240px;
}

.text-over { 
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    padding: 10px 20px;
    position: relative;
    z-index: 2;
    grid-area: 1 / 1 / 2 / 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.text-over h1 { 
    max-width: 90%;
    font-size: clamp(0.85rem, 2vw, 1.4rem);
    line-height: 1.15;
    margin: 0;
}
/* -------------- Fine Div ttlpg ---------------- */

/* -------------Div barra del percorso----------- */

.breadcrumb-bar { 
    display: flex;
    align-items: center;
    width: 96%;
    height: auto;
    border-block: 1px solid #FFFFFF;
    background-color: #475569; 
    padding: 0.5% 2%;
    font-size: 0.8rem;
    color: #A0AEC0;
}

.breadcrumb-bar a { 
    color: #CBD5E0;
    text-decoration: none;
}

.breadcrumb-bar a:hover { 
    text-decoration: underline;
    color: #FFFFFF;
}
/* -----------Fine Div barra del percorso--------- */

/* --------------Div griglia pulsanti------------ */

.button-grid { 
    display: grid;
    grid-template-columns: 1fr; 
    gap: 48px;
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    body { 
        padding: 20px 20px;
    }
    #intro, .button-grid { 
        max-width: 100% !important;
    }
}

.physics-btn { 
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    width: 100%;
    height: 300px;
    box-sizing: border-box;
    border-radius: 12px;
    padding: 24px;
    text-decoration: none;
    color: #ffffff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-in-out;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.physics-btn::before { 
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(50, 55, 60, 0.75) 0%, rgba(120, 130, 140, 0.25) 100%);
    z-index: 1;
    transition: background 0.3s ease;
}

.physics-btn > * { 
    position: relative;
    z-index: 2;
}

.physics-btn .btn-title { 
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 4px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.physics-btn .btn-desc { 
    font-size: 1.1rem;
    color: #f1f2f6;
    margin: 0;
    line-height: 1.4;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.physics-btn:hover { 
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
}

.physics-btn:hover::before { 
    background: linear-gradient(to top, rgba(40, 45, 50, 0.85) 0%, rgba(100, 110, 120, 0.35) 100%);
}
/* ------------Fine Div griglia pulsanti----------- */

h1, h3, h4, 
.Data, .Header, .Info { 
    margin: 0;
}

h1 { 
    line-height: 180%;
    font-variant: small-caps;
    letter-spacing: 0.2vw;
    font-weight: bold; 
    text-align: center;
    color: white;
    text-shadow: 3px 3px 50px #990000, 0 0 10px #990000, 0 0 10px #808080;
}
                                       
h2 { 
    font-variant: small-caps;
    text-align: left;
    letter-spacing: 0.1em;
    color: #FFFFFF;                                  
}
                              
h3 { 
    margin-top: 1%;
    padding-left: 20px;
    font-weight: normal;
    text-align: left;
    color: #000000;
}

h3 a { 
    font-weight: bold; 
}
               
h4 { 
    line-height: 140%;
    font-style: italic;
    font-weight: normal;
    color: #808080;
    text-align: justify;
}
               
.Data { 
    font-size: 11px;
    text-align: left;
    color: #808080;
    margin-bottom: 15%;                                                      
}
               
.Header { 
    text-align: right;
    font-size: 0.65rem;
    color: #475569;
    line-height: 100%;
}
               
.info { 
    line-height: 1.1em;
    margin-top: 0;
    padding-bottom: 1.2em;
    font-family: 'Titillium Web', 'Roboto Flex', sans-serif;
    font-size: 1.2em;
    font-style: normal;
    text-align: left;
    letter-spacing: 0vw;
    color: #FFFFFF;
}

#intro { 
    background: linear-gradient(135deg, #ffffff 0%, #e4e8ef 100%);
    box-shadow: 0 4px 15px rgba(41, 45, 50, 0.4);
    border-radius: 20px;
    margin: 10% 0;
    padding: 6% 3%;
}

.introttl { 
    margin-left: 3%;
    margin-right: 3%;
    padding-left: 20px;
    font-size: 2rem;
    font-style: italic;
    color: #475569;
}

.introtxt { 
    margin: 0 3%;
    font-size: 1.2rem;
    font-style: italic;
    color: #475569;
}

.button { 
    border-radius: 12px;
    background-color: #475569;
    border: none;
    color: #FFFFFF;
    box-shadow: 0 2px 10px rgba(0,0,0,1);
    padding: 20px;
    text-align: center;
    display: inline-block;
    font-size: 1em;
    margin: 4% 0;
    cursor: pointer;
}

.faq { 
    border-radius: 25px;
    width: fit-content;
    background-color: #000000;
    margin: 0 0 2% 0;
    padding: 1% 2%;
    font-size: 1em;
    font-variant: small-caps;
    color: #FFFFFF;
}

hr.horline { 
    border-top: 0.5px solid #475569;
} 

/* ---------- Div pagina ---------- */

#testa { 
    width: 100%;
    padding: 0 3%;
    float: left;
}

/* -------------------------------------- Div testa ----------------------------- */
       
#LogoIF,
#BannerTesta,
#LogoSCUOLA { 
    display: inline-block;
}               
               
#LogoIF { 
    width: 60%;
    height: auto;
    text-align: left;
    padding-bottom: 2%;
    background-color: #FFFFFF;
    float: left;
}

#LogoIF a { 
    font-family: 'Titillium Web', 'Roboto Flex', sans-serif;
    color: #808080;
}

#LogoIF img { 
    vertical-align: middle;
}
               
#BannerTesta { 
    width: 0%;
    height: auto;
    padding-bottom: 2%;
    background-color: #FFFFFF;
    float: left;
}

#LogoSCUOLA { 
    width: 40%;
    height: auto;
    text-align: right;
    padding-bottom: 2%;
    background-color: #FFFFFF;
    float: left;
}
               
#LogoSCUOLA img { 
    vertical-align: middle;
    padding: 2px 0;
}

.Occhiello { 
    width: 92%;
    border-radius: 25px;
    box-shadow: 4px 4px 15px #808080;
    background-color: #FFFFFF;
    margin: 15% 0;
    padding: 3% 4%;
}
     
#SezioniIFSCUOLA { 
    width: 90%;
    height: auto;
    line-height: 130%;
    font-size: 1.5em;
    letter-spacing: 0.7vw;
    text-align: center;
    color: white;
    font-weight: bold;
    text-shadow: 3px 3px 10px #000000, 0 0 20px #808080, 0 0 20px #808080;
    padding: 5%;
    margin: 20% 0;
    border-radius: 25px;
    background-color: #e8eef2; 
    background-image: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

#SezioniIFSCUOLA a { 
    line-height: 180%;
    font-family: 'Titillium Web', 'Roboto Flex', sans-serif;
    font-size: 1em;
    font-weight: normal;
    letter-spacing: normal;
    color: #808080;
    text-shadow: 0px 0px;
    text-align: left;
}   

/*---------- Banner footer ----------*/               

#Footer { 
    width: 100%;
    height: 100%;
    border-top: 1px dotted #000000;
}               
               
#Footer img { 
    width: 98%;
    height: 86%;
    display: block;
    margin: auto;
    padding: 7% 1%;
}               

/* --------------------------- div Informazioni ------------------------- */

.Informazioni { 
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    box-sizing: border-box;
}

.Infosx, .Infocen, .Infodx { 
    padding: 7% 1% 2% 1%;
    border-top: 2px solid #FFFFFF;
    border-left: 1px dotted #FFFFFF;
    background: #000080;
    line-height: 2.5em;
    margin: 0;
    font-family: 'Titillium Web', 'Roboto Flex', sans-serif;
    font-size: 0.7em;
    font-style: normal;
    text-align: left;
    color: #FF66CC;
    box-sizing: border-box;
}

@media screen and (min-width: 801px) {
    body { 
        font-size: 1.5vw;
    }
   
    #LogoIF a { 
        font-size: 1.3vw;
    }

    h1 { 
        font-size: 3vw;
    }
 
    h2 { 
        margin: 8% 0 2% 0;
        line-height: 120%;
        font-size: 2.5em;
    }

    h3 { 
        line-height: 140%;
        margin-bottom: 7%;
        font-size: 1.1em; 
    }

    h4 { 
        font-size: 1em;
    }
                       
    .Infosx { 
        width: 36%;
    }
  
    .Infocen { 
        width: 42%;
    }

    .Infodx { 
        width: 21%;
    }
    
    .Infosx,  
    .Infocen,
    .Infodx { 
        display: inline-block;
        font-size: 0.7em;
    }            
}

@media screen and (max-width: 800px) and (min-width: 581px) {
    body { 
        font-size: 2vw;
    }
          
    h1 { 
        font-size: 3vw;
    }

    h2 { 
        margin: 8% 0 2% 0;
        line-height: 120%;
        font-size: 2.5em;
    }

    h3 { 
        line-height: 120%;
        margin-bottom: 7%;
        font-size: 1.1em; 
    }

    h4 { 
        font-size: 1em;
    }
 
    .Infosx { 
        width: 43%;
    }
  
    .Infocen { 
        width: 42%;
    }

    .Infodx { 
        width: 14%;
    }
    
    .Infosx,  
    .Infocen,
    .Infodx { 
        display: block;
        font-size: 0.7em;
    }       
}

@media screen and (max-width: 580px) {
       
    body { 
        font-size: 2.5vw;
    }
 
    #LogoIF a { 
        font-size: 3vw;
    }
                       
    #Colonnadx { 
        display: none;                        
    }

    h1 { 
        font-size: 5vw;
    }

    h2 { 
        margin: 12% 0 2% 0;
        line-height: 120%;
        font-size: 2.5em;
    }
  
    h3 { 
        line-height: 180%;
        margin-bottom: 15%;
        font-size: 1.8em; 
    }
    
    h4 { 
        font-size: 1.8em;
    }

    .Infosx { 
        width: 98%;
        font-size: 1.2em;
        display: block; /* Assicura che Infosx resti visibile */
    }  
    
    /* Nasconde definitivamente Infocen e Infodx su smartphone */
    .Infocen,
    .Infodx { 
        display: none !important;
    }       
}
