/* --- CSS 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, 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;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
html { height: 100%; }
body {
  min-height: 100%;
  background: #fff;
  font-family: 'Open Sans', Arial, sans-serif;
  color: #2a2a2a;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
ul, ol { list-style: none; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; border: none; }
button,input,select,textarea {
  outline: none;
  font-family: inherit;
  background: none;
  border: none;
}
button { cursor: pointer; }
*,*:before,*:after {
  box-sizing: inherit;
}

/* ---- BRAND VARIABLES (fallbacks, no variables for legacy) ---- */
:root {
  --primary: #17445F;
  --secondary: #F6A021;
  --accent: #F6F7F8;
  --neutral: #fff;
  --text-main: #222;
  --text-dark: #17445F;
  --border: #e6e9ed;
  --shadow: 0 2px 16px 0 rgba(23,68,95,0.05);
  --radius: 12px;
  --transition: all 0.18s cubic-bezier(.4,0,.2,1);
}

/* ---- GLOBAL STRUCTURE ---- */
body {
  background: var(--neutral);
  color: var(--text-main);
}
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

main {
  flex: 1 1 auto;
}

/* ---- TYPOGRAPHY ---- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Merriweather', Georgia, serif;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.2;
}
h1 { font-size: 2.5rem; margin-bottom: 16px; }
h2 { font-size: 2rem; margin-bottom: 12px; }
h3 { font-size: 1.33rem; margin-bottom: 8px; font-weight: 600; }
h4 { font-size: 1.12rem; margin-bottom: 8px; }

p, li, span { font-family: 'Open Sans', Arial, sans-serif; font-size: 1rem; line-height: 1.7; color: var(--text-main); }
.tagline {
  font-size: 1.18rem;
  color: var(--secondary);
  font-family: 'Merriweather', Georgia, serif;
}
strong { font-weight: 700; }

/* ---- SPACING & FLEX LAYOUTS ---- */
.section { margin-bottom: 60px; padding: 40px 20px; background: transparent; }
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card { margin-bottom: 20px; position: relative; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.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;
  background: var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  min-width: 220px;
  flex: 1 1 220px;
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}

/* ---- HEADER & NAVIGATION ---- */
header {
  width: 100%;
  background: var(--neutral);
  box-shadow: 0 2px 8px 0 rgba(23,68,95,0.04);
  position: relative;
  z-index: 11;
  border-bottom: 1px solid var(--border);
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  position: relative;
  gap: 16px;
}
header nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
header nav a {
  font-size: 1rem;
  font-family: 'Open Sans', Arial, sans-serif;
  color: var(--primary);
  padding: 8px 8px;
  border-radius: 7px;
  transition: var(--transition);
}
header nav a:hover, header nav a:focus {
  background: var(--accent);
  color: var(--secondary);
}
.cta-nav {
  background: var(--primary);
  color: #fff !important;
  padding: 8px 18px;
  border-radius: 8px;
  font-weight: 700;
  margin-left: 8px;
  box-shadow: 0 2px 8px 0 rgba(23,68,95,0.10);
  transition: var(--transition);
}
.cta-nav:hover, .cta-nav:focus {
  background: var(--secondary);
  color: var(--primary) !important;
}
header img {
  max-height: 40px;
  width: auto;
}

/* --- MOBILE MENU --- */
.mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  color: var(--primary);
  transition: color 0.18s;
  margin-left: 12px;
  z-index: 12;
}
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(23,68,95,0.92);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transform: translateX(-100vw);
  transition: transform 0.35s cubic-bezier(.42,0,.58,1);
  z-index: 1200;
  padding: 40px 24px 24px 24px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2.1rem;
  background: none;
  border: none;
  color: #fff;
  margin-bottom: 32px;
  cursor: pointer;
  transition: color 0.16s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
}
.mobile-nav a {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 1.35rem;
  color: #fff;
  padding: 12px 4px;
  border-radius: 5px;
  font-weight: 500;
  transition: background 0.18s, color 0.18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--secondary);
  color: var(--primary);
}

@media (max-width: 1020px) {
  header .container { padding: 0 10px; }
}
@media (max-width: 880px) {
  header nav { gap: 14px; }
}
@media (max-width: 820px) {
  header nav { display: none; }
  .mobile-menu-toggle { display: block; }
}

