
/* ==========================================
   IMPOSTAZIONI GENERALI
   ========================================== */

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #ebf0f9;
    background-image: url("sfondo.jpg");
    background-repeat: repeat;
    background-size: 650px auto;
    background-attachment: fixed;

    margin: 0;
    padding: 0;
    width: 100%;
}

h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 26px;
    font-weight: normal;
}

a:link {
	text-decoration: none;
	color: #0256BC;
	font-family: verdana;
	}

a:visited {
	text-decoration: none;
	color: #0256BC;
	font-family: verdana;
	}

a:hover{
	text-decoration: none;
	color: #318BFB;
	font-family: verdana;
}


.s_footer {
    text-align: center;
}


.s_button {
	cursor: pointer;
	font-family: 'Montserrat', sans-serif;
	font-size:16px;
	color: #000000;
	border-style:solid; 
	border-width:3px; 
	border-color: #012b51; 
	border-radius: 0px;
	background-color: #f0f6fc;
	display:inline-block;
	padding:12px;
	padding-left:20px;
	padding-right:20px;	
}
.s_button:hover {
	background-color: #d7e6fe;
}



.s_pagina {  /* BOX PRINCIPALE DELLA PAGINA */
    width: calc(100% - 40px);
    max-width: 1200px;
    margin: 35px auto;
    padding: 30px 35px;

    background: rgba(255, 255, 255, 0.90);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);

    border: 0px solid rgba(255, 255, 255, 0.75);
    border-radius: 20px;

    box-shadow: 0 8px 32px rgba(29, 60, 109, 0.12);
    box-sizing: border-box;
}

@media (max-width: 600px) {  /* SMARTPHONE */
    .s_pagina {
        width: 100%;
        margin: 20px 0;
        padding: 22px 18px;
        border-radius: 20px;
    }
}




/* MENU */

.s_menugrid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;

    width: 100%;
    min-height: 100px;
    padding-top: 20px;
	padding-bottom: 20px;
	padding-left: 3.5%;
	padding-right: 3.5%;

    background: #012b51;
    box-sizing: border-box;
}

.s_menutitle {  /* LOGO */
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(32px, 5vw, 65px);
    font-weight: 300;
    font-style: normal;
    color: #ffffff;
    letter-spacing: 0.5px;
    white-space: nowrap;
	display: inline-flex;
    align-items: center;
    gap: 12px;
}

.s_menulinks {  /* CONTENITORE LINK */
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(8px, 2vw, 28px);
    flex-wrap: wrap;
}

.s_menubox a {  /* LINK MENU */
    display: inline-block;
    font-family: Arial, sans-serif;
    font-size: 14px;
    font-weight: normal;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-decoration: none;
    color: #ffffff;

    padding: 13px 23px;
    border: 2px solid transparent;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.s_menubox a:hover, /* HOVER: PULSANTI NON SELEZIONATI */
.s_menubox a:focus-visible {
    border-color: #a9c8dc;
    color: #ffffff;
}

.s_menubox a.active {  /* PAGINA SELEZIONATA */
    background: #ffffff;
    border-color: #000000;
    color: #000000;
}

.s_menulanguage {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 2px 0 5px;
    font-size: 13px;
    width: 100%;
    box-sizing: border-box;
}


@media (min-width: 769px) {  /* Desktop */
    .s_menulanguage {
        flex-basis: 100%;
        justify-content: flex-end;
    }
}

@media (max-width: 768px) {
    .s_menulanguage {
        padding-top: 12px;
        font-size: 11px;
    }
}

.s_menulanguage a {
    color: #ffffff;
    text-decoration: none;
    opacity: 0.7;
}

.s_menulanguage a:hover {
    opacity: 1;
    text-decoration: underline;
}

.s_menulanguage a.active {
    opacity: 1;
    font-weight: bold;
}

.s_menulanguage span {
    color: #ffffff;
    opacity: 0.4;
}

@media (max-width: 850px) {   /* Tablet e finestre piccole */

    .s_menugrid {
        flex-direction: column;
        justify-content: center;
        gap: 15px;
        padding: 22px 12px;
        min-height: auto;
    }

    .s_menutitle {
        font-size: clamp(30px, 6vw, 45px);
        white-space: normal;
        text-align: center;
    }

    .s_menulinks {
        justify-content: center;
        gap: 8px;
    }

}

@media (max-width: 480px) {  /* Smartphone */

    .s_menugrid {
        padding: 20px 8px;
        gap: 12px;
    }

    .s_menutitle {
        font-size: clamp(25px, 7vw, 34px);
    }

    .s_menulinks {
        gap: 3px;
    }

    .s_menubox a {
        font-size: 11px;
        letter-spacing: 1.5px;
        padding: 10px 12px;
    }

}




/* PAGINA INDICE PIROGHE */

.piroga-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 15px;
	width: 100%;
}

.piroga-grid-item img {
	display: block;
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	border-radius: 8px;
}

@media (max-width: 768px) {
	.piroga-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 10px;
	}
}




/* PAGINA SINGOLA PIROGA */
 
.piroga-container {
	width: 100%;
	display: flex;
	align-items: flex-start;
	gap: 12px;
}

.piroga-area-principale {
	flex: 1;
	min-width: 0;
}

.piroga-foto-principale {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 3 / 2;
	object-fit: contain;
	border-radius: 10px;
}

.piroga-miniature {  /* MINIATURE DESKTOP */
	width: 15%;
	flex-shrink: 0;
	table-layout: fixed;
	border-collapse: collapse;
}

.piroga-miniature td {
	width: 100%;
	display: block;
	padding: 3px;
}

.piroga-icon {
	display: block;
	width: 100%;
	height: auto;
	border: 1px solid #CBCBCB;
	border-radius: 5px;
	cursor: pointer;
}

@media (max-width: 768px) {  /* MOBILE */

	.piroga-container {
		flex-direction: column;
		gap: 8px;
	}

	.piroga-area-principale {
		width: 100%;
	}

	.piroga-miniature {
		width: 100%;
		display: table;
		table-layout: fixed;
	}

	.piroga-miniature tr {
		display: flex;
		width: 100%;
	}

	.piroga-miniature td {
		display: table-cell;
		width: 20%;
		padding: 2px;
	}
}