/* ======= 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;
}
body, html {height: 100%;}
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
  display: block;
}
ol, ul {
  list-style: none;
}
blockquote, q {
  quotes: none;
}
blockquote:before, blockquote:after, q:before, q:after {
  content: '';
  content: none;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
button, input, select, textarea {
  font: inherit;
  background: none;
  border: none;
  color: inherit;
  outline: none;
  box-sizing: border-box;
}
a {
  color: inherit;
  text-decoration: none;
}

/* ======= BASE TYPOGRAPHY & COLORS ======= */
:root {
  --brand-primary: #254D32;
  --brand-secondary: #F2E8CF;
  --brand-accent: #D36527;
  --brand-accent-dark: #B04A0E;
  --text-dark: #2C2C2C;
  --text-light: #FBFAF9;
  --muted-bg: #F8F5F1;
  --shadow: 0 2px 8px 0 rgba(60, 46, 19, 0.04);
  --radius: 12px;
  --radius-sm: 8px;
}
html {
  font-size: 16px;
  background: var(--muted-bg);
}
body {
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  color: var(--text-dark);
  background: var(--muted-bg);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  color: var(--brand-primary);
  font-weight: 700;
  line-height: 1.13;
}
h1 { font-size: 2.75rem; margin-bottom: 24px; letter-spacing: -1px; }
h2 { font-size: 2rem; margin-bottom: 16px; letter-spacing: -0.5px; }
h3 { font-size: 1.45rem; margin-bottom: 14px; }
h4, h5, h6 {font-size: 1.1rem; font-weight:600;}
p {
  font-size: 1.05rem;
  color: var(--text-dark);
  margin-bottom: 18px;
  font-family: 'Georgia', 'Times New Roman', Times, serif;
}
strong {font-weight: 700; color: var(--brand-primary);}
em {font-style: italic;}

ul, ol {
  margin-bottom: 18px;
  font-size: 1.05rem;
}
ul li, ol li { margin-bottom: 10px; }

.brand-tagline {
  display: block;
  margin-top: 18px;
  font-size: 1.2rem;
  color: var(--brand-accent-dark);
  font-family: 'Georgia', serif;
  letter-spacing: 0.5px;
  font-style: italic;
}

/* ====== LAYOUT CONTAINERS & FLEXBOX ====== */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 22px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: box-shadow .3s;
}
.section:not(.hero):hover {
  box-shadow: 0 4px 16px rgba(60,46,19,0.11);
}
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-secondary);
  min-height: 320px;
  border-radius: 0 0 var(--radius) var(--radius);
  margin-bottom: 50px;
}
.hero .container {justify-content: center;}
.hero h1 {color: var(--brand-primary);}
.hero p {color: var(--brand-accent-dark);font-size: 1.125rem; margin-bottom: 24px;}

/* ====== FLEX GRID PATTERNS (NO GRID, NO COLUMNS) ====== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  flex: 1 1 280px;
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  padding: 28px 20px;
  transition: box-shadow .28s, transform .18s;
}
.card:hover {
  box-shadow: 0 8px 20px rgba(37,77,50,0.15);
  transform: translateY(-4px) scale(1.0125);
}
.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;
  margin-bottom: 24px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  background: var(--brand-secondary);
  padding: 20px 28px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  box-shadow: var(--shadow);
  font-size: 1.04rem;
  color: #1f2c23;
  max-width: 440px;
}
.testimonial-card p {
  color: #1f2c23;
  font-style: italic;
  font-size: 1.12rem;
}
.testimonial-card span {
  font-size: 0.98rem;
  color: var(--brand-accent-dark);
  letter-spacing: 0.1px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ====== FEATURE GRID FOR ICONED FEATURES ======= */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px 24px;
  justify-content: flex-start;
  margin-bottom: 28px;
}
.feature-grid li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  background: var(--brand-secondary);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  padding: 20px 16px 18px 16px;
  width: 230px;
  min-height: 146px;
  transition: box-shadow .25s, transform .15s;
  font-size: 1rem;
}
.feature-grid li:hover {
  box-shadow: 0 8px 20px rgba(37,77,50,0.15);
  transform: translateY(-2px);
}
.feature-grid img {
  width: 42px;
  height: 42px;
  margin-bottom: 8px;
}

/* ====== BUTTONS ====== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 30px;
  font-family: 'Georgia', serif;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 36px;
  background: var(--brand-primary);
  color: #fff;
  border: none;
  box-shadow: 0 1px 3px rgba(37,77,50,0.09);
  cursor: pointer;
  transition: background .15s, transform .14s, box-shadow .17s;
  margin: 8px 0;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--brand-accent-dark);
  color: #fff;
  transform: translateY(-1px) scale(1.021);
  box-shadow: 0 3px 10px rgba(37,77,50,0.13);
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 26px;
  font-family: 'Georgia', serif;
  font-size: 1rem;
  border-radius: 36px;
  background: transparent;
  color: var(--brand-primary);
  border: 2px solid var(--brand-primary);
  font-weight: 700;
  margin: 8px 0;
  box-shadow: none;
  cursor: pointer;
  transition: background .12s, border-color .15s, color .13s, transform .14s;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: var(--brand-accent);
  color: #fff;
  border-color: var(--brand-accent-dark);
  transform: translateY(-1px) scale(1.01);
}

/* ====== HEADER & MAIN NAV ====== */
header {
  background: #fff;
  box-shadow: 0 2px 16px rgba(37,77,50,0.04);
  border-bottom-left-radius: var(--radius);
  border-bottom-right-radius: var(--radius);
  padding-top: 12px;
  position: relative;
  z-index: 9;
}
header .container {display: flex; flex-direction: column;}
.content-wrapper {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
header img[alt="Magio di Sso"] {
  height: 48px;
  width: auto;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 25px;
}
.main-nav a {
  font-family: 'Georgia', serif;
  font-size: 1.05rem;
  color: var(--brand-primary);
  padding: 6px 10px;
  border-radius: 6px;
  position: relative;
  transition: background 0.11s, color .13s;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--brand-secondary);
  color: var(--brand-accent);
}

/* ====== FOOTER ====== */
footer {
  background: #fff;
  border-top: 2px solid var(--brand-secondary);
  border-bottom-left-radius: var(--radius);
  border-bottom-right-radius: var(--radius);
  padding: 32px 0 18px 0;
  font-size: 0.99rem;
  color: var(--brand-primary);
  box-shadow: 0 -2px 14px rgba(37,77,50,0.03);
}
footer nav {
  display: flex;
  gap: 20px;
  margin-bottom: 8px;
}
footer nav a {
  color: var(--brand-accent-dark);
  font-weight: 700;
  font-size: 0.99rem;
  transition: color .13s;
}
footer nav a:hover, footer nav a:focus {
  color: var(--brand-primary);
}
footer p {
  color: #3b463d;
  font-size: 0.96rem;
}
footer img[alt="Magio di Sso"] {
  height: 36px;
}

/* ====== FORM ELEMENTS ====== */
input[type="text"], select {
  width: 100%;
  max-width: 350px;
  padding: 12px 14px;
  font-size: 1.04rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid #d7d3c5;
  background: #fffaf4;
  color: #333;
  margin-bottom: 16px;
  transition: border-color .17s, box-shadow .17s;
  box-shadow: none;
}
input[type="text"]:focus, select:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 2px var(--brand-secondary);
}
label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--brand-accent-dark);
  margin-right:6px;
}

/* ====== SPECIAL SECTIONS ====== */
.map-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-secondary);
  color: var(--brand-primary);
  height: 160px;
  border-radius: var(--radius-sm);
  font-family: 'Georgia', serif;
  font-size: 1.08rem;
  font-style: italic;
  margin-bottom: 18px;
  box-shadow: var(--shadow);
}
.privacy-note {
  margin: 16px 0 0 0;
  font-size: 0.98rem;
  color: #736c57;
  font-style: italic;
}

.social-links {
  display: flex;
  gap: 16px;
  margin-bottom: 10px;
}
.social-links a {
  display: flex;
  align-items: center;
  font-size: 1rem;
  color: var(--brand-accent);
  font-weight: bold;
  text-decoration: underline;
  transition: color .12s;
}
.social-links a:hover { color: var(--brand-primary); }

.newsletter-signup {
  background: var(--brand-secondary);
  border-radius: var(--radius-sm);
  padding: 16px 22px;
  margin-top: 12px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.service-price {
  font-size: 1.01rem;
  color: var(--brand-primary);
  background: #efe9e1;
  border-radius: 7px;
  padding: 2px 10px;
  font-family: 'Georgia', serif;
  font-weight: bold;
  margin-bottom: 6px;
}

.team-bios {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 10px;
}
.team-bios h3 {margin-bottom: 6px; font-size: 1.09rem;}

.contact-instructions,
.privacy-note { margin-bottom: 8px; }

/* ===== MOBILE NAVIGATION / BURGER MENU ===== */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 24px;
  right: 22px;
  z-index: 3000;
  background: var(--brand-primary);
  color: #fff;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 2rem;
  align-items: center;
  justify-content: center;
  transition: background .2s, color .13s, box-shadow .17s;
  box-shadow: 0 2px 10px rgba(44,41,30,0.13);
  cursor: pointer;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--brand-accent-dark);
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 85vw;
  max-width: 340px;
  background: #fff;
  box-shadow: -6px 0 36px rgba(37,77,50,0.14);
  transform: translateX(100%);
  transition: transform .34s cubic-bezier(.68,.2,.33,1.05);
  z-index: 4000;
  padding: 14px 0 0 0;
  overflow-y: auto;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  border: none;
  color: var(--brand-primary);
  font-size: 2.1rem;
  margin-right: 18px;
  margin-bottom: 16px;
  cursor: pointer;
  border-radius: 50%;
  padding: 0 4px;
  transition: background .15s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--brand-secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
  padding-left: 28px;
  padding-top: 12px;
  margin-bottom: 18px;
}
.mobile-nav a {
  color: var(--brand-accent-dark);
  padding: 10px 0;
  border-radius: 3px;
  font-family: 'Georgia', serif;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: .5px;
  transition: color .11s, background .14s;
  min-width: 130px;
}
.mobile-nav a:active,
.mobile-nav a:focus,
.mobile-nav a:hover {
  color: var(--brand-primary);
  background: var(--brand-secondary);
}
.mobile-menu {
  box-shadow: -3px 0 30px rgba(37,77,50,0.18);
}

/* ===== COOKIE CONSENT BANNER & MODAL ===== */
.cookie-banner {
  position: fixed;
  left: 0; right:0; bottom: 0;
  width: 100%;
  background: #fff7ec;
  color: #1e3321;
  box-shadow: 0 -2px 16px rgba(160,110,73,0.13);
  padding: 24px 18px 24px 18px;
  z-index: 3200;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
  transition: transform .38s cubic-bezier(.78,.21,.1,1.03);
  transform: translateY(0%);
  font-size: 1.01rem;
}
.cookie-banner.hide { transform: translateY(120%); }
.cookie-banner b {color: var(--brand-primary); font-weight:700;}

.cookie-banner-buttons {
  display: flex;
  gap: 16px;
  margin-top: 4px;
  flex-wrap: wrap;
}
.cookie-btn {
  font-family: 'Georgia', serif;
  font-size: 1rem;
  border-radius: 32px;
  padding: 8px 24px;
  cursor: pointer;
  border: none;
  margin-right: 0;
  margin-bottom: 0;
  box-shadow: 0 1px 3px rgba(37,77,50,0.08);
  transition: background .13s, color .13s;
}
.cookie-btn.accept {
  background: var(--brand-primary);
  color: #fff;
}
.cookie-btn.accept:hover,
.cookie-btn.accept:focus {
  background: var(--brand-accent-dark);
}
.cookie-btn.reject {
  background: #ede0c7;
  color: var(--brand-accent-dark);
  border: 1.5px solid var(--brand-accent-dark);
}
.cookie-btn.reject:hover,
.cookie-btn.reject:focus {
  background: var(--brand-accent-dark);
  color: #fff;
  border-color: var(--brand-accent-dark);
}
.cookie-btn.settings {
  background: transparent;
  border: 1.5px solid var(--brand-accent-dark);
  color: var(--brand-accent-dark);
}
.cookie-btn.settings:hover,
.cookie-btn.settings:focus {
  background: #fffaf4;
}

/* Cookie Modal */
.cookie-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 5000;
  background: rgba(37,77,50,0.21);
  align-items: center;
  justify-content: center;
  animation: cookie-overlay-fadein .38s;
}
.cookie-modal-overlay.open {
  display: flex;
}
@keyframes cookie-overlay-fadein {
  from { opacity: 0;} to {opacity:1;}
}
.cookie-modal {
  background: #fffaf4;
  border-radius: var(--radius);
  padding: 40px 32px 32px 32px;
  min-width: 330px;
  max-width: 97vw;
  box-shadow: 0 10px 35px 0 rgba(160,110,73,0.18);
  animation: cookie-modal-show .36s cubic-bezier(.18,1.19,.68,1.04);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
@keyframes cookie-modal-show {
  from { opacity: 0; transform: scale(.93) translateY(12px);} to {opacity:1; transform: scale(1) translateY(0);}
}
.cookie-modal h3 {
  margin-bottom: 18px;
}
.cookie-pref-group {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-bottom: 18px;
}
.cookie-pref-label {
  font-size: 1.05rem;
  color: var(--brand-accent-dark);
  min-width: 132px;
}
.cookie-toggle {
  width: 42px;
  height: 24px;
  border-radius: 16px;
  background: #ddd6c9;
  position: relative;
  display: inline-block;
  vertical-align: middle;
  cursor: pointer;
  transition: background .19s;
}
.cookie-toggle[aria-checked="true"] {
  background: var(--brand-primary);
}
.cookie-toggle-switch {
  display: block;
  position: absolute;
  top: 2px; left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(44,41,30,0.06);
  transition: left .18s;
}
.cookie-toggle[aria-checked="true"] .cookie-toggle-switch {
  left: 20px;
}
.cookie-modal-close {
  position: absolute;
  top: 18px;
  right: 22px;
  background: none;
  border: none;
  color: var(--brand-accent-dark);
  font-size: 1.5rem;
  cursor: pointer;
  border-radius: 50%;
  padding: 0px 3px;
}
.cookie-modal-actions {
  display: flex;
  gap: 16px;
  margin-top: 22px;
}

/* ===== GENERAL SPACING (ENSURE NO OVERLAPS) ===== */
main {
  margin: 0 auto 52px auto;
  min-height: 55vh;
}
section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
ul, ol { margin-left: 24px; }
ul li, ol li {margin-bottom: 8px;}

/* ===== CATALOGO SELECT & FILTER ===== */
select {
  min-width: 120px;
  max-width: 210px;
}

/* ===== RESPONSIVE (MOBILE FIRST) ===== */
@media (max-width: 1024px) {
  .container { max-width: 98vw; }
  .feature-grid li { width: 210px; }
}
@media (max-width: 900px) {
  .content-wrapper {flex-direction: column; align-items: flex-start; gap: 18px;}
  .card-container, .content-grid, .feature-grid, .team-bios {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 20px;
  }
  .feature-grid li {width: 98vw; max-width: 340px;}
  .card {min-width: 90vw;}
}
@media (max-width: 768px) {
  h1 {font-size: 2.1rem;}
  h2 {font-size: 1.35rem;}
  .container { padding: 0 8px; }
  nav.main-nav {gap: 13px;}
  .content-wrapper {flex-direction: column; gap: 13px;}
  .section, section {padding: 28px 5px; }
  .feature-grid, .team-bios {gap: 14px;}
  .feature-grid li { width: 100%; min-width: 0; max-width: 98vw;}
}
@media (max-width: 650px) {
  .mobile-menu-toggle { display: flex !important; }
  .main-nav, .btn-primary[href*='Prenota'], header .btn-primary {
    display: none !important;
  }
  header .content-wrapper { gap:14px; }
  .content-wrapper {flex-direction: column; }
  .section, section {padding: 18px 3px;}
  .container { padding: 0 3vw;}
}
@media (max-width: 520px) {
  h1 {font-size: 1.22rem;}
  h2 {font-size: 1rem;}
  .hero {min-height: 180px;}
  .feature-grid, .team-bios { gap:7px;}
  section, .section {padding: 12px 0; }
  .card, .feature-grid li, .testimonial-card {padding: 12px 8px; font-size:0.99rem;}
}
@media (max-width: 520px) {
  .cookie-modal {
    min-width: 95vw;
    padding: 14vw 3vw 12vw 4vw;
  }
}

/* ===== MICRO-ANIMATIONS & FOCUS STATES ===== */
:focus-visible {
  outline: 2px solid var(--brand-accent-dark);
  outline-offset: 2px;
  border-radius: 6px;
}
a:focus {
  outline: 2.5px solid var(--brand-accent);
}
button:active {
  transform: scale(.98);
}

/* ===== ELEGANT, CLASSIC VISUALS & DECOR ===== */
.card, .testimonial-card, .feature-grid li, .newsletter-signup, .map-placeholder {
  /* Subtle light border for elegance */
  border: 1px solid #ebe8dd;
}
.card {
  background: #fffaf8;
  border-radius: var(--radius-sm);
}
.testimonial-card {
  border: 1.5px solid #e4dec7;
}

hr {
  border: none;
  border-bottom: 1px solid #e8e2d4;
  margin: 30px 0 26px 0;
}

/* ==== UTILITIES ==== */
.text-center {text-align: center;}
.text-left {text-align: left;}
.text-right {text-align: right;}

.gap-8 { gap: 8px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.gap-32 { gap: 32px; }

.no-shadow { box-shadow: none !important; }
.d-flex { display: flex !important; }
.flex-col { flex-direction: column !important; }
.flex-row { flex-direction: row !important; }
.align-center { align-items: center !important; }
.align-start {align-items: flex-start !important;}
.justify-between{justify-content:space-between;}
.mb-24 { margin-bottom: 24px !important; }
.mt-16 { margin-top: 16px; }


/* ===== VISUAL HIERARCHY: TYPOGRAPHY SCALE ===== */
.display-1{font-size:2.75rem;line-height:1.13;font-family:'Georgia',serif;}
.display-2{font-size:2rem;line-height:1.18;}
.display-3{font-size:1.45rem;line-height:1.18;}
.display-4{font-size:1.1rem;line-height:1.21;}