/* ---- HERO SECTIONS ---- */
.hero, .hero-recipes, .hero-lesson, .hero-tour, .hero-consulenza, .hero-contact {
  background: var(--accent);
  padding: 64px 0 56px 0;
  margin-bottom: 0;
}
.hero .content-wrapper,
.hero-recipes .content-wrapper,
.hero-lesson .content-wrapper,
.hero-tour .content-wrapper,
.hero-consulenza .content-wrapper,
.hero-contact .content-wrapper {
  align-items: center;
  text-align: center;
  gap: 18px;
}
h1 { margin-top: 0; margin-bottom: 12px; }
.cta-main {
  display: inline-block;
  background: var(--secondary);
  color: var(--primary);
  font-family: 'Merriweather', Georgia, serif;
  font-weight: 700;
  font-size: 1.13rem;
  padding: 12px 32px;
  border-radius: 45px;
  margin-top: 10px;
  transition: var(--transition);
  box-shadow: 0 2px 12px 0 rgba(246,160,33,0.08);
}
.cta-main:hover, .cta-main:focus {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 20px 0 rgba(23,68,95,0.08);
}
.cta-secondary {
  display: inline-block;
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  font-family: 'Merriweather', Georgia, serif;
  font-weight: 600;
  font-size: 1.13rem;
  padding: 12px 32px;
  border-radius: 45px;
  margin-top: 12px;
  transition: var(--transition);
}
.cta-secondary:hover, .cta-secondary:focus {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ---- FEATURES GRID ---- */
.features, .features-consulenza, .features-tour {
  background: transparent;
  margin-bottom: 60px;
  padding: 40px 0;
}
.features .feature-grid, .features-consulenza .feature-grid {
  gap: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}
.feature-item img {
  width: 48px;
  height: 48px;
  margin-bottom: 6px;
}

/* ---- SERVICE LISTS ---- */
.services-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 16px;
}
.services-list li {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 24px;
  color: var(--text-main);
  font-size: 1.06rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.services-list li span {
  color: var(--primary);
  font-weight: 600;
  margin-left: 4px;
}

/* ---- TESTIMONIALS ---- */
.testimonials, .testimonials-tour, .testimonials-lessons {
  background: transparent;
  padding: 40px 0;
}
.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.testimonial-card {
  background: var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 24px;
  min-width: 260px;
  max-width: 370px;
  flex: 1 1 320px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
  color: var(--primary);
  font-size: 1.06rem;
  position: relative;
  z-index: 1;
  transition: box-shadow 0.14s;
}
.testimonial-card:hover, .testimonial-card:focus {
  box-shadow: 0 8px 32px 0 rgba(23,68,95,0.12);
  background: #fff;
  transition: var(--transition);
}
.testimonial-card p {
  color: var(--text-dark);
  font-size: 1.13rem;
  font-family: 'Merriweather', Georgia, serif;
}
.testimonial-card span {
  color: var(--primary);
  font-size: 0.98rem;
  font-style: italic;
  font-family: 'Open Sans', Arial, sans-serif;
}

/* ---- CALL TO ACTION SECTIONS ---- */
.cta-community, .cta-newsletter, .cta-consulenza, .newsletter-cta, .thankyou {
  background: var(--accent);
  padding: 48px 0;
  text-align: center;
  margin-bottom: 0;
}
.cta-community .cta-secondary {
  margin-top: 8px;
}

/* ---- RECIPES LISTINGS ---- */
.recipe-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 20px;
}
.recipe-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 20px;
  flex: 1 1 260px;
  min-width: 200px;
  max-width: 370px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: box-shadow 0.15s;
}
.recipe-card:hover, .recipe-card:focus {
  box-shadow: 0 8px 32px 0 rgba(23,68,95,0.13);
}
.recipe-filters {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-top: 12px;
  margin-bottom: 8px;
}
.recipe-filters input[type="text"] {
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  background: #fff;
  transition: border 0.17s;
}
.recipe-filters input[type="text"]:focus {
  border: 1.5px solid var(--primary);
}
.recipe-filters select {
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 1rem;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--primary);
}
.category-nav {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: center;
  margin: 10px 0;
}
.category-nav a {
  font-family: 'Open Sans', Arial, sans-serif;
  color: var(--primary);
  font-size: 1rem;
  padding: 8px 18px;
  border-radius: 28px;
  background: #fff;
  border: 1px solid var(--border);
  transition: var(--transition);
}
.category-nav a:hover, .category-nav a:focus {
  background: var(--secondary);
  color: #fff;
  border: 1px solid var(--secondary);
}

