@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html{ 
      font-family: Merryweather, Poppins, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
      min-height: 100%;
}
body{
background-image: linear-gradient(to bottom, #eff508, #d5f53b, #bdf457, #a8f16e, #97ed83, #8aee93, #7feea3, #77edb1, #6df1c2, #65f5d2, #60f8e2, #5ffbf1);
   min-height: 100%;
}
.menu{
    display: absolute;
  top:0vw;
    width: 100%;
background-image: linear-gradient(to left, #f08a06, #f19203, #f19a00, #f1a100, #f1a901, #e3b71e, #d6c436, #c9cf4e, #b2dd7c, #a6e8a8, #abeecd, #c1f2e7);
    opacity: 0.8;
    position: fixed;
    box-shadow: 1px 1px 20px 8px rgb(198, 241, 241) inset;
    border-bottom: 2px solid white;
    border-top: 2px solid white;
    border-radius: 0 0 .5em .5em;
    z-index: 50;
    
}
.menu ul{
    display: flex;
    align-items: center;
    height: 60%;
    width: 50%;
    gap: 65vw;
}
.home{
    background-color: #e89932;
    text-align: center;
    color: #02083e;
    font-weight: 500;
    font-size: 1.6vw;
    padding:0.6vw;
    border-radius: 0.8em;
    border-bottom: 2px solid white;
    border-top: 2px solid white;
}
.home:hover{
    border-bottom: none;
    border-top: none;
    border-right: 2px solid white;
    border-left: 2px solid white;
}
.menu li{
list-style: none;
text-decoration: none;
width: 50%;
margin-left: 5vw;
}
.menu a{
    text-decoration: none;
}
.cat{
width: 10vw;
height: 10vw;
background: url(/images/logostone.png) no-repeat right;
background-size: 80%;
}
/*nav*/
nav{
    display: flex;
    flex-direction: column;
}
.title{
    color:white;
    margin-top: 20vw;
   text-align: center;
   font-size: 3vw;
    text-shadow: 3px 2px 2px rgb(108, 165, 226);
}

/*idea*/
.idea{
    margin-top: 10vw;
    margin-left: 2vw;
    width: 98%;
    height: 30vw;
    background: url(/images/laboratori/cucina.jpg)no-repeat left center ;
    background-size: 40vw 100%;
    padding: 0 3vw 0 41vw;
    border-radius: 0em 0 0 5em;
}
.idea h1{
    padding-top: 9vw;
    color:rgb(20, 2, 62);
    font-size: 1.2vw;
    text-align: justify;
}
.blog{
    margin-top: 5vw;
    margin-left: 2vw;
}

.help{
    width: 100%;
 justify-items: center;
}
.write{
    margin-top: 10vw;
}

.scrivi{
    color:rgb(193, 20, 5);
    font-size: 2vw;
    text-decoration: none;
    margin-left: 2vw;
}
.dev{
    font-family:'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    font-size:2vw;
    width: 100%;
    height: 10vw;
    text-align: center;
    background:url(/images/deviltailnoback.png)top center no-repeat ;
    background-size: 18%;
    color: white;
   text-shadow: 10px 8px 8px black;
   margin-top: 10vw;
   margin-bottom: 5vw;
}
.button{
text-decoration: none; 
font-size: 2vw; 
display: flex;
flex-direction: column;
align-items: center;
margin-top: 2vw;
margin-bottom: 10vw;
border-top: 2px solid white;
border-bottom: 2px solid white;
padding: 1vw 0 1vw 0;
width: 20%;
background: linear-gradient(to left top, #325278, #2a4568, #223958, #1a2d48, #122239, #0a1e31, #051a2a, #001522, #00161e, #00161a, #001516, #021412) no-repeat;
color: azure;
border-radius: 1em;
}
.button:hover{
   border-top: none;
border-bottom: none; 
border-left: 2px solid white;
border-right: 2px solid white;
transition: 500ms ease;
}
.policy{
justify-content: center;
width: 100%;
display: flex;
gap:2vw;
margin-bottom: 10vw;
}

/* ===== ✅ OVERLAY STYLING ===== */
#blog {
    display: flex;
    width: 100%;
    text-align: center;
    position: relative;
    
}

/* Checkbox hidden */
#sidebar {
    display: none;
}

/* ✅ OVERLAY - FIXED POSITION (Modal Style) */
#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 999;
}

/* ✅ Mostra overlay quando checkbox è checked */
#sidebar:checked ~ #overlay {
    opacity: 1;
    visibility: visible;
}

/* ✅ Abilita/disabilita click fuori */
#sidebar:not(:checked) ~ #overlay {
    pointer-events: none;
}

#sidebar:checked ~ #overlay {
    pointer-events: auto;
}

