/* --- RESET & NORMALIZE --- */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, menu, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
main, menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
article, aside, details, figcaption, figure,
footer, header, hgroup, main, menu, nav, section {
  display: block;
}
html {
  line-height: 1.5;
  scroll-behavior: smooth;
  background: #F5F3E7;
}
body {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  color: #482106;
  background: #F5F3E7;
}
img, picture, video, canvas, svg {
  display: inline-block;
  max-width: 100%;
  height: auto;
}
ul, ol {
  list-style: none;
  margin: 0;
  padding: 0;
}
a {
  color: #7B3F00;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #D94A27;
  outline: none;
}
button {
  font-family: inherit;
  font-size: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

/* === VINTAGE RETRO PALETTE === */
:root {
  --color-primary: #7B3F00;
  --color-primary-dark: #482106;
  --color-secondary: #F5F3E7;
  --color-secondary-dark: #d4cebb;
  --color-accent: #D94A27;
  --color-accent-dark: #AA2200;
  --color-background: #FAF8F3;
  --color-yellow: #F6D860;
  --color-teal: #008378;
  --color-header-bg: #FFF7EC;
  --color-footer-bg: #EFE3D9;
  --color-gray: #6B4C2B;
  --color-border: #D9BE99;
}

/* === TYPOGRAPHY === */
@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@700&family=Roboto:wght@400;500;700&display=swap');
h1, h2, h3, h4 {
  font-family: 'Merriweather', serif;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--color-primary);
}
h1 {
  font-size: 2.6rem;
  margin-bottom: 24px;
  line-height: 1.1;
  text-shadow: 1px 2px 0 var(--color-secondary-dark);
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  line-height: 1.15;
}
h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  line-height: 1.18;
}
h4 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  line-height: 1.25;
}
p, li, address {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  color: #482106;
  margin-bottom: 16px;
  line-height: 1.6;
}
strong {
  font-weight: 700;
  color: var(--color-accent-dark);
}

/* === CONTAINER & SECTIONS === */
.container {
  width: 100%;
  max-width: 1100px;
  margin-right: auto;
  margin-left: auto;
  padding-left: 20px;
  padding-right: 20px;
}
.section, section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* === HEADER === */
header {
  background: var(--color-header-bg);
  box-shadow: 0 2px 12px rgba(123, 63, 0, 0.07);
  z-index: 20;
  position: sticky;
  top: 0;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 20px;
  padding-bottom: 20px;
}
header img {
  height: 46px;
}
.main-nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  align-items: center;
}
.main-nav a {
  font-family: 'Merriweather', serif;
  font-size: 1.08rem;
  color: var(--color-primary-dark);
  padding: 8px 8px;
  border-radius: 5px;
  transition: background 0.16s, color 0.16s;
  position: relative;
}
.main-nav a:hover,
.main-nav a:focus {
  background: var(--color-yellow);
  color: var(--color-accent-dark);
}
.cta-primary {
  background: var(--color-accent);
  color: #fff;
  font-family: 'Merriweather', serif;
  font-size: 1.13rem;
  padding: 11px 30px;
  border-radius: 28px;
  font-weight: bold;
  box-shadow: 0 2px 12px rgba(123, 63, 0, 0.10);
  border: 2px solid var(--color-accent-dark);
  margin-left: 12px;
  transition: background 0.2s, color 0.2s, box-shadow 0.24s;
  display: inline-block;
  text-shadow: 0 1px 0 rgba(80,40,12,0.07);
  letter-spacing: 0.04em;
}
.cta-primary:hover,
.cta-primary:focus {
  background: var(--color-accent-dark);
  color: var(--color-yellow);
  box-shadow: 0 4px 20px rgba(123, 63, 0, 0.18);
}
.cta-secondary {
  background: var(--color-secondary);
  color: var(--color-primary);
  border-radius: 22px;
  padding: 9px 26px;
  font-family: 'Merriweather', serif;
  font-size: 1rem;
  font-weight: 700;
  border: 1.5px solid var(--color-accent);
  margin-top: 18px;
  margin-bottom: 8px;
  display: inline-block;
  transition: background 0.18s, color 0.18s;
}
.cta-secondary:hover,
.cta-secondary:focus {
  background: var(--color-yellow);
  color: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
}