/* ---- ABOUT / CHI SIAMO TEXT SECTIONS ---- */
.text-section {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.team-member {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 20px;
  margin-bottom: 20px;
}

/* ---- SCHEDULE / BOOKING / LISTS ---- */
.upcoming-classes ul, .tour-dates ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 16px 0;
}
.upcoming-classes li, .tour-dates li {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px 18px;
  font-size: 1.05rem;
  color: var(--primary);
}

/* ---- FAQ ---- */
.faq-lessons ul, .faq-tour ul, .faq-contact ul, .legal ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
}
.faq-lessons li, .faq-tour li, .faq-contact li, .legal li {
  background: var(--accent);
  border-radius: var(--radius);
  padding: 14px 18px;
}

.legal {
  background: #fff;
  padding: 42px 0;
}
.legal h1, .legal h2 {
  color: var(--primary);
}

/* ---- CONTACT / FOOTER ---- */
.contact-recapiti p, .footer-contact p {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.footer-links nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-links a {
  color: var(--primary);
  font-size: 1rem;
  font-family: 'Open Sans', Arial, sans-serif;
  padding: 4px 10px;
  border-radius: 6px;
  transition: background 0.14s, color 0.14s;
}
.footer-links a:hover, .footer-links a:focus {
  background: var(--accent);
  color: var(--secondary);
}
footer {
  background: #fff;
  border-top: 1px solid var(--border);
  margin-top: 64px;
}
footer .container {
  padding: 32px 20px 28px 20px;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.footer-social {
  display: flex;
  gap: 12px;
  align-items: center;
}
.footer-social a img { width: 28px; height: 28px; }

footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
  justify-content: space-between;
}

/* ---- THANK YOU PAGE ---- */
.thankyou {
  min-height: 60vh;
  padding: 80px 0 96px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.thankyou .content-wrapper {
  align-items: center;
  gap: 18px;
}

/* ---- FORMS --- */
.privacy-note {
  font-size: 0.92rem;
  color: var(--primary);
  margin-top: 7px;
}
.privacy-note a {
  color: var(--secondary);
  border-bottom: 1px dashed var(--secondary);
}

/* ---- COOKIE CONSENT BANNER & MODAL ---- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #fff;
  box-shadow: 0 -2px 16px 0 rgba(23,68,95,0.10);
  border-top: 1px solid var(--border);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 22px;
  gap: 18px;
  animation: bannerSlideIn 0.5s cubic-bezier(.4,0,.2,1) 0s 1;
}
@keyframes bannerSlideIn {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0%); opacity: 1; }
}
.cookie-banner p {
  margin: 0 18px 0 0;
  color: var(--primary);
  font-size: 1.02rem;
  flex: 2 1 200px;
}
.cookie-banner .cookie-btns {
  display: flex;
  gap: 13px;
  align-items: center;
  flex-wrap: wrap;
}
.cookie-btn {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 7px;
  padding: 8px 20px;
  font-size: 1rem;
  font-family: 'Open Sans', Arial, sans-serif;
  transition: var(--transition);
}
.cookie-btn.settings {
  background: transparent;
  border: 1.5px solid var(--secondary);
  color: var(--secondary);
}
.cookie-btn.accept {
  background: var(--secondary);
  color: var(--primary);
  font-weight: 600;
}
.cookie-btn.reject {
  background: #fff;
  border: 1.5px solid var(--border);
  color: var(--primary);
}
.cookie-btn:hover, .cookie-btn:focus {
  box-shadow: 0 2px 16px 0 rgba(23,68,95,0.11);
}
.cookie-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%,80vh);
  opacity: 0;
  min-width: 320px;
  max-width: 90vw;
  width: 390px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 12px 34px 0 rgba(23,68,95,0.17);
  z-index: 4000;
  padding: 36px 28px 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  pointer-events: none;
  transition: transform 0.32s cubic-bezier(.22,.4,.52,1), opacity 0.23s;
}
.cookie-modal.open {
  transform: translate(-50%,-50%);
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal h2 {
  color: var(--primary);
  font-size: 1.4rem;
}
.cookie-modal p {
  color: var(--text-main);
  font-size: 1.02rem;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 21px;
  margin: 9px 0 11px 0;
}
.cookie-category {
  display: flex;
  align-items: flex-start;
  gap: 13px;
}
.cookie-category label {
  font-weight: 600;
  color: var(--primary);
  font-size: 1.05rem;
}
.cookie-category input[type="checkbox"] {
  accent-color: var(--secondary);
  width: 18px;
  height: 18px;
  margin-top: 3px;
}
.cookie-category .always-on {
  font-weight: 400;
  font-size: 0.98rem;
  color: #757575;
  margin-left: 7px;
}
.cookie-modal-footer {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 11px;
}
.cookie-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: none;
  border: none;
  font-size: 1.45rem;
  color: var(--primary);
  cursor: pointer;
  transition: color 0.16s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: var(--secondary);
}

@media (max-width: 660px) {
  .cookie-modal {
    width: 96vw;
    padding: 16vw 4vw 7vw 4vw;
    min-width: 0;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 12px 12px 12px;
  }
}

/* ---- RESPONSIVE DESIGN ---- */
@media (max-width: 1260px) {
  .container { max-width: 98vw; }
}
@media (max-width: 950px) {
  .feature-grid, .card-container, .testimonial-slider, .recipe-cards, footer .content-wrapper, .content-grid {
    flex-direction: column;
    gap: 22px;
  }
  .feature-item, .card, .recipe-card, .testimonial-card, .upcoming-classes li, .tour-dates li {
    max-width: 100%;
  }
  header .container { flex-direction: row; gap: 5px; }
}
@media (max-width: 760px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.4rem; }
  .section { padding: 29px 8px; margin-bottom: 30px; }
  .testimonial-card, .feature-item, .card, .recipe-card {
    padding: 17px 12px;
  }
  .container { padding: 0 5vw; }
  .content-wrapper { gap: 18px; }
  .footer-links nav { gap: 10px; }
  .footer-social a img { width: 24px; }
}
@media (max-width: 580px) {
  .content-wrapper, .feature-grid, .recipe-cards, .testimonial-slider, .card-container {
    gap: 13px;
  }
  .hero, .hero-recipes, .hero-lesson, .hero-tour, .hero-consulenza, .hero-contact {
    padding: 36px 0 23px 0;
  }
}
@media (max-width: 768px) {
  .text-image-section, .content-grid, .feature-grid, .card-container {
    flex-direction: column;
    align-items: stretch;
  }
  .feature-item, .card, .recipe-card {
    min-width: 0;
    width: 100%;
  }
}

/* ---- ANIMATIONS & MICRO-INTERACTIONS ---- */
.cta-main, .cta-secondary, .cta-nav, .cookie-btn, .mobile-menu-toggle, .mobile-menu-close {
  transition: background 0.15s, color 0.12s, box-shadow 0.15s;
}
@media (hover: hover) {
.cta-main:hover, .cta-secondary:hover, .cta-nav:hover, .cookie-btn:hover, .mobile-menu-toggle:hover, .mobile-menu-close:hover {
  filter: brightness(0.94);
  box-shadow: 0 2px 16px 0 rgba(23,68,95,0.11);
}
}

/* ---- SCROLLBARS (minimal, optional) ---- */
::-webkit-scrollbar { width: 9px; background: var(--accent); }
::-webkit-scrollbar-thumb { background: #e6e9ed; border-radius: 5px; }

/* ---- Z-INDEX MANAGING ---- */
header, .mobile-menu, .cookie-banner, .cookie-modal { z-index: 1000; }

/* ---- UTILITY CLASSES ---- */
.text-center { text-align: center !important; }
.mt-lg { margin-top: 48px !important; }
.mt-md { margin-top: 27px !important; }
.mb-lg { margin-bottom: 48px !important; }
.mb-md { margin-bottom: 24px !important; }
.gap-lg { gap: 28px !important; }

/* ---- END ---- */
