/* ---------------------------------------------
   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;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  font-size: 16px;
  background: #F5EFE5;
}
body {
  font-family: 'Lato', Arial, sans-serif;
  font-size: 1rem;
  background: #F5EFE5;
  color: #22303B;
  line-height: 1.6;
  min-height: 100vh;
}
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: #285288;
  text-decoration: none;
  transition: color 0.2s cubic-bezier(.4,0,.2,1);
}
a:hover, a:focus {
  color: #723F1B;
  outline: none;
}
ul, ol {
  list-style-position: inside;
}
:focus {
  outline: 2px solid #D3A46E;
  outline-offset: 2px;
}

/* Fonts */
@import url('https://fonts.googleapis.com/css?family=Playfair+Display:700,900|Lato:400,700&display=swap');
h1, h2, h3, .section-title {
  font-family: 'Playfair Display', serif;
  color: #285288;
  margin-bottom: 16px;
  font-weight: 700;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.5rem;
  line-height: 1.1;
  margin-bottom: 20px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 18px;
}
h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}
h4, h5, h6 {
  font-size: 1.125rem;
}
p, ul, ol, blockquote {
  font-size: 1rem;
  color: #22303B;
  margin-bottom: 16px;
}
blockquote {
  border-left: 4px solid #D3A46E;
  background: #F5EFE5;
  padding: 18px 32px;
  font-style: italic;
  margin: 0 0 24px 0;
}
blockquote footer {
  margin-top: 12px;
  font-size: 0.95rem;
  color: #285288;
  font-style: normal;
}
strong {
  font-weight: 700;
}

/* ---------------------------------------------
   BRAND COLOR PALETTE
---------------------------------------------- */
:root {
  --primary: #723F1B;
  --secondary: #D3A46E;
  --accent: #F5EFE5;
  --corporate-blue: #285288;
  --corporate-gray: #426583;
  --background: #F5EFE5;
  --text-dark: #22303B;
  --text-light: #fff;
}

/* ---------------------------------------------
   LAYOUT CONTAINERS
---------------------------------------------- */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ---------------------------------------------
   HEADER & NAVIGATION
---------------------------------------------- */
header {
  background: #fff;
  border-bottom: 1px solid #e3e8f0;
  padding-top: 6px;
  padding-bottom: 6px;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.logo img {
  height: 48px;
  width: auto;
  display: block;
}
.main-nav {
  display: flex;
  gap: 22px;
  align-items: center;
}
.main-nav a {
  font-weight: 500;
  color: #285288;
  font-size: 1rem;
  padding: 8px 10px;
  border-radius: 6px;
  transition: background 0.18s, color 0.18s;
  position: relative;
}
.main-nav a.cta {
  background: var(--secondary);
  color: var(--primary);
  font-weight: 700;
  padding: 8px 22px;
  border-radius: 24px;
  font-family: 'Lato', Arial, sans-serif;
  font-size: 1.08rem;
  box-shadow: 0 1px 4px 0 rgba(40,82,136,0.06);
  margin-left: 14px;
}
.main-nav a.cta:hover, .main-nav a.cta:focus {
  background: var(--primary);
  color: #fff;
}
.main-nav a:hover, .main-nav a:focus {
  background: #E3EDF7;
  color: var(--primary);
}
.mobile-menu-toggle {
  background: none;
  border: none;
  font-size: 2.1rem;
  color: #285288;
  display: none;
  cursor: pointer;
  margin-left: 16px;
}

/* ---------------------------------------------
   MOBILE NAVIGATION
---------------------------------------------- */
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  bottom: 0; right: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(34,48,59, 0.92);
  z-index: 2010;
  overflow-y: auto;
  transition: transform 0.35s cubic-bezier(.57,.21,.69,1.25);
  transform: translateX(100%);
  display: flex;
  flex-direction: column;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  margin: 24px 24px 0 auto;
  background: none;
  color: #fff;
  border: none;
  font-size: 2.1rem;
  cursor: pointer;
  transition: color 0.18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 42px 0 0 0;
  align-items: flex-start;
  padding: 0 36px;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.25rem;
  padding: 12px 0;
  font-family: 'Lato', Arial, sans-serif;
  border-radius: 4px;
  font-weight: 600;
  transition: color 0.19s, background 0.19s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--secondary);
  color: var(--primary);
}

@media (max-width: 992px) {
  .main-nav a.cta {
    margin-left: 0px;
  }
}
@media (max-width: 900px) {
  header .container {
    flex-direction: row;
    gap: 12px;
  }
}
@media (max-width: 768px) {
  .main-nav {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: block;
  }
  header .container {
    flex-direction: row;
    gap: 12px;
  }
}

