/*
	Theme Name: 		Taralliprimi
	Text Domain: 		taralliprimi
	Version: 			0.1
	Description: 		Template di Taralli i Primì.
	Tags: 				taralli, puglia
	Author: 			Valerio Del Re
	Author URI: 		https://www.nanz.it/
	Theme URI: 			https://www.nanz.it/
	Version: 			1.0	
	License: 			GNU General Public License version 3.0
	License URI: 		http://www.gnu.org/licenses/gpl-3.0.html
*/

/* --- Amatic SC Regular (400) --- */
@font-face {
    font-family: "Amatic SC";
    src: url('fonts/AmaticSC-Regular.woff2') format('woff2'),
        url('fonts/AmaticSC-Regular.woff') format('woff');
    font-weight: 400; 
    font-style: normal;
    font-display: swap; 
}

/* --- Amatic SC Bold (700) --- */
@font-face {
    font-family: "Amatic SC";
    src: url('fonts/AmaticSC-Bold.woff2') format('woff2'), 
        url('fonts/AmaticSC-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* --- Montserrat Regular (400) --- */
@font-face {
    font-family: "Montserrat";
    src: url('fonts/Montserrat-Regular.woff2') format('woff2'),
       url('fonts/Montserrat-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap; 
}

/* --- Montserrat Italic (400) --- */
@font-face {
    font-family: "Montserrat";
    src: url('fonts/Montserrat-Italic-Regular.woff2') format('woff2'),
       url('fonts/Montserrat-Italic-Regular.woff') format('woff');
    font-weight: 400;
    font-style: italic;
    font-display: swap; 
}

/* --- Montserrat Semibold (600) --- */
@font-face {
    font-family: "Montserrat";
    src: url('fonts/Montserrat-SemiBold.woff2') format('woff2'),
       url('fonts/Montserrat-SemiBold.woff') format('woff');
    font-weight: 600;
    font-style: normal;
    font-display: swap; 
}

*,*:before,*:after {
 box-sizing: border-box;
 -moz-box-sizing: border-box;
 -webkit-box-sizing: border-box
}
html {
 font-size: 62.5%; /* 62.5% di 16px = 10px → 1rem = 10px */
 scroll-behavior: smooth;
 scroll-padding-top: 8rem
}
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important
    }
}
:root {
    --giallo: #CE9A43;
    --rosso: #BF1120;
    --bordeaux: #420807;
    --beige: #f9f1e0;
    --marrone: #613F10;
    --bianco: #FFFFFF;
    --grigio: #E8E7E3;
    --nero: #000000;
}
::selection {
    background-color: var(--marrone);
    color: var(--bianco)
}
img { vertical-align: bottom }
h1, h2, h3, .amatic { font-family: "Amatic SC", sans-serif; text-transform:uppercase; font-weight: 700; margin-bottom: 0 }
h1 { font-size: 8rem; line-height: 8rem }
h2 { font-size: 7.5rem; line-height: 7.5rem; margin: 22px 0 0 0  }
h3 { font-size: 7rem; line-height: 7rem; margin: 30px 0 0 0 }
p { margin: 25px 0 }
strong { font-weight: 600 }
.flex { display: flex; flex-direction: column }
.row-mob { flex-direction: row; justify-content: space-between }
.centrato { text-align: center }
.responsive { width: 100%; height: auto !important }
.taralli { padding: 80px 20px; max-width: 1120px; margin: 0 auto; }
.relativo { position: relative }
.bg-marrone { background-color: var(--marrone); color: var(--bianco) }
.color-giallo { color: var(--giallo) }
.arrotonda { border-radius: 20px }
.distanziato { margin: 70px 0; }
article { margin-bottom: 100px }
#page-contenuto article:last-of-type { margin-bottom: 50px }
body {
    color: var(--marrone);
    background-color: var(--beige);
    margin: 0;
    padding: 0;
    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
    font-size: 2.2rem;
    line-height: 1.4;
    font-weight: 400;
    font-style: normal;
}
a {
    color: var(--marrone);
}
a:hover {
    color: var(--rosso);
}
a.button,
form input[type=submit] {
    background-color: var(--giallo);
    color: var(--marrone);
    border-radius: 60px;
    border: none;
    padding: 12px 30px !important;
    font-size: 2.2rem;
    font-weight: 600 !important;
    display: inline-block !important;
    text-decoration: none !important;
    min-width: 150px; 
    text-align: center;
    cursor: pointer;
    transition: all .5s cubic-bezier(.215, .61, .355, 1);
}
a.button:hover,
form input[type=submit]:hover {
    background-color: #f2b44f;
    color: var(--marrone);
}

/* HEADER */

#header {
    transition: background-color 0.5s ease;
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    z-index: 9999999999;
}
#header.trasparente {
    background-color: rgba(255, 255, 255, 0);
    box-shadow: none;
}
#header.solido {
    background-color: rgba(255, 255, 255, 1);
    box-shadow: 0 5px 8px rgba(97, 63, 16, 0.1);
}
#logo, #icone-mobile {
    z-index: 999999;    
}
#logo img {
    max-width: 130px; 
    height: auto !important; 
}
#header .taralli {
    padding-top: 10px;
    padding-bottom: 10px;
}
#header div.flex {
    align-items: center
}
#icone-mobile {
    gap: 20px;
    font-size: 1.4rem;  
    font-weight: 600;
}
#icone-mobile .flex {
    gap: 10px;
}
nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    padding-top: 150px;
    overflow: hidden;
    background-color: var(--bianco);
    transition: all .5s cubic-bezier(.215, .61, .355, 1);
    opacity: 0;
    z-index: 999;
}
nav ul {
    list-style-type: none; 
    margin: 0;
    padding: 0 20px;
}
nav ul li {
    font-size: 6rem;
    padding: 0;
}
nav.menu-aperto {
    left: 0;
    opacity: 1;
}
nav ul li a {
    text-decoration: none;
    color: var(--marrone);
    font-weight: bold;
}
nav ul li a:hover {
    color: var(--rosso);
}
.blocca {
    overflow: hidden !important
}