.mobile-menu-toggle {
  display: none;
  font-size: 2.10rem;
  color: var(--color-primary);
  line-height: 1;
  background: none;
  border: none;
  margin-left: 12px;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  transition: background 0.16s;
}
.mobile-menu-toggle:focus {
  outline: 2px solid var(--color-accent);
  background: var(--color-yellow);
}

/* --- MOBILE BURGER MENU --- */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--color-header-bg);
  z-index: 1200;
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(.7,.2,.2,1);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 32px 24px 24px 24px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  font-size: 2.2rem;
  background: none;
  border: none;
  color: var(--color-accent);
  position: absolute;
  top: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  line-height: 1;
  border-radius: 50%;
  display: flex;
  align-items: center; justify-content: center;
  transition: background 0.13s, color 0.13s;
  z-index: 10;
}
.mobile-menu-close:focus {
  background: var(--color-yellow);
  color: var(--color-primary);
  outline: 2px solid var(--color-accent-dark);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 32px;
  width: 100%;
}
.mobile-nav a {
  font-size: 1.17rem;
  font-family: 'Merriweather', serif;
  color: var(--color-primary-dark);
  padding: 14px 0 10px 0;
  border-bottom: 1px solid var(--color-border);
  transition: background 0.1s, color 0.1s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  color: var(--color-accent-dark);
  background: var(--color-yellow);
}

