/* ==== CSS RESET & BASE ==== */
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, 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,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}
body {
  background: #F8EBE0;
  color: #2E2926;
  font-family: 'Lato', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
ul, ol {
  padding-left: 24px;
}
a {
  color: #A23A00;
  text-decoration: none;
  font-weight: 700;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #B95122;
  outline: none;
}

/* ==== FONT IMPORTS ==== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;900&family=Lato:wght@400;700;900&display=swap');

/* ==== BRAND COLORS (fallbacks) ==== */
:root {
  --primary: #2E2926;
  --secondary: #F8EBE0;
  --accent: #A23A00;
  --accent-dark: #B95122;
  --neutral-white: #FFF;
  --neutral-black: #171412;
}

/* ==== TYPOGRAPHY SCALE ==== */
h1, .hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.75rem;
  font-weight: 900;
  line-height: 1.1;
  color: var(--primary);
  margin-bottom: 16px;
  letter-spacing: -0.7px;
}
h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}
h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
}
h4, h5, h6 {
  font-family: 'Lato', Arial, sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
}
p, li, dt, dd, address {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--primary);
}
strong {
  font-weight: 900;
  color: var(--primary);
}

/* ==== CONTAINER LAYOUT ==== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0; /* Will be set in content sections */
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.text-section {
  padding: 24px 0 0 0;
}

/* ==== HEADER ==== */
header {
  background: var(--neutral-white);
  box-shadow: 0 2px 20px 0 rgba(46,41,38, 0.08);
  z-index: 30;
}
header .container {
  flex-direction: row;
  align-items: center;
  gap: 32px;
  min-height: 88px;
  justify-content: space-between;
}
header img {
  height: 48px;
  width: auto;
}

.main-nav {
  display: flex;
  flex: 1;
  flex-direction: row;
  gap: 28px;
  align-items: center;
  justify-content: flex-start;
}
.main-nav a {
  font-family: 'Lato', Arial, sans-serif;
  font-size: 1rem;
  text-transform: uppercase;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: 1px;
  padding: 10px 0;
  position: relative;
}
.main-nav a::after {
  content: '';
  display: block;
  margin: 0 auto;
  width: 0%;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.25s;
}
.main-nav a:hover::after, .main-nav a:focus::after {
  width: 65%;
}

.cta {
  font-family: 'Lato', Arial, sans-serif;
  font-weight: 900;
  letter-spacing: 1px;
  font-size: 1rem;
  background: var(--accent);
  color: var(--neutral-white);
  border: none;
  padding: 12px 30px;
  border-radius: 32px;
  box-shadow: 0 2px 8px 0 rgba(171,57,0,0.07);
  cursor: pointer;
  display: inline-block;
  transition: background 0.22s, transform 0.13s, box-shadow 0.22s;
}
.cta.primary {
  background: var(--primary);
  color: var(--secondary);
}
.cta.primary:hover, .cta.primary:focus {
  background: var(--accent-dark);
  color: var(--neutral-white);
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 4px 24px 0 rgba(46,41,38,0.10);
}
.cta:hover, .cta:focus {
  background: var(--accent-dark);
  color: var(--neutral-white);
  transform: translateY(-1.5px) scale(1.02);
  box-shadow: 0 6px 18px 0 rgba(162,58,0,0.12);
}

/* ==== BURGER MENU ==== */
.mobile-menu-toggle {
  background: var(--accent);
  color: var(--neutral-white);
  font-size: 2rem;
  border: none;
  border-radius: 14px;
  width: 48px;
  height: 48px;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-left: 12px;
  transition: background 0.2s, transform 0.18s;
  z-index: 110;
}
.mobile-menu-toggle:active, .mobile-menu-toggle:focus {
  background: var(--accent-dark);
  outline: none;
  transform: scale(1.06);
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(46,41,38, 0.97);
  z-index: 120;
  color: var(--neutral-white);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  transform: translateX(100%);
  transition: transform 0.33s cubic-bezier(0.65,0,0.35,1);
  width: 100vw;
  padding-top: 50px;
  padding-left: 0;
  gap: 0;
  box-shadow: 0 2px 32px rgba(46,41,38,0.25);
}
.mobile-menu.open {
  transform: translateX(0%);
}
.mobile-menu-close {
  background: none;
  color: var(--neutral-white);
  font-size: 2.2rem;
  border: none;
  margin: 12px 0 0 18px;
  align-self: flex-start;
  cursor: pointer;
  z-index: 121;
  transition: color 0.18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--accent-dark);
  outline: none;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 38px 0 0 32px;
  font-family: 'Lato',sans-serif;
}
.mobile-nav a {
  color: var(--neutral-white);
  font-size: 1.22rem;
  font-weight: 900;
  padding: 13px 0;
  letter-spacing: 1px;
  border-radius: 6px;
  transition: background 0.18s, color 0.18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--accent);
  color: var(--neutral-white);
}