/* ✅ Contenuto ricetta */
.ricetta {
    position: relative;
    background: linear-gradient(to right bottom, #040518, #0b1738, #09245b, #033080, #003da7, #0156c4, #0170e2, #008bff, #00b2ff, #00cff6, #00e29f, #11ed07);
    color: white;
    padding: 40px 30px;
    border-radius: 16px;
    max-width: 800px;
    max-height: 85vh;
    overflow-y: auto;
    z-index: 1001;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    font-size: 1.8vw;
    text-align: justify;
    
}

/* Scrollbar styling */
.ricetta::-webkit-scrollbar {
    width: 10px;
}

.ricetta::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.ricetta::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
}

.ricetta::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* ✅ Label per chiudere overlay (click fuori) */
#overlay > label {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    cursor: pointer;
    z-index: 0;
}

/* Open button styling */
.open {
    display: flex;
    width: 100%;
    cursor: pointer;
    margin-top: 6vw;
}

.open h1 {
    width: 100%;
    font-size: 3vw;
    text-shadow: 3px 2px 2px rgb(108, 165, 226);
}

/* Hide open button when overlay is shown */
#sidebar:checked ~ .open {
    display: none;
}

/* Intro section */
.intro {
    margin-bottom: 30px;
    text-align: center;
}

.intro1 {
    font-size: 1.8vw;
    text-align: center;
    margin-bottom: 2vw;
}

.description {
    margin-top: 5vw;
    font-size: 1.8vw;
    text-align: justify;
}

/* Course titles */
.svolgimento {
    margin-top: 10vw;
}
.svolgimento h1 {
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 2vw;
}

.svolgimento h2 {
    margin-top: 4vw;
    text-align: center;
    width: 100%;
}

.svolgimento p {
    font-size: 1.8vw;
    margin-top: 2vw;
    line-height: 1.6;
    
}

/* Images */
#primo, #secondo, #contorno {
    width: 100%;
    margin: 20px 0;
    border-radius: 8px;
  display: flex;
    align-items: center;
    justify-content: center; 
    
}

#primo img, #secondo img, #contorno img {
    width: 100%;
    max-width: 300px;
    border-radius: 8px;
    display: block;
    margin: 20px auto;
}

/* Download section */
.download {
    margin-top: 5vw;
    width: 100%;
    text-align: center;
}

.download a {
    text-decoration: none;
    font-size: 2vw;
    cursor: pointer;
    color: #00e29f;
    transition: color 0.3s ease;
}

.download a:hover {
    color: #00cff6;
}

/* Separators */
hr {
    border: none;
    border-top: 2px solid rgba(255, 255, 255, 0.2);
    margin: 30px 0;
}

#main_title{
    margin-left: 10vw;
    margin-right: 0;
    text-align: right;
}
#recipe_title_display_label {
  margin-right: 15vw;
  margin-left: 2vw;
  text-align: left;
  
}
#recipe_title_display_intro {
    text-align: center;
    font-size: 4vw;
    color: #d1ee87;
    margin-top: 2vw;
    margin-bottom: 3vw;
}
#titolop_svolgimento, #titolodefSecondo_svolgimento, #titolodefConto_svolgimento {
    text-align: center;
    font-size: 3vw;
    color: #d1ee87;
    margin-top: 4vw;
    margin-bottom: 1vw;
}

#titolop_svolgimento,
#titolodefSecondo_svolgimento,
#titolodefConto_svolgimento,
#ingredientiPrimo,
#ingredientiSecondo,
#ingredientiContorno,
#descrizionePrimo,
#descrizioneSecondo,
#descrizioneContorno {
    white-space: pre-wrap;
    word-wrap: break-word;
}

.archivio {
    cursor: pointer;
   
    width: 100%;
    margin-top: 8vw;
    text-align: center;
   
}
.archivio a {
    font-size: 2vw;
    color: #320cba;
    text-shadow: 2px 2px 4px rgba(50, 12, 186, 0.5);
    text-decoration: none;
}
/* ===== RESPONSIVE DESIGN ===== */

@media(max-width:640px) {
    .idea {
        padding: 0vw 3vw 15vw 3vw;
        background: url(/images/laboratori/cucina.jpg)no-repeat bottom center;
        background-size: 60% 40%;
        margin-left: 0;
        border-radius: 1em;
        width: 100%;
        height: 100vw;
        padding-top: 15vw;
    }

    .dev {
        background: url(/images/deviltailnoback.png)top right no-repeat;
        background-size: 30%;
        width: 60vw;
        text-align: right;
        padding-right: 5vw;
        margin-left: 5vw;
    }

    .idea h1 {
        font-size: 2.5vw;
        color: rgb(12, 8, 236);
    }

    .open {
        margin-top: 4vw;
    }

    .ricetta {
        max-width: 95vw;
        max-height: 90vh;
        padding: 20px 15px;
        font-size: 2.5vw;
    }

    .ricetta h1 {
        font-size: 2.5vw;
    }

    .svolgimento p {
        font-size: 2.5vw;
    }

    .download a {
        font-size: 2vw;
    }

    .help {
        width: 100%;
        justify-items: center;
    }
}