/*
Theme Name: gozzi-theme
Author: Il Parere
Version: 1.0
*/
html, body {
  overflow-x: hidden;
}
body {
  margin: 0;
  font-family: sans-serif;
  background: #fff;
  color: #000;
}
h1,h2,h3,h4,h5 {
  font-family: "Cinzel", serif;
  font-optical-sizing: auto;
  font-weight: 600;
  font-style: normal;
  color: #8f351a;
}
h2 {
  font-size:64px;
}
h3 {
  font-size:32px;
}
p {
   font-family: "Open Sans", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  font-size:16px;
  line-height:1.6;
}
a {
  text-decoration:none;
}
.page-wrapper {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-wrapper h1 {
  font-size: 2.5rem;
  margin-bottom: 40px;
  text-align: center;
}

/* INIZIO HEADER */

.site-logo {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 1000;
  opacity: 0;
  animation: fadeIn 1s ease forwards;
  animation-delay: 1s;
}

.site-logo img {
  height: 120px;
  width: auto;
}
.menu-toggle {
  position: fixed;
  top: 30px;
  right: 20px;
  width: 40px;
  height: 40px;
  display: grid;
  grid-template-columns: repeat(3, 6px);
  grid-template-rows: repeat(3, 6px);
  gap: 5px;
  z-index: 10000;
  cursor: pointer;
  padding: 7px;
  box-sizing: content-box;
  opacity: 0;
  animation: fadeIn 0.5s ease forwards;
  animation-delay: 1s;
  background: transparent;
  border: 2px solid transparent;
  border-radius: 6px;
  transition: border 0.3s ease;
}

/* Puntini */
.menu-toggle .dot {
  background-color: #ecdfca;
  border-color: #432516;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  border: 1px solid; /* serve per rendere visibile il bordo in stato attivo */
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

/* Stile attivo */


.menu-toggle.active .dot {
  background-color: #432516;
  border-color: #ecdfca;
}

.main-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  z-index: 9999;
  transform: translateX(100%);
  transition: transform 0.5s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.main-menu.active {
  transform: translateX(0);
}

.menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
}

.menu-list li {
  font-family: "Cinzel", serif;
  font-optical-sizing: auto;
  font-weight: 600;
  font-style: normal;
  color: #8f351a;
  margin: 20px 0;
  opacity: 0;
  transform: translateY(10px);
  animation: fadeIn 0.5s ease forwards;
}
.menu-list li a{
  font-family: "Cinzel", serif;
  font-optical-sizing: auto;
  font-weight: 600;
  font-style: normal;
  color: #8f351a;
  font-size:42px;
}
.xoo-wsc-basket {
    top:20px;
    right: 85px;

}
/* Delay progressivo */
.menu-list li:nth-child(1) { animation-delay: 0.3s; }
.menu-list li:nth-child(2) { animation-delay: 0.5s; }
.menu-list li:nth-child(3) { animation-delay: 0.7s; }
.menu-list li:nth-child(4) { animation-delay: 0.9s; }
/* Aggiungi più righe se hai più voci */

/* FINE HEADER */

/* HOMEPAGE */
/* HERO */
.home-hero {
  background: url('https://www.salumificiogozzi.it/wp-content/uploads/2025/05/hero_home_gozzi.jpg') center/cover no-repeat;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.home-hero-inner h1 {
  font-size: 3rem;
  color: #fff;
  margin-bottom: 20px;
}

.home-hero-inner .button {
  padding: 12px 24px;
  background: #8d361c;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
}

/* CHI SIAMO */
.home-about {
  padding: 80px 20px;
  background: #f9f9f9;
}

.home-about-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  max-width: 1200px;
  margin: auto;
  align-items: center;
}

.about-text {
  flex: 1 1 50%;
}

.about-image {
  flex: 1 1 50%;
}

.about-image img {
  width: 100%;
  border-radius: 8px;
}

/* PRODOTTI */
.home-featured {
  padding: 80px 20px;
  text-align: center;
}

.home-featured h2 {
  font-size: 64px;
  margin-bottom: 40px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 1200px;
  margin: auto;
}

.product-card {
  border: 1px solid #eee;
  padding: 20px;
  text-align: center;
}

.product-card img {
  max-width: 100%;
  height: auto;
  margin-bottom: 15px;
}

.product-card h3 {
  margin-bottom: 10px;
}

.product-card .price {
  font-weight: bold;
}

/* CTA */
.home-cta {
  background: #8d361c;
  color: #fff;
  padding: 80px 20px;
  text-align: center;
}
.home-cta h2 {
  color: #ecdfca;
  margin-bottom:10px;
  padding-bottom:0;
}
.home-cta p {
  color: #ecdfca;
  margin-bottom:10px;
}

.newsletter-form {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 500px;
  margin: 0 auto;
}

.newsletter-form input[type="email"] {
  padding: 12px;
  border: none;
  border-radius: 4px;
  flex: 1 1 250px;
}

.newsletter-form button {
  background: #ecdfca;
  color: #8d361c;
  border: none;
  padding: 12px 24px;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
}

.newsletter-form button:hover {
  background: #ecdfca;
}
/* HERO NEGOZIO */
.shop-hero {
  background: url('https://www.salumificiogozzi.it/wp-content/uploads/2025/05/negozio-online.jpg') center/cover no-repeat;
  height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
  box-sizing: border-box;
  position: relative;
}

.shop-hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 60vh;
  background: rgba(0, 0, 0, 0.3); /* overlay scuro per contrasto testo */
  z-index: 1;
}

.shop-hero-inner {
  position: relative;
  z-index: 2;
}

.shop-hero-inner h1 {
  font-size: 3rem;
  margin: 0;
  color: #fff;
}
/* GRIGLIA PRODOTTI */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  padding: 40px;
}

.product-card {
  border: 1px solid #eee;
  padding: 20px;
  text-align: center;
  transition: box-shadow 0.3s ease;
}

.product-card:hover {
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.product-card img {
  max-width: 100%;
  height: auto;
  margin-bottom: 15px;
}

.product-card h2 {
  font-size: 1.2rem;
  margin: 10px 0;
}

.product-card .price {
  font-weight: bold;
  margin-bottom: 10px;
}

.single-product-outer {
  max-width: 1200px;
  margin: 0 auto;
  padding: 150px 20px 0 20px;
  box-sizing: border-box;
}

.single-product {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center; /* CENTRA gli elementi orizzontalmente */
  align-items: flex-start;
  width: 100%;
  margin-bottom:0;
  padding-bottom:0;
}


.product-image {
  flex: 1 1 45%;
  text-align: center;
  margin-top:30px;
}

.product-image img {
  max-width: 100%;
  height: auto;
}

.product-summary {
  flex: 1 1 45%;
}

.product-summary h1 {
  font-size: 46px;
  margin-bottom: 10px;
}

.product-summary h2 {
  font-size: 24px;
  margin-bottom: 10px;
  display:none;
}

.product-summary .price {
  font-size: 1.5rem;
  margin: 20px 0;
  font-weight: bold;
}

.product-summary .description {
  margin-bottom: 20px;
}

.woocommerce div.product form.cart .single_add_to_cart_button {
  padding: 12px 24px;
  background-color: #8d361c !important;
  color: #fff !important;
  border: none;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.3s ease;
}
.woocommerce div.product form.cart .single_add_to_cart_button:hover {
  background-color: #ae7463 !important;
}
.woocommerce-product-attributes {
  margin-top: 30px;
  border-collapse: collapse;
  width: 100%;
}

.woocommerce-product-attributes th,
.woocommerce-product-attributes td {
  padding: 10px;
  border: 1px solid #ccc;
  text-align: left;
}

.woocommerce-product-attributes th {
  background-color: #f9f9f9;
  font-weight: bold;
}

.product-thumbs {
  margin-top: 20px;
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.product-thumbs img {
  width: 80px;
  height: auto;
  cursor: pointer;
  border: 1px solid #ddd;
  padding: 4px;
  transition: border 0.2s ease;
}

.product-thumbs img:hover {
  border-color: #000;
}
.quantity
 {

    margin-bottom:20px;
}
/* CARRELLO*/

.cart-wrapper {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.cart-wrapper h1 {
  font-size: 2.5rem;
  margin-bottom: 40px;
  text-align: center;
}

.woocommerce-cart-form table.shop_table {
  width: 100%;
  border-collapse: collapse;
}

.woocommerce-cart-form table th,
.woocommerce-cart-form table td {
  padding: 15px;
  border: 1px solid #ddd;
  text-align: center;
}

.woocommerce-cart-form .button {
  background: #8d361c;
  color: #fff;
  padding: 12px 24px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.woocommerce-cart-form .button:hover {
  background: #ae7463;
}

/*CHI SIAMO*/

.about-hero {
  background: url('https://www.salumificiogozzi.it/wp-content/uploads/2025/05/chi-siamo.jpg') center/cover no-repeat;
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.about-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 83vh;
  background: rgba(0, 0, 0, 0.3); /* Overlay nero semi-trasparente */
  z-index: 1;
}

.about-hero h1 {
  font-size: 3rem;
  color: white;
  padding: 20px 40px;
  border-radius: 8px;
}

.about-intro {
  padding: 60px 20px;
  background: #fdfdfd;
}

.about-intro .container {
  width: min(1000px, 92vw);
  margin: auto;
  font-size: 1.2rem;
  line-height: 1.8;
}

.about-timeline {
  padding: 80px 20px;
  background: #f4f4f4;
}

.about-timeline .container {
  max-width: 1000px;
  margin: auto;
}

.about-timeline h2 {
  text-align: center;
  margin-bottom: 40px;
}

.timeline {
  position: relative;
  max-width: 1000px;
  margin: auto;
  padding: 40px 0;
  list-style: none; /* ❗️rimuove i puntini del <ul> */
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 4px;
  height: 100%;
  background: #8d361c;
  transform: translateX(-50%);
  z-index: 1;
}

.timeline li {
  position: relative;
  width: 50%;
  padding: 20px 40px;
  box-sizing: border-box;
  list-style: none; /* ❗️rimuove eventuali bullet residui */
}

.timeline li.left {
  left: 0;
  text-align: right;
}

.timeline li.right {
  left: 50%;
  text-align: left;
}

.timeline-content {
  background: #fff;
  padding: 20px;
  border-radius: 6px;
  position: relative;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  z-index: 2;
}

/* cerchi perfettamente centrati */
.timeline li.left .timeline-content::before,
.timeline li.right .timeline-content::before {
  content: '';
  position: absolute;
  top: 20px;
  width: 40px;
  height: 40px;
  background: #8d361c;
  border-radius: 50%;
  border: 3px solid white;
  z-index: 3;
}

/* posizionamento cerchi */
.timeline li.left .timeline-content::before {
  right: -63px; /* centrato rispetto alla linea */
}

.timeline li.right .timeline-content::before {
  left: -63px;
}

.timeline .year {
  font-weight: bold;
  color: #8d361c;
  font-size: 2rem;
  margin-bottom: 10px;
  display: block;
}

.timeline img {
  margin-top: 10px;
  max-width: 100%;
  border-radius: 4px;
}

.gallery-full {
  display: flex;
  width: 100%;
  margin: 0;
  padding: 0;
}

.gallery-full a {
  flex: 1 1 20%;
  display: block;
  overflow: hidden;
}

.gallery-full img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* CONTATTI */

.contact-hero {
  background: url('https://www.salumificiogozzi.it/wp-content/uploads/2025/05/contatti-scaled.webp') center/cover no-repeat;
  height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
}

.contact-hero::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  top: 0;
  left: 0;
}

.contact-hero h1 {
  position: relative;
  font-size: 3rem;
  color: #fff;
  padding: 20px 40px;
  border-radius: 8px;
  z-index: 2;
}

.contact-infos {
  background: #f9f9f9;
  padding: 60px 20px;
  text-align: center;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-list li {
  font-size: 1.1rem;
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.contact-list i {
  color: #8d361c;
}

.contact-form {
  padding: 80px 20px;
  background: #fff;
}

.contact-form .container {
  max-width: 700px;
  margin: auto;
  text-align: center;
}

.contact-form h2 {
  margin-bottom: 30px;
  color: #432516;
}

.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-form input,
.contact-form textarea {
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
}

.contact-form button {
  background: #8d361c;
  color: #fff;
  border: none;
  padding: 14px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
}

.contact-form button:hover {
  background: #cc9c8c;
}

/* FOOTER */

.site-footer {
  background-color: #432516;
  color: #fff;
  padding: 60px 20px;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  box-sizing: border-box;
  width: 100%;
}

.footer-column {
  flex: 1 1 300px;
}

.footer-column:nth-child(2) {
  text-align: center;
}

.footer-column h3 {
  color: #ecdfca;
  margin-bottom: 20px;
  font-size: 1.4rem;
}

.footer-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-menu li {
  margin-bottom: 10px;
}

.footer-menu a {
  color: #fff;
  text-decoration: none;
}

.footer-menu a:hover {
  text-decoration: underline;
}

.footer-contacts {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
}

.footer-contacts li {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-contacts i {
  margin-right: 10px;
  color: #ecdfca;
}

.footer-social a {
  margin-right: 15px;
  font-size: 1.2rem;
  color: #fff;
  transition: color 0.3s;
}

.footer-social a:hover {
  color: #ecdfca;
}

.footer-logo img {
  max-width: 180px;
}

footer {
  background: #f8f8f8;
  padding: 40px 0;
  text-align: center;
  border-top: 1px solid #ccc;
  width:100%;
}
.page-wrap {
    padding: clamp(28px, 5vw, 56px) 0;
    background: #fff;
}
.page-container {
    width: min(1200px, 92vw);
    margin: 0 auto;
}
@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
   .single-product {
    flex-direction: column;
  }

  .product-image, .product-summary {
    flex: 1 1 100%;
  }
   .timeline::before {
    left: 20px;
  }

  .timeline li {
    width: 100%;
    left: 0 !important;
    padding-left: 60px;
    text-align: left !important;
  }

  .timeline li .timeline-content::before {
    left: -44px !important;
    right: auto;
  }
}