/* ==== HERO SECTION ==== */
.hero {
  background: var(--secondary);
  display: flex;
  align-items: center;
  min-height: 320px;
  box-shadow: 0 4px 64px 0 rgba(171,57,0,0.06);
  margin-bottom: 60px;
  padding: 40px 0 0 0;
}
.hero .container {
  flex-direction: row;
  align-items: stretch;
  gap: 0;
}
.hero .content-wrapper {
  justify-content: center;
  gap: 18px;
  padding: 32px 0;
}
.hero p {
  font-size: 1.25rem;
  color: var(--primary);
  max-width: 540px;
  margin-bottom: 18px;
}

/* ==== SECTION PATTERNS ==== */
section {
  background: none;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--neutral-white);
  border-radius: 26px;
  box-shadow: 0 2px 24px 0 rgba(46,41,38,0.07);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: stretch;
}
.card {
  background: var(--neutral-white);
  margin-bottom: 20px;
  padding: 28px 22px;
  border-radius: 20px;
  box-shadow: 0 3px 14px 0 rgba(46,41,38,0.08);
  position: relative;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.23s, transform 0.13s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 9px 28px 0 rgba(171,57,0,0.14);
  transform: translateY(-3px) scale(1.03);
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  width: 100%;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: #FAF8F4;
  border-left: 6px solid var(--accent);
  border-radius: 18px;
  margin-bottom: 20px;
  box-shadow: 0 2px 16px 0 rgba(46,41,38,0.06);
  transition: border-color 0.16s, box-shadow 0.2s;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  border-left: 6px solid var(--accent-dark);
  box-shadow: 0 8px 24px 0 rgba(171,57,0,0.08);
}
.testimonial-card p {
  color: #181311;
  font-weight: 700;
  font-size: 1.1rem;
}
.testimonial-card h3 {
  margin-bottom: 0;
  color: var(--primary);
  font-size: 1.1rem;
  font-weight: 900;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ==== LISTS & ICONS ==== */
ul li, ol li {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 700;
  font-size: 1.05rem;
}
ul li img {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 12px;
  background: var(--accent);
  padding: 8px;
}

.category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
}
.category-filters span {
  background: var(--primary);
  color: var(--secondary);
  font-weight: 900;
  font-family: 'Lato',sans-serif;
  padding: 8px 22px;
  border-radius: 26px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.18s, color 0.17s;
}
.category-filters span:hover {
  background: var(--accent);
  color: var(--neutral-white);
}

/* ==== RECIPE CARD ==== */
.recipe-card {
  background: var(--neutral-white);
  border: 2px solid var(--accent);
  border-radius: 16px;
  box-shadow: 0 2px 12px 0 rgba(171,57,0,0.09);
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.2s, box-shadow 0.20s;
}
.recipe-card:hover, .recipe-card:focus-within {
  border-color: var(--accent-dark);
  box-shadow: 0 8px 24px 0 rgba(171,57,0,0.13);
}