/* HAMBURGER */

.menu-btn {
    width: 24px;
    height: 24px;
    position: relative;
    margin: 0px auto;
    transform: rotate(0deg);
    transition: 0.5s ease-in-out;
    cursor: pointer;
}
.menu-btn span:nth-of-type(2), 
.menu-btn span:nth-of-type(3) {
    top: 10px;
}
.menu-btn span:nth-of-type(4) {
    top: 20px;
}
.menu-btn span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: var(--marrone);
    border-radius: 0px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: 0.25s ease-in-out;
}
.menu-btn.open span:nth-of-type(1) {
    top: 18px;
    width: 0%;
    left: 50%;
}
.menu-btn.open span:nth-of-type(2) {
    transform: rotate(45deg);
}
.menu-btn.open span:nth-of-type(3) {
    transform: rotate(-45deg);
}
.menu-btn.open span:nth-of-type(4) {
    top: 18px;
    width: 0%;
    left: 50%;
}
.blocca {
    overflow: hidden !important
}

/* FOOTER */

#prefooter {
    background-image: url('img/produzione.jpg');
    height: 400px !important;
    background-attachment: fixed;
    background-position: bottom center;
    background-repeat: no-repeat;
    background-size: cover;
    box-shadow: 2px 30px 40px 0px rgba(97,63,16,1) inset;
    -webkit-box-shadow: 2px 30px 40px 0px rgba(97,63,16,1) inset;
    -moz-box-shadow: 2px 30px 40px 0px rgba(97,63,16,1) inset;
    border-bottom: solid 4px var(--giallo);
}
#prefooter .taralli {
    height: 100%;
    font-size: 5.0rem;
    line-height: 5.0rem;
    color: var(--bianco);
    font-weight: 700;
    justify-content: center !important;
}
#prefooter .taralli p {
    text-shadow: 0px 0px 10px #613F10;
}
#prefooter .taralli p a {
    color: var(--bianco);
    text-decoration: none;
}
#prefooter .taralli p a:hover {
    color: var(--giallo);
    text-decoration: none;
}
#footer {
    text-align: center;
    background-color: var(--marrone);
    color: var(--bianco);
}
#footer strong, .nome-tarallo {
    text-transform: uppercase;
    color: var(--giallo);  
    font-size: 4rem;  
} 
#footer a {
    color: var(--bianco);
}
#footer a:hover {
    color: var(--giallo);
}

/* FORM */