@media (max-width: 1100px) {
  .container {
    max-width: 97vw;
  }
}
@media (max-width: 991px) {
  header .container, footer .container {
    flex-wrap: wrap;
    gap: 12px;
  }
  .main-nav {
    gap: 12px;
  }
}
@media (max-width: 850px) {
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }
  .main-nav a {
    font-size: 1rem;
    padding: 8px 2px;
  }
}
@media (max-width: 768px) {
  header .container {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .cta-primary {
    font-size: 1rem;
    padding: 9px 18px;
    margin-left: 5px;
  }
}

/* === HERO SECTION === */
.hero-section {
  background: url('../assets/pattern-vintage.svg'), linear-gradient(135deg, #FFE5C3 85%, #F6D860 100%);
  background-repeat: repeat, no-repeat;
  background-size: 110px auto, cover;
  border-bottom: 2px dashed var(--color-border);
  padding-top: 62px;
  padding-bottom: 58px;
}
.hero-section .content-wrapper {
  align-items: flex-start;
  gap: 18px;
}
.hero-section h1 {
  color: var(--color-accent-dark);
  text-shadow: 1px 1px 0 #FFE5C3, 0 2px 0 #fff;
  font-size: 2.6rem;
}
.hero-section p {
  font-size: 1.13rem;
  color: var(--color-primary);
  letter-spacing: 0.01em;
}
.hero-section .cta-primary {
  margin-top: 24px;
}

/* === FEATURE (VALORI) SECTION === */
.valori-section {
  background: #FEFCF6;
  border-radius: 44px;
  border: 2px solid var(--color-border);
  box-shadow: 0 2px 16px 0 rgba(123, 63, 0, 0.045);
}
.features-grid {
  display: flex;
  gap: 30px;
  justify-content: space-between;
  flex-wrap: wrap;
}
.feature-item {
  background: #FFF7EC;
  border: 1.5px solid var(--color-border);
  border-radius: 22px;
  padding: 29px 22px 18px 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  box-shadow: 0 2px 12px 0 rgba(123, 63, 0, 0.045);
  margin-bottom: 20px;
  min-width: 220px;
  transition: box-shadow 0.14s, transform 0.13s;
  position: relative;
}
.feature-item img {
  width: 46px;
  margin-bottom: 10px;
}
.feature-item h3 {
  font-size: 1.11rem;
  color: var(--color-primary);
  margin-bottom: 6px;
  letter-spacing: 0.025em;
}
.feature-item p {
  color: #6B4C2B;
  font-size: 1rem;
  margin-bottom: 2px;
}
.feature-item:hover {
  transform: translateY(-3px) scale(1.025);
  box-shadow: 0 8px 30px 0 rgba(123, 63, 0, 0.14);
  background: #F5F1E2;
}

/* === PRODUCT GRID (PRODOTTI) === */
.product-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 30px;
}
.product-item {
  flex: 1 1 220px;
  min-width: 220px;
  max-width: 350px;
  background: #FFF7EC;
  margin-bottom: 20px;
  border-radius: 18px;
  border: 2px solid var(--color-border);
  box-shadow: 0 2px 10px 0 rgba(123, 63, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 30px 22px 18px 22px;
  gap: 12px;
  position: relative;
  transition: box-shadow 0.15s, transform 0.13s;
}
.product-item img {
  width: 50px;
  margin-bottom: 18px;
  filter: sepia(0.5) contrast(1.15);
}
.product-item h2 {
  font-size: 1.2rem;
  margin-bottom: 7px;
  color: var(--color-primary);
}
.product-item ul {
  margin-left: 0;
  margin-bottom: 2px;
}
.product-item li {
  color: var(--color-gray);
  font-size: 0.98rem;
  margin-bottom: 5px;
  padding-left: 12px;
  position: relative;
}
.product-item li:before {
  content: '\2022';
  color: var(--color-yellow);
  font-weight: bold;
  position: absolute;
  left: 0;
}
.product-item strong {
  font-size: 1.08rem;
  color: var(--color-accent-dark);
}
.product-item .cta-secondary {
  margin-top: 10px;
}
.product-item:hover {
  transform: translateY(-3px) scale(1.025);
  box-shadow: 0 10px 34px 0 rgba(123, 63, 0, 0.12);
  background: #F5F1E2;
}

/* === CARD and FLEX CONTAINERS === */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #FFF7EC;
  margin-bottom: 20px;
  border-radius: 14px;
  border: 1.5px solid var(--color-border);
  padding: 23px 15px 23px 15px;
  position: relative;
  box-shadow: 0 2px 10px 0 rgba(123, 63, 0, 0.059);
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  margin-top: 20px;
  background: #FFF;
  border-radius: 21px;
  border: 2px solid var(--color-accent);
  box-shadow: 0 6px 34px 0 rgba(157,86,25,0.09);
  max-width: 700px;
  transition: box-shadow 0.13s, border-color 0.13s;
  margin-bottom: 20px;
}
.testimonial-card blockquote {
  color: #533111;
  font-weight: 500;
  font-size: 1.14rem;
  font-family: 'Merriweather', serif;
  line-height: 1.35;
  margin-right: 10px;
  margin-bottom: 0;
}
.testimonial-card p {
  color: #482106;
  margin-bottom: 0;
  font-size: 0.98rem;
  font-style: italic;
}
.testimonial-card:hover {
  box-shadow: 0 16px 42px 0 rgba(157,86,25,0.18);
  border-color: var(--color-accent-dark);
}

.service-list,
.vantaggi-section ul,
.corsi-section ul,
.features-section ul,
.text-section ul {
  list-style: disc inside;
  margin-bottom: 20px;
  padding-left: 20px;
}
.service-list li,
.vantaggi-section ul li,
.corsi-section ul li,
.features-section ul li, .text-section ul li {
  font-size: 1.03rem;
  color: #6B4C2B;
  margin-bottom: 10px;
  padding-left: 4px;
}

/* --- PAGE/SECTION STYLES --- */
.ricette-section, .maestri-section, .privacy-section, .gdpr-section, .cookie-section, .termini-section, .thank-you-section, .contatti-section, .location-section {
  background: #FEF8EE;
  border-radius: 33px;
  border: 2px solid var(--color-border);
  box-shadow: 0 2px 12px 0 rgba(123, 63, 0, 0.03);
}
.ricette-section h1, .maestri-section h2 {
  margin-top: 8px;
}
.thank-you-section .cta-primary {
  margin-top: 24px;
}
.text-section {
  margin-bottom: 18px;
}

/* === FOOTER === */
footer {
  background: var(--color-footer-bg);
  box-shadow: 0 -2px 12px rgba(123,63,0,.06);
  padding-top: 32px;
  padding-bottom: 24px;
  margin-top: 40px;
  border-top: 2px dashed var(--color-border);
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
}
.footer-menu {
  display: flex;
  gap: 19px;
  flex-wrap: wrap;
}
.footer-menu a {
  font-family: 'Roboto', sans-serif;
  color: var(--color-accent-dark);
  font-size: 1.01rem;
  border-bottom: 1.5px dotted var(--color-border);
  transition: color 0.14s, border-color 0.13s;
  padding-bottom: 2.5px;
}
.footer-menu a:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
}
.contact-info {
  font-size: 0.98rem;
  color: #432A09;
  font-family: 'Merriweather', serif;
  margin-bottom: 8px;
  line-height: 1.7;
}
.social-links {
  display: flex;
  gap: 17px;
  align-items: center;
}
.social-links a img {
  width: 28px;
  height: 28px;
  background: #fff;
  border-radius: 50%;
  border: 1.3px solid var(--color-accent-dark);
  box-shadow: 0 2px 10px 0 rgba(123,63,0,.08);
  padding: 3px;
  transition: border-color 0.15s, filter 0.13s;
}
.social-links a:hover img {
  border-color: var(--color-accent);
  filter: sepia(1) hue-rotate(-10deg) brightness(1.21);
}