/* ==== DL - SERVIZI (on Servizi) ==== */
dl {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
dt {
  font-family: 'Playfair Display', serif;
  font-size: 1.10rem;
  font-weight: 700;
  color: var(--accent);
}
dd {
  font-size: 1rem;
  font-weight: 400;
  color: var(--primary);
  margin-bottom: 14px;
}

/* ==== ADDRESS ==== */
address {
  font-style: normal;
  color: var(--primary);
  font-size: 1rem;
}

/* ==== FOOTER ==== */
footer {
  background: var(--primary);
  padding: 54px 0 24px 0;
  color: var(--secondary);
}
footer .container {
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.footer-brand {
  flex: 0 0 auto;
  margin-right: 18px;
}
.footer-brand img {
  width: 56px;
  height: auto;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 0;
}
.footer-nav a {
  color: var(--secondary);
  font-size: 1rem;
  font-weight: 900;
  text-decoration: underline;
  margin-bottom: 2px;
  transition: color 0.20s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--accent);
}
.footer-contact p, .footer-contact a {
  color: var(--secondary);
  font-size: 1rem;
  margin-bottom: 2px;
}
.footer-contact a {
  text-decoration: underline;
}
.footer-copy {
  margin-top: 30px;
  width: 100%;
  display: block;
  text-align: center;
  font-size: 0.96rem;
  color: #E9C9B1;
  letter-spacing: 0.2px;
  font-family: 'Lato', Arial, sans-serif;
}

/* ==== THANK-YOU SECTION ==== */
.thank-you-section {
  text-align: center;
  align-items: center;
  gap: 26px;
  margin-top: 48px;
  margin-bottom: 48px;
}
.thank-you-section .thank-you-message {
  font-size: 1.28rem;
  color: var(--primary);
  margin-bottom: 18px;
  font-weight: 700;
}

/* ==== COOKIE CONSENT BANNER ==== */
.cookie-banner {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 24px;
  background: var(--neutral-white);
  color: var(--primary);
  border-radius: 20px;
  box-shadow: 0 2px 24px 0 rgba(171,57,0,0.15);
  z-index: 250;
  padding: 18px 28px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 26px;
  justify-content: space-between;
  opacity: 0;
  animation: cookie-in 0.8s forwards;
  max-width: 840px;
  margin: 0 auto;
}
@keyframes cookie-in {
  from {transform: translateY(60px); opacity: 0;}
  to {transform: translateY(0px); opacity: 1;}
}
.cookie-banner-text {
  flex: 1 1 0%;
  font-size: 1.08rem;
  line-height: 1.5;
}
.cookie-banner-actions {
  display: flex;
  flex-direction: row;
  gap: 16px;
}
.cookie-banner button {
  border: none;
  font-size: 1rem;
  font-weight: 900;
  padding: 8px 22px;
  border-radius: 24px;
  cursor: pointer;
  font-family: 'Lato', sans-serif;
  background: var(--accent);
  color: var(--neutral-white);
  transition: background 0.17s, transform 0.13s;
}
.cookie-banner button.cookie-banner-settings {
  background: var(--neutral-white);
  color: var(--accent);
  border: 2px solid var(--accent);
}
.cookie-banner button.cookie-banner-reject {
  background: #D8D1CA;
  color: var(--primary);
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: var(--accent-dark);
  color: var(--neutral-white);
  outline: none;
  transform: scale(1.04); 
}
.cookie-banner button.cookie-banner-settings:hover {
  background: var(--secondary);
  color: var(--accent-dark);
}


/* ==== COOKIE PREFERENCES MODAL ==== */
.cookie-modal-overlay {
  display: none;
  position: fixed;
  z-index: 400;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(46,41,38,0.85);
  align-items: center;
  justify-content: center;
  animation: fade-in 0.25s forwards;
}
.cookie-modal-overlay.open {
  display: flex;
}
@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: var(--neutral-white);
  color: var(--primary);
  border-radius: 26px;
  max-width: 420px;
  width: 96vw;
  box-shadow: 0 6px 48px 0 rgba(162,58,0,0.22);
  padding: 32px 30px 28px 30px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  animation: modal-in 0.38s cubic-bezier(0.41,0.74,0.16,1.08) forwards;
}
@keyframes modal-in {
  from {transform: translateY(70px) scale(0.93); opacity: 0.5;}
  to {transform: translateY(0) scale(1); opacity: 1;}
}
.cookie-modal-title {
  font-size: 1.5rem;
  font-weight: 900;
  font-family: 'Playfair Display', serif;
  margin-bottom: 10px;
}
.cookie-modal-close {
  position: absolute;
  right: 16px;
  top: 16px;
  background: none;
  border: none;
  font-size: 1.35rem;
  color: var(--accent);
  cursor: pointer;
  padding: 2px;
  transition: color 0.15s;
}
.cookie-modal-close:hover {
  color: var(--accent-dark);
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  background: #F7F1E9;
  border-radius: 16px;
  padding: 11px 16px;
  font-family: 'Lato', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--primary);
}
.cookie-category .cookie-toggle {
  width: 44px;
  height: 24px;
  border-radius: 14px;
  border: none;
  background: #D8D1CA;
  cursor: pointer;
  position: relative;
  transition: background 0.18s;
}
.cookie-category .cookie-toggle.enabled {
  background: var(--accent);
}
.cookie-category .cookie-toggle::after {
  content: '';
  display: block;
  position: absolute;
  left: 4px;
  top: 4px;
  width: 16px;
  height: 16px;
  background: var(--neutral-white);
  border-radius: 50%;
  box-shadow: 0 1px 6px rgba(46,41,38,0.06);
  transition: left 0.22s;
}
.cookie-category .cookie-toggle.enabled::after {
  left: 24px;
}
.cookie-category.essential .cookie-toggle {
  pointer-events: none;
  opacity: 0.5;
}
.cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 16px;
  margin-top: 18px;
}
.cookie-modal-actions button {
  font-size: 1rem;
  font-weight: 900;
  padding: 8px 18px;
  border-radius: 24px;
  border: none;
  background: var(--accent);
  color: var(--neutral-white);
  cursor: pointer;
  font-family: 'Lato', Arial, sans-serif;
  transition: background 0.16s, color 0.16s;
}
.cookie-modal-actions button.secondary {
  background: #F4EBE4;
  color: var(--primary);
}
.cookie-modal-actions button:hover {
  background: var(--accent-dark);
  color: var(--neutral-white);
}
.cookie-modal-actions button.secondary:hover {
  background: var(--secondary);
  color: var(--accent);
}

/* ==== TABLE ==== */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 32px;
}
th, td {
  padding: 11px 14px;
  border: 1.5px solid #E6D5C6;
}
th {
  background: var(--accent);
  color: var(--neutral-white);
  font-weight: 900;
}
td {
  color: var(--primary);
  font-weight: 700;
}

/* ==== RESPONSIVE STYLES ==== */
@media (max-width: 1279px) {
  .container {
    max-width: 950px;
    padding: 0 8px;
  }
}
@media (max-width: 1023px) {
  .container {
    max-width: 735px;
  }
  header .container, footer .container {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  footer .container {
    align-items: flex-start;
    gap: 30px;
  }
}
@media (max-width: 850px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .cta.primary {
    display: none;
  }
  header .container {
    gap: 16px;
  }
  footer .container {
    flex-direction: column;
    align-items: flex-start;
  }
}
@media (max-width: 768px) {
  body {
    font-size: 15px;
  }
  .hero h1, h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.36rem;
  }
  h3 {
    font-size: 1.1rem;
  }
  .section, section {
    padding: 20px 8px !important;
    margin-bottom: 38px !important;
    border-radius: 16px;
  }
  .card-container, .content-grid {
    flex-direction: column;
    gap: 18px;
  }
  .content-wrapper {
    gap: 16px;
  }
  .hero {
    padding: 0!important;
    min-height: 190px;
  }
  .hero .container {
    flex-direction: column;
    align-items: flex-start;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .testimonial-card {
    padding: 14px;
    font-size: 1rem;
    border-radius: 12px;
  }
  .category-filters {
    gap: 9px;
  }
  .card {
    padding: 14px 8px;
    border-radius: 13px;
  }
  .cookie-banner {
    padding: 14px 10px;
    flex-direction: column;
    gap: 14px;
    left: 8px; right: 8px;
    max-width: 98vw;
  }
}

@media (max-width: 650px) {
  .container {
    max-width: 99vw;
    padding: 0 2vw;
  }
  .hero h1, h1 {
    font-size: 1.4rem;
  }
  .footer-copy {
    margin-top: 16px;
    font-size: 0.92rem;
  }
  .cookie-modal {
    padding: 14px 7vw 14px 7vw;
    border-radius: 14px;
  }
}

@media (max-width: 520px) {
  .cookie-modal {
    max-width: 98vw;
    font-size: 0.97rem;
    padding: 10px 2vw;
  }
  .cookie-modal-title {
    font-size: 1.11rem;
  }
  .testimonials {
    gap: 12px;
  }
}

/* ==== TRANSITION & ACCESSIBILITY ==== */
a, button, input, .card, .testimonial-card, .recipe-card {
  transition: box-shadow 0.2s, background 0.19s, color 0.18s, border-color 0.18s, transform 0.16s;
}
:focus {
  outline: 2px dashed var(--accent-dark);
  outline-offset: 2px;
}

/* ==== UTILITIES ==== */
.mt-32 { margin-top: 32px; }
.mb-32 { margin-bottom: 32px; }
.mb-60 { margin-bottom: 60px; }
.rounded { border-radius: 24px; }

/* ==== Z-INDEX LAYERING ==== */
header { z-index: 100; }
.mobile-menu { z-index: 120; }
.cookie-banner { z-index: 250; }
.cookie-modal-overlay { z-index: 400; }

/* ==== FLEXBOX ONLY ENFORCED: NO GRID, NO COLUMNS ==== */
/* (No grid/column properties are present in this file!) */