/* ---------------------------------------------
   MAIN LAYOUT & SECTION SPACING
---------------------------------------------- */
main {
  background: var(--background);
}
.section, section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}
.section:last-child, section:last-child {
  margin-bottom: 0;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px 0 rgba(40,82,136,0.09);
  padding: 24px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.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;
  border-radius: 12px;
  box-shadow: 0 2px 12px 0 rgba(40,82,136,0.09);
  background: #fff;
  margin-bottom: 20px;
  max-width: 670px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* For card grids (features, team, etc.) */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.feature {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 8px 0 rgba(40,82,136,0.07);
  padding: 26px 18px 22px 18px;
  flex: 1 1 240px;
  min-width: 220px;
  max-width: 290px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  transition: box-shadow 0.18s, transform 0.18s;
}
.feature img {
  width: 48px;
  height: 48px;
  margin-bottom: 8px;
  filter: saturate(0.8) brightness(0.97);
}
.feature:hover, .feature:focus-within {
  box-shadow: 0 4px 20px 0 rgba(40,82,136,0.15);
  transform: translateY(-4px) scale(1.025);
}

@media (max-width: 900px) {
  .feature-grid {
    gap: 14px;
  }
  .feature {
    flex: 1 1 180px;
    min-width: 150px;
    max-width: 95vw;
    padding: 18px 9px 12px 9px;
  }
}
@media (max-width: 600px) {
  .feature-grid {
    gap: 12px;
  }
  .feature {
    padding: 14px 7px 10px 7px;
  }
}

/* ---------------------------------------------
   HERO, CALL TO ACTION & BRAND SECTIONS
---------------------------------------------- */
.hero-section, .about-hero, .corsi-hero, .cene-hero, .degustazioni-hero, .tour-hero, .contatti-hero, .thank-you {
  background: linear-gradient(90deg, #E3EDF7 0%, #F5EFE5 100%);
  padding-top: 42px;
  padding-bottom: 50px;
  border-radius: 0 0 28px 28px;
}
.hero-section h1, .about-hero h1, .corsi-hero h1, .cene-hero h1, .degustazioni-hero h1, .tour-hero h1, .contatti-hero h1, .thank-you h1 {
  color: var(--primary);
  font-size: 2.5rem;
  margin-bottom: 14px;
}
.hero-section .tagline {
  font-size: 1.28rem;
  font-family: 'Lato', Arial, sans-serif;
  color: #285288;
  margin-bottom: 32px;
  font-weight: 500;
}
.cta, a.cta, .cta a {
  background: var(--secondary);
  color: var(--primary) !important;
  border: none;
  border-radius: 24px;
  outline: none;
  padding: 12px 36px;
  font-size: 1.08rem;
  font-family: 'Lato', Arial, sans-serif;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 2px 10px 0 rgba(40,82,136,0.06);
  display: inline-block;
  margin-top: 10px;
  transition: background 0.23s, color 0.23s, transform 0.18s, box-shadow 0.14s;
}
.cta:hover, .cta:focus, a.cta:hover, a.cta:focus {
  background: var(--primary);
  color: #fff !important;
  transform: translateY(-2px) scale(1.025);
  box-shadow: 0 4px 18px 0 rgba(40,82,136,0.12);
}

/* ---------------------------------------------
   CARDS, TESTIMONIALS & TEAM
---------------------------------------------- */
.brand-values ul {
  margin-left: 0;
  padding-left: 0;
  margin-bottom: 12px;
}
.brand-values li {
  margin-bottom: 8px;
  color: #285288;
  font-size: 1rem;
  font-family: 'Lato', Arial, sans-serif;
}
.meet-the-team-snippet, .mission-vision, .next-steps {
  margin-top: 12px;
  background: #E3EDF7;
  border-radius: 10px;
  padding: 18px 20px;
}
.team-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.team-member {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 8px 0 rgba(40,82,136,0.07);
  padding: 20px 18px 12px 18px;
  min-width: 200px;
  max-width: 270px;
  flex: 1 1 200px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 20px;
}
.team-member h3 {
  font-size: 1.08rem;
  margin-bottom: 7px;
}

@media (max-width: 760px) {
  .team-list {
    flex-direction: column;
    gap: 12px;
  }
}

.testimonials {
  background: #F5EFE5;
  border-top: 1px solid #E3EDF7;
  border-bottom: 1px solid #E3EDF7;
}
.testimonials h2 {
  margin-bottom: 22px;
}

.testimonial-card {
  margin-top: 12px;
  margin-bottom: 20px;
  background: #fff;
  box-shadow: 0 2px 12px 0 rgba(40,82,136,.09);
  border-radius: 12px;
  padding: 22px 30px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  min-width: 0;
  max-width: 670px;
  color: #22303B;
}
.testimonial-card blockquote p {
  color: #285288;
  font-size: 1.12rem;
}
.star-rating {
  color: #D3A46E;
  font-size: 1.65rem;
  font-family: 'Playfair Display', serif;
  margin-right: 10px;
  min-width: 62px;
  display: flex;
  align-items: center;
}
@media (max-width: 750px) {
  .testimonial-card {
    flex-direction: column;
    gap: 8px;
    padding: 18px 14px;
  }
}

/* ---------------------------------------------
   PRICING, SCHEDULE, BENEFITS, ETC
---------------------------------------------- */
.pricing {
  background: #F5EFE5;
  border-left: 5px solid #D3A46E;
  padding: 15px 26px;
  border-radius: 0 10px 10px 0;
  margin-bottom: 22px;
  font-size: 1.1rem;
  color: #285288;
}
.schedule {
  padding: 10px 0;
  color: #285288;
}
.benefits ul {
  margin-left: 0;
  padding-left: 0;
  list-style: disc inside;
}
.benefits li {
  margin-bottom: 8px;
  font-size: 1.03rem;
}

/* ---------------------------------------------
   FOOTER
---------------------------------------------- */
footer {
  background: #285288;
  color: #fff !important;
  padding: 38px 0 18px 0;
  margin-top: 60px;
}
footer .container {
  flex-direction: column;
  gap: 18px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-bottom: 13px;
}
.footer-nav a {
  color: #fff;
  font-size: 1rem;
  opacity: 0.92;
  transition: color 0.18s, opacity 0.17s;
  font-weight: 500;
  padding: 5px 8px;
  border-radius: 4px;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #D3A46E;
  opacity: 1;
  background: rgba(255,255,255,0.08);
}
footer p {
  opacity: 0.98;
  font-size: 0.98rem;
}

/* ---------------------------------------------
   COOKIE CONSENT (BANNER & MODALS)
---------------------------------------------- */
.cookie-banner {
  position: fixed;
  bottom: 0;  left: 0; right: 0;
  z-index: 3000;
  background: #fff;
  border-top: 2px solid #D3A46E;
  color: #22303B;
  box-shadow: 0 -4px 22px 0 rgba(40,82,136,0.085);
  padding: 22px 22px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  min-height: 60px;
  font-size: 1rem;
  transition: transform 0.4s cubic-bezier(.38,.94,.49,1.12),opacity 0.3s;
}
.cookie-banner.hide {
  opacity: 0; pointer-events: none;
  transform: translateY(100%);
}
.cookie-banner-message {
  flex: 1 1 220px;
  margin-right: 22px;
  font-size: 1rem;
  color: #22303B;
}
.cookie-banner-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.cookie-banner button, .cookie-banner .cookie-settings-btn {
  background: #285288;
  color: #fff;
  border: none;
  border-radius: 24px;
  font-size: 0.97rem;
  font-family: 'Lato', Arial, sans-serif;
  padding: 10px 26px;
  cursor: pointer;
  font-weight: 700;
  transition: background 0.19s, color 0.19s, box-shadow 0.13s;
}
.cookie-banner button.accept {
  background: var(--secondary);
  color: var(--primary);
}
.cookie-banner button.reject {
  background: #426583;
  color: #fff;
}
.cookie-banner button:hover, .cookie-banner .cookie-settings-btn:hover, .cookie-banner button:focus, .cookie-banner .cookie-settings-btn:focus {
  background: var(--primary);
  color: #fff;
}
.cookie-banner .cookie-settings-btn {
  background: #E3EDF7;
  color: #285288;
}
.cookie-banner .cookie-settings-btn:hover, .cookie-banner .cookie-settings-btn:focus {
  background: #D3A46E;
  color: var(--primary);
}

/* Cookie preferences modal */
.cookie-modal-backdrop {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(40,82,136,0.50);
  z-index: 3200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.2s;
}
.cookie-modal {
  background: #fff;
  border: 2px solid #D3A46E;
  border-radius: 18px;
  max-width: 430px;
  width: 92vw;
  padding: 40px 30px 30px 30px;
  box-shadow: 0 8px 32px 0 rgba(40,82,136,0.15);
  color: #22303B;
  display: flex;
  flex-direction: column;
  gap: 24px;
  animation: cookieModalIn 0.36s cubic-bezier(.38,.64,.21,1.26);
  position: relative;
}
@keyframes cookieModalIn {
  0% { transform: scale(0.92) translateY(20px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}
.cookie-modal h2 {
  font-size: 1.2rem;
  color: #285288;
  margin-bottom: 5px;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
  color: #285288;
  border-bottom: 1px solid #f1ebe2;
}
.cookie-category:last-child {
  border-bottom: none;
}
.cookie-modal .cookie-toggle {
  width: 38px;
  height: 22px;
  border-radius: 16px;
  background: #E3EDF7;
  position: relative;
  cursor: pointer;
  transition: background 0.18s;
  border: 1px solid #D3A46E;
}
.cookie-modal .cookie-toggle[data-checked="true"] {
  background: #D3A46E;
}
.cookie-modal .cookie-toggle::before {
  content: '';
  display: block;
  position: absolute;
  left: 3px; top: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: left 0.18s, background 0.19s;
  box-shadow: 0 1px 8px 0 rgba(40,82,136,0.10);
}
.cookie-modal .cookie-toggle[data-checked="true"]::before {
  left: 18px;
  background: #fff;
}
.cookie-modal .cookie-toggle[data-disabled="true"] {
  background: #ccc;
  opacity: 0.7;
  cursor: not-allowed;
}
.cookie-modal .cookie-actions {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
}
.cookie-modal .cookie-actions button {
  padding: 10px 26px;
}
.cookie-modal .cookie-modal-close {
  position: absolute;
  top: 16px; right: 18px;
  background: none;
  border: none;
  color: #285288;
  font-size: 1.6rem;
  cursor: pointer;
}
.cookie-modal .cookie-modal-close:hover {
  color: #D3A46E;
}

@media (max-width: 700px) {
  .cookie-banner {
    flex-direction: column;
    gap: 18px;
    padding: 16px 10px;
  }
}

/* ---------------------------------------------
   RESPONSIVE MEDIA QUERIES
---------------------------------------------- */
@media (max-width: 900px) {
  h1 {
    font-size: 2.05rem;
  }
  h2 {
    font-size: 1.32rem;
  }
  .container {
    padding: 0 12px;
  }
  .hero-section, .about-hero, .corsi-hero, .cene-hero, .degustazioni-hero, .tour-hero, .contatti-hero {
    padding-top: 28px; padding-bottom: 32px;
    border-radius: 0 0 18px 18px;
  }
}
@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
  .hero-section, .about-hero, .corsi-hero, .cene-hero, .degustazioni-hero, .tour-hero, .contatti-hero {
    padding-top: 18px; padding-bottom: 20px;
    border-radius: 0 0 12px 12px;
  }
  .section, section {
    margin-bottom: 36px;
    padding: 28px 4px;
  }
  .content-wrapper, .text-section {
    gap: 19px;
  }
}
@media (max-width: 600px) {
  html {
    font-size: 14px;
  }
  h1 {
    font-size: 1.48rem;
  }
  h2 {
    font-size: 1.08rem;
  }
  .container {
    padding: 0 3vw;
  }
  .footer-nav {
    gap: 10px;
    flex-direction: column;
    align-items: flex-start;
  }
}
/* Reset for unwanted extra margins in HTML */
.text-section ul, .text-section ol {
  margin-left: 0;
  padding-left: 19px;
}
.text-section li {
  margin-bottom: 7px;
}

/* ---------------------------------------------
   MISCELLANEOUS STYLES
---------------------------------------------- */
.return-home-btn a {
  margin-top: 10px;
}
.confirmation {
  font-size: 1.18rem;
  color: #285288;
  margin-bottom: 18px;
}
.next-steps ul {
  list-style: disc inside;
}
.next-steps li {
  margin-bottom: 7px;
}

.map-snippet {
  margin-top: 8px;
  background: #E3EDF7;
  border-radius: 10px;
  padding: 14px 18px;
  color: #285288;
  font-size: 0.97rem;
}

/* Focused link visual improvements */
a:focus {
  outline: 2px solid #D3A46E;
  background: #E3EDF7;
}

/* ---------------------------------------------
   ACCESSIBILITY: Hide visually hidden, ARIA
---------------------------------------------- */
.visually-hidden {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden;
  clip: rect(1px,1px,1px,1px);
  white-space: nowrap;
  border: 0; padding:0;
}

/* ---------------------------------------------
   TRANSITION EFFECTS
---------------------------------------------- */
.card, .cta, .feature, .main-nav a, .footer-nav a, .cookie-banner button, .cookie-banner .cookie-settings-btn {
  transition: box-shadow 0.15s, background 0.2s, color 0.18s, transform 0.18s;
}
footer p {
  color: #ccc;
}