form {
    display: block;
}
form label {
    font-size: 1.8rem;
    margin-bottom: 20px;
    display: block;
    text-align: left;
}
form input[type=text], 
form input[type=tel], 
form input[type=email],
form select, 
form textarea {
    display: block;
    width: 100%;
    padding: 15px;
    background-color: var(--bianco);
    margin-bottom: 10px;
    border: none;
    border-radius: 5px;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
    font-size: 1.8rem;
    line-height: 1;
}
form textarea {
    resize: none;
    height: 120px;
}
form input[type=checkbox] {
    width: 20px;
    height: 20px;
    background-color: var(--bianco);
}
.wpcf7-acceptance .wpcf7-list-item {
    margin-left: 0 !important
}
.screen-reader-text {
    display: none;
}

/* MAIN */

p#tarallificio {
    color: var(--rosso);
    text-transform: uppercase;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 1px;
}
.home h2 {
    margin-top: 25px;
    margin-bottom: 0;
}
.page .hero, 
.single .hero {
    height: 400px;
    background-image: url('img/campo-grano.jpg');
    background-position: top center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
} 
.home .hero {
    height: 100vh !important;
} 
.page .hero .bg-marrone, 
.single .hero .bg-marrone {
    z-index: 1;
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0.7;
}
.page .hero .taralli,
.single .hero .taralli {
    z-index: 2;
    position: relative;
    height: 100%;
    justify-content: end !important;
    align-items: center;
    padding: 20px;
}
.home .hero .taralli {
    justify-content: center !important;
}
.page .hero .taralli h1,
.single .hero .taralli h1 {
    margin: 0
}
p#breadcrumbs {
    font-size: 1.8rem;
}
p#breadcrumbs a {
    font-weight: 600;
}
.single h2 {
    margin: 0;
}
article .specifica {
    font-size: 1.8rem;
    margin-top: 5px;
}
article .ingredienti {
    text-align: left;
    font-size: 1.8rem;
    background-repeat: no-repeat;
    background-position: top right;
}
article .ingredienti h3 {
    text-transform: uppercase;
    color: var(--giallo);
    font-size: 4rem;
    padding-bottom: 0;
}
article .ingredienti p {
    margin-top: 0;
}
img.ruota {
    transform-origin: 50% 50%;
    transition: transform 0.1s linear; 
}
#tradizione {
    text-align: center;
}
#tradizione h2 {
    color: var(--giallo);
}
#tradizione div img {
    max-width: 500px;
    margin-top: 40px;
}
#tipologie {
    gap: 40px;
    margin-top: 40px;
    text-align: center;
}
#tipologie div a {
    color: var(--marrone);
    text-decoration: none;
}
#tipologie div a:hover h3 {
    color: var(--giallo);
    text-decoration: none;
}
#tipologie div a p {
    margin-top: 0;
}
#tipologie div a img {
    transition: all .5s cubic-bezier(.215, .61, .355, 1);
    border-radius: 20px;
}
#tipologie div a img:hover {
    border-radius: 50%;
}
#social img {
    margin: 0 3px;
    filter: brightness(0) invert(1);
}
#social img:hover {
    filter: initial
}
.doppia {
    gap: 20px
}  
.mappa {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding-top: 80%;
}
.responsive-iframe {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
}
.rigo {
    display: block;
}

/* FOTO PRODOTTI */
article .barlettano-pepe-nero {
    background-image: url('img/barlettano-con-pepe-nero-sfusi.jpg');
}
article .barlettano-semi-finocchio {
    background-image: url('img/barlettano-con-semi-finocchio-sfusi.jpg');
}
article .pugliesino-classico {
    background-image: url('img/pugliesino-classico-sfusi.jpg');
}
article .pugliesino-pepe-nero {
    background-image: url('img/pugliesino-pepe-nero-sfusi.jpg');
}
article .pugliesino-con-mandorle {
    background-image: url('img/pugliesino-con-mandorle-sfusi.jpg');
}
article .pugliesino-pomodoro {
    background-image: url('img/pugliesino-pomodoro-sfusi.jpg');
}
article .pugliesino-rustico {
    background-image: url('img/pugliesino-rustico-sfusi.jpg');
}
article .pugliesino-gustosano {
    background-image: url('img/pugliesino-gustosano-sfusi.jpg');
}
article .pugliesino-multicereali {
    background-image: url('img/pugliesino-multicereali-sfusi.jpg');
}
article .pugliesino-seme-finocchio {
    background-image: url('img/pugliesino-seme-finocchio-sfusi.jpg');
}
article .pugliesino-cipolla-olive {
    background-image: url('img/pugliesino-cipolla-olive-sfusi.jpg');
}
article .pugliesino-grano-arso {
    background-image: url('img/pugliesino-grano-arso-sfusi.jpg');
}
article .pugliesino-seme {
    background-image: url('img/pugliesino-seme-sfusi.jpg');
}
article .pugliesino-integrale {
    background-image: url('img/pugliesino-integrale-sfusi.jpg');
}
article .pugliesino-patate-rosmarino {
    background-image: url('img/pugliesino-patate-rosmarino-sfusi.jpg');
}
article .pugliesino-peperoncino {
    background-image: url('img/pugliesino-peperoncino-sfusi.jpg');
}
article .tarallotto-classico {
    background-image: url('img/tarallotto-classico-sfusi.jpg');
}
article .tarallotto-gustosano {
    background-image: url('img/tarallotto-gustosano-sfusi.jpg');
}
article .tarallotto-cipolla-olive {
    background-image: url('img/tarallotto-cipolla-olive-sfusi.jpg');
}
article .tarallotto-con-mandorle {
    background-image: url('img/tarallotto-con-mandorle-sfusi.jpg');
}
article .tarallotto-multicereali {
    background-image: url('img/tarallotto-multicereali-sfusi.jpg');
}
article .tarallotto-patate-rosmarino {
    background-image: url('img/tarallotto-patate-rosmarino-sfusi.jpg');
}
article .tarallotto-pomodoro {
    background-image: url('img/tarallotto-pomodoro-sfusi.jpg');
}
article .tarallotto-seme-finocchio {
    background-image: url('img/tarallotto-seme-finocchio-sfusi.jpg');
}
article .tarallotto-pepe-nero {
    background-image: url('img/tarallotto-pepe-nero-sfusi.jpg');
}
article .tarallotto-peperoncino {
    background-image: url('img/tarallotto-peperoncino-sfusi.jpg');
}
article .tarallotto-grano-arso {
    background-image: url('img/tarallotto-grano-arso-sfusi.jpg');
}
.btn-desk {
    display: none !important;        
}



/* Tablet */

@media screen and (min-width: 480px) {  

}

@media screen and (min-width: 600px) {
    article .ingredienti {
        background-position: left 150px top;
    }
}

@media screen and (min-width: 768px) {
    #prefooter .taralli {
        font-size: 7.0rem;
        line-height: 7.0rem;
    }
    .rigo {
        display: inline-block;
    }
    .row-768 {
        flex-direction: row;
        justify-content: space-between;        
    }
    #gallery {
        flex-wrap: wrap;
        gap: 20px;
    }
    #gallery div {
        flex-basis: calc(50% - 10px);
    }
}

/* PC */

@media screen and (min-width: 1024px) {
    .row-1024 {
        flex-direction: row;
        justify-content: space-between;
    }
    nav {        
        position: initial;
        top: initial; left: initial;
        width: initial; height: initial;
        padding-top: initial;
        opacity: initial;
        background-color: initial;
    }
    nav ul {
        list-style-type: none; 
        margin: 0;
        padding: 0;
    }
    nav ul li {
        font-size: 4rem;
        display: inline-block;
        padding: 0px 15px;
    }
    nav ul li:last-of-type {
        padding-right: 0;
    }
    nav ul li a {
        display: inline-block;
        padding: 10px 0;
    }
    nav ul li a:hover {
        background-image: url('img/sottolinea.jpg');
        background-position: bottom center;
        background-repeat: no-repeat;
    }
    #icone-mobile {
        display: none;
    }
    .doppia {
        align-items: center;
        gap: 50px
    }    
    .doppia div {
        flex-basis: 50%;
    }    
    #gallery {
        gap: 50px;
    }
    #gallery div {
        flex-basis: calc(50% - 25px);
    }
    .row-reverse {
        flex-direction: row-reverse;
    }
    .btn-mob {
        display: none !important;
    }
    .btn-desk {
        display: block !important;        
    }
    #tradizione {
        align-items: center;
        text-align: left;
    }
    #tradizione div img {
        max-width: none;
        margin-top: 0
    }
    #footer {
        text-align: left;
        font-size: 1.8rem;
    }
    #footer .flex div {
        flex-basis: 25%;
    }
}

@media screen and (min-width: 1100px) {
    nav ul li {
        display: inline-block;
        padding: 0px 20px;
    }
}

@media screen and (min-width: 1200px) {

}