/* === COOKIE CONSENT BANNER === */
.cookie-consent-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #fff6e6;
  border-top: 2px solid var(--color-border);
  box-shadow: 0 -2px 14px 0 rgba(123,63,0,.12);
  z-index: 1102;
  padding: 26px 14px 18px 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 21px;
  align-items: center;
  justify-content: center;
  font-size: 1.03rem;
  color: #49250C;
  animation: cookieBannerIn 0.5s cubic-bezier(.61,.57,.53,.95);
}
@keyframes cookieBannerIn {
  from { opacity: 0; transform: translateY(100%); }
  to { opacity: 1; transform: translateY(0); }
}
.cookie-consent-banner .cookie-text {
  flex: 2 1 298px;
  color: #533111;
  font-size: 1.03rem;
}
.cookie-consent-banner .cookie-buttons {
  display: flex;
  gap: 18px;
  align-items: center;
}
.cookie-button,
.cookie-settings-button {
  background: var(--color-accent);
  color: #fff;
  font-family: 'Merriweather', serif;
  font-size: 1rem;
  border-radius: 19px;
  border: 2px solid var(--color-accent-dark);
  padding: 8px 22px;
  font-weight: 700;
  margin-right: 0;
  transition: background 0.14s, color 0.14s, border 0.13s;
}
.cookie-button:hover,
.cookie-button:focus,
.cookie-settings-button:hover,
.cookie-settings-button:focus {
  background: var(--color-accent-dark);
  color: var(--color-yellow);
}
.cookie-reject-button {
  background: #fff;
  color: var(--color-accent);
  border: 2px solid var(--color-accent);
}
.cookie-reject-button:hover,
.cookie-reject-button:focus {
  background: var(--color-yellow);
}

/* === COOKIE SETTINGS MODAL === */
.cookie-settings-modal {
  position: fixed;
  z-index: 1300;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(90, 54, 24, 0.32);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInModal 0.25s cubic-bezier(.51,.2,.47,1.07);
}
@keyframes fadeInModal {
  from { opacity: 0; } to { opacity: 1; }
}
.cookie-modal-content {
  background: var(--color-secondary);
  border-radius: 24px;
  box-shadow: 0 10px 48px 0 rgba(123,63,0,.24);
  padding: 36px 32px 24px 32px;
  max-width: 400px;
  width: 93vw;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  animation: modalPopIn 0.24s cubic-bezier(.55,.06,.72,.95);
}
@keyframes modalPopIn {
  from { transform: scale(0.93); opacity: 0.3 }
  to   { transform: scale(1); opacity: 1; }
}
.cookie-modal-content h3 {
  color: var(--color-primary);
  font-size: 1.19rem;
  margin-bottom: 8px;
  font-family: 'Merriweather', serif;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.cookie-category label {
  color: var(--color-primary);
  font-size: 1.02rem;
  font-weight: 500;
}
.cookie-toggle {
  position: relative;
  width: 44px;
  height: 22px;
  display: inline-block;
}
.cookie-toggle input {
  opacity: 0;
  width: 0; height: 0;
}
.cookie-toggle .slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #eee3cb;
  border-radius: 13px;
  transition: background 0.13s;
}
.cookie-toggle input:checked + .slider {
  background-color: var(--color-accent);
}
.cookie-toggle .slider:before {
  content: '';
  position: absolute;
  height: 18px;
  width: 18px;
  left: 2px;
  bottom: 2px;
  background-color: var(--color-primary);
  border-radius: 50%;
  transition: transform 0.18s;
}
.cookie-toggle input:checked + .slider:before {
  transform: translateX(22px);
  background: var(--color-accent-dark);
}
.modal-cookie-actions {
  display: flex;
  gap: 13px;
  margin-top: 13px;
}
.modal-close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  color: var(--color-accent);
  font-size: 2rem;
  border-radius: 50%;
  width: 38px; height: 38px;
  line-height: 1;
  display: flex;
  align-items: center; justify-content: center;
}
.modal-close-btn:focus {
  outline: 2px solid var(--color-accent);
  background: var(--color-yellow);
}

/* === FORMS (if any in future contact extensions) === */
input, textarea, select {
  font-family: 'Roboto', sans-serif;
  font-size: 1rem;
  padding: 10px 12px;
  border-radius: 4px;
  border: 1.5px solid var(--color-border);
  margin-bottom: 16px;
  transition: border-color 0.19s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--color-accent-dark);
  outline: none;
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 1100px) {
  .features-grid, .product-grid { gap: 15px; }
  .testimonial-card { max-width: 600px; }
}
@media (max-width: 991px) {
  .features-grid, .product-grid { flex-direction: column; align-items: stretch; } 
  .feature-item, .product-item { max-width: 100%; }
  .feature-item, .product-item { min-width: 0; }
}
@media (max-width: 768px) {
  .hero-section { padding-top: 36px; padding-bottom: 26px; }
  .hero-section h1 { font-size: 1.7rem; }
  h2 { font-size: 1.18rem; }
  .valori-section, .prodotti-section, .vantaggi-section, .servizi-section, .features-section, .maestri-section,
  .ricette-section, .contatti-section, .location-section, .privacy-section, .gdpr-section, .cookie-section, .termini-section, .thank-you-section {
    border-radius: 18px;
    padding: 27px 7px;
  }
  .features-grid, .product-grid {
    flex-direction: column;
    gap: 22px;
  }
  .feature-item, .product-item {
    max-width: 100%;
    min-width: 0;
  }
  .content-wrapper {
    gap: 16px;
  }
  .testimonial-card {
    max-width: 97vw;
    flex-direction: column;
    gap: 9px;
    padding: 14px;
    align-items: flex-start;
  }
  .footer-menu, .social-links {
    gap: 9px;
  }
  footer .container {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
  .cookie-consent-banner {
    flex-direction: column;
    gap: 15px;
    padding: 17px 7px 13px 7px;
    font-size: 0.98rem;
  }
}
@media (max-width: 480px) {
  h1 { font-size: 1.18rem; }
  h2 { font-size: 1.01rem; }
  .footer-menu a, .contact-info { font-size: 0.95rem; word-break: break-all; }
}

/* === UTILITIES & PATTERNS === */
.section { margin-bottom: 60px; padding: 40px 20px; }
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; }
.content-grid { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; }
.text-image-section { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }
.testimonial-card { display: flex; align-items: center; gap: 20px; padding: 20px; }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/* --- END --- */