/* ====================================================================
   SAPORI DI BOLOGNA - VINTAGE RETRO CSS THEME
   By: Senior CSS Developer & UI Designer - Mobile-first, Flexbox ONLY
   ==================================================================== */
/* ------------- 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, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, main, 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 {
  box-sizing: border-box;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  line-height: 1.6;
  background: #FFF8F0;
  color: #27323A;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 16px;
  min-height: 100vh;
}
img {
  max-width: 100%; height: auto; display: block;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
  cursor: pointer;
}
ul, ol {
  list-style: none;
  margin: 0; padding: 0;
}
strong, b {
  font-weight: bold;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  outline: none;
}

/* ------------- CUSTOM VINTAGE RETRO FONTS ------------- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;900&family=Montserrat:wght@400;600;700&display=swap');

:root {
  --primary: #AF2A1A;
  --secondary: #FFD67A;
  --accent: #27323A;
  --background: #FFF8F0;
  --retro-green: #6D8856;
  --retro-blue: #5B7D87;
  --retro-orange: #DE8144;
  --retro-yellow: #FFD67A;
  --retro-cream: #FFEFCB;
  --retro-brown: #875C29;
  --display-font: 'Playfair Display', serif;
  --body-font: 'Montserrat', Arial, sans-serif;
}

/* ------------- LAYOUT: CONTAINERS, FLEXBOX ------------- */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 18px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--retro-cream);
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(39, 50, 58, 0.07);
  margin-bottom: 20px;
  padding: 30px 22px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border: 2px solid var(--retro-yellow);
}
.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;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 28px;
  margin-bottom: 20px;
  background: #FFFFFF;
  border-left: 5px solid var(--primary);
  border-radius: 13px 10px 13px 10px;
  box-shadow: 0 7px 28px rgba(175, 42, 26, 0.06);
  transition: box-shadow 0.18s, border-color 0.18s;
}
.testimonial-card:hover {
  box-shadow: 0 10px 40px rgba(39,50,58,0.12);
  border-color: var(--retro-orange);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.services-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.service-item {
  flex: 1 1 260px;
  background: var(--retro-cream);
  border-radius: 12px;
  box-shadow: 0 1px 10px rgba(39, 50, 58, 0.08);
  padding: 26px 18px;
  margin-bottom: 20px;
  border: 2px solid var(--retro-orange);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: box-shadow 0.18s, border-color 0.18s;
}
.service-item:hover {
  box-shadow: 0 6px 18px rgba(175,42,26,0.08);
  border-color: var(--retro-green);
}
.contact-details ul {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 16px;
}

/* --- Desktop row layout for flex containers --- */
@media (min-width: 900px) {
  .services-list { flex-direction: row; }
  .content-grid { flex-direction: row; }
  .text-image-section { flex-direction: row; }
  .card-container { flex-direction: row; }
}
/* --- Column stacking on mobile/tablet --- */
@media (max-width: 899.9px) {
  .services-list,
  .card-container,
  .text-image-section,
  .content-grid { flex-direction: column !important; }
}


/* ------------- TYPOGRAPHY (VINTAGE RETRO) ------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--display-font);
  font-weight: 900;
  color: var(--primary);
  letter-spacing: -0.5px;
}
h1 {
  font-size: 2.2rem;
  line-height: 1.13;
  margin-bottom: 12px;
}
h2 {
  font-size: 1.5rem;
  line-height: 1.2;
  margin-bottom: 8px;
  color: var(--accent);
}
h3 {
  font-size: 1.14rem;
  line-height: 1.18;
  color: var(--primary);
}
h4, h5, h6 {
  font-size: 1rem;
  color: var(--accent);
}
p, li, ol, ul, span, label {
  font-family: var(--body-font);
  font-size: 1rem;
  word-break: break-word;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 10px;
}
.tagline {
  font-size: 1.18rem;
  font-family: var(--body-font);
  color: var(--retro-brown);
  font-style: italic;
  margin-bottom: 18px;
}
.testimonial-card p {
  font-size: 1.1rem;
  color: var(--accent);
  font-family: var(--display-font);
}
.testimonial-card span {
  font-size: 0.98rem;
  color: var(--primary);
  font-family: var(--body-font);
  letter-spacing: .4px;
}

/* ------------- RETRO COLORS & DECORATIVE ELEMENTS ------------- */
body {
  background: var(--background);
}
section {
  border-radius: 16px;
  background: #FFEFCB;
  box-shadow: 0 2px 24px rgba(175, 42, 26, 0.02);
  margin-bottom: 38px;
}
section:nth-child(2n) {
  background: var(--retro-yellow);
}
section .content-wrapper {
  border-left: 7px dotted var(--retro-orange);
  padding-left: 22px;
}

/* ------------- HEADER & NAVIGATION (Retro Style) ------------- */
header {
  background: var(--retro-cream);
  box-shadow: 0 1px 10px rgba(39, 50, 58, 0.07);
  border-bottom: 3px solid var(--primary);
  position: sticky;
  top: 0;
  z-index: 100;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 20px;
}
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
.desktop-nav a {
  font-family: var(--body-font);
  font-weight: 600;
  color: var(--accent);
  font-size: 1rem;
  padding: 5px 9px;
  border-radius: 8px;
  position: relative;
  transition: background 0.18s, color 0.18s;
}
.desktop-nav a:hover,
.desktop-nav a:focus {
  background: var(--retro-orange);
  color: #fff;
}
.cta-btn {
  background: var(--primary);
  color: #fff;
  font-family: var(--display-font);
  font-size: 1.08rem;
  letter-spacing: 0.7px;
  font-weight: 700;
  border: none;
  border-radius: 9px 16px 9px 16px;
  padding: 10px 24px;
  margin-left: 6px;
  cursor: pointer;
  box-shadow: 0 2px 9px rgba(175,42,26,0.13);
  transition: background 0.17s, box-shadow 0.19s, transform 0.16s;
  outline: 2px solid transparent;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--retro-brown);
  color: var(--retro-yellow);
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 5px 24px rgba(175,42,26,0.19);
  outline: 2px solid var(--retro-yellow);
}

/* Hide mobile menu on desktop */
.mobile-menu-toggle {
  display: none;
}
@media (max-width: 990px) {
  .desktop-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 2.1rem;
    color: var(--primary);
    cursor: pointer;
    border-radius: 6px;
    padding: 7px 13px;
    margin-left: 14px;
    transition: background 0.19s;
  }
  .mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
    background: var(--retro-yellow);
    color: var(--retro-brown);
  }
}

/* MOBILE MENU */
.mobile-menu {
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  height: 100vh;
  width: 100vw;
  background: #FFF8F0;
  box-shadow: 0 0 20px 4px rgba(175,42,26,0.08);
  transform: translateX(-100vw);
  transition: transform 0.4s cubic-bezier(.68,-0.55,.27,1.55);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 22px 32px 32px 22px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--primary);
  align-self: flex-end;
  margin-bottom: 24px;
  cursor: pointer;
  border-radius: 7px;
  padding: 6px 13px;
  transition: background 0.17s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--retro-orange);
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
}
.mobile-nav a {
  font-family: var(--body-font);
  color: var(--accent);
  font-size: 1.22rem;
  font-weight: 700;
  letter-spacing: 0.2px;
  border-radius: 7px;
  padding: 12px 5px 12px 0;
  transition: background 0.17s, color 0.17s;
  outline: none;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--retro-yellow);
  color: var(--primary);
}
@media (min-width: 991px) {
  .mobile-menu {
    display: none !important;
  }
}

/* ------------- HERO & MAIN CTA ------------- */
.hero {
  background: linear-gradient(96deg, var(--retro-cream) 77%, var(--retro-yellow) 100%);
  padding: 58px 0 46px 0;
  border-radius: 0 0 22px 22px;
  box-shadow: 0 2px 22px rgba(175,42,26,0.08);
}
.hero h1 {
  color: var(--primary);
  font-size: 2.4rem;
}
.hero .cta-btn {
  margin-top: 24px;
  font-size: 1.09rem;
}

/* ------------- FEATURE LISTS & ICONS ------------- */
section ul {
  margin-top: 2px;
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
section ul li {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--accent);
  font-family: var(--body-font);
  font-size: 1.07rem;
  background: none;
  padding: 0 0 0 0;
}
section ul li img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--retro-yellow);
  padding: 3px;
  margin-right: 2px;
}
ol {
  padding-left: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ------------- FOOTER ------------- */
footer {
  background: var(--accent);
  color: #fff;
  padding: 36px 0 20px 0;
  margin-top: 48px;
  box-shadow: 0 -2px 17px rgba(39,50,58,0.08);
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  justify-content: center;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin: 16px 0 10px 0;
  justify-content: center;
}
.footer-nav a {
  color: var(--retro-yellow);
  font-size: 0.95rem;
  border-radius: 8px;
  padding: 3px 9px;
  font-family: var(--body-font);
  font-weight: 600;
  transition: background 0.17s, color 0.17s;
}
.footer-nav a:hover, .footer-nav a:focus {
  background: var(--retro-orange);
  color: #FFF8F0;
}
.footer-contact {
  font-size: 0.95rem;
  color: #fff;
  opacity: 0.84;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  justify-content: center;
  text-align: center;
}
footer img {
  height: 44px;
  margin-bottom: 6px;
}

/* ------------- COOKIE CONSENT BANNER ------------- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #FFF8F0;
  border-top: 2px solid var(--primary);
  box-shadow: 0 -2px 18px rgba(175,42,26,0.12);
  padding: 20px 14px 22px 14px;
  width: 100%;
  min-height: 72px;
  font-size: 1rem;
  font-family: var(--body-font);
  transition: transform 0.31s cubic-bezier(.7,.01,.71,.97);
  gap: 26px;
}
.cookie-banner--hidden {
  transform: translateY(130%);
  pointer-events: none;
  opacity: 0.2;
}
.cookie-banner-content {
  flex: 1 1 auto;
  color: var(--accent);
  font-size: 1rem;
}
.cookie-btn, .cookie-btn-alt {
  font-family: var(--body-font);
  font-size: 0.99rem;
  font-weight: 600;
  border-radius: 7px;
  border: 2px solid transparent;
  padding: 8px 16px;
  margin-left: 10px;
  cursor: pointer;
  transition: background 0.19s, color 0.17s, border-color 0.14s;
  box-shadow: 0 1px 7px rgba(175,42,26,0.07);
}
.cookie-btn {
  background: var(--primary);
  color: #fff;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--retro-yellow);
  color: var(--retro-brown);
  border-color: var(--primary);
}
.cookie-btn-alt {
  background: var(--retro-yellow);
  color: var(--primary);
  border-color: var(--primary);
}
.cookie-btn-alt:hover, .cookie-btn-alt:focus {
  background: var(--retro-orange);
  color: #fff;
}
.cookie-banner-settings {
  color: var(--retro-green);
  background: transparent;
  border: none;
  font-weight: 600;
  border-radius: 6px;
  margin-left: 7px;
  padding: 7px 10px;
  cursor: pointer;
  transition: background 0.17s, color 0.18s;
}
.cookie-banner-settings:hover, .cookie-banner-settings:focus {
  background: var(--retro-yellow);
  color: var(--primary);
}

/* COOKIE MODAL POPUP */
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(39,50,58,0.54);
  z-index: 99999;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: auto;
  opacity: 1;
  transition: background 0.28s;
}
.cookie-modal-container {
  background: #fff;
  width: 96vw;
  max-width: 410px;
  border-radius: 15px 15px 0 0;
  box-shadow: 0 -3px 16px rgba(39,50,58,0.19);
  padding: 22px 20px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: slideUpIn .36s ease;
  margin-bottom: 0;
}
@media (min-width: 600px) {
  .cookie-modal-container {
    margin-bottom: 37vh;
  }
}
@keyframes slideUpIn {
  from {
    transform: translateY(80%);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}
.cookie-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.cookie-modal-header h2 {
  font-size: 1.19rem;
  color: var(--primary);
}
.cookie-modal-close {
  background: none;
  border: none;
  font-size: 1.29rem;
  color: var(--primary);
  cursor: pointer;
  border-radius: 5px;
  padding: 3px 9px;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: var(--retro-yellow);
  color: var(--retro-brown);
}
.cookie-modal-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-family: var(--body-font);
  color: var(--accent);
}
.cookie-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 0;
}
.cookie-toggle label {
  font-size: 1.05rem;
  color: var(--primary);
}
.cookie-toggle input[type="checkbox"] {
  accent-color: var(--primary);
  width: 20px;
  height: 20px;
  border-radius: 3px;
  margin-inline-start: 8px;
}
.cookie-modal-actions {
  display: flex;
  gap: 13px;
  justify-content: flex-end;
}

/* ------------- RESPONSIVE ADAPTATION ------------- */
@media (max-width: 640px) {
  .container, .footer .container {
    padding: 0 6px;
  }
  .section {
    padding: 24px 7px;
    margin-bottom: 36px;
  }
  section .content-wrapper {
    padding-left: 6px;
    border-left-width: 4px;
  }
  h1 {
    font-size: 1.38rem;
  }
  h2 {
    font-size: 1.07rem;
  }
  .hero {
    padding: 31px 0 24px 0;
  }
}
@media (max-width: 480px) {
  .section {
    padding: 9vw 2vw;
    margin-bottom: 24px;
  }
  .testimonial-card, .service-item, .card {
    padding: 11px 6px;
  }
}

/* ------------- UTILITIES: ANIMATIONS, SHADOWS, ETC ------------- */
.card, .service-item, .testimonial-card, .cookie-modal-container {
  transition: box-shadow 0.19s, border-color 0.21s, transform 0.18s;
}
.card:hover, .service-item:hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 8px 28px rgba(175,42,26,0.15);
}
.cta-btn:active, .cookie-btn:active {
  transform: scale(0.96);
}

/* VISUAL DECOR */
h1, h2 {
  text-shadow: 1px 1px 0 #FFEFCB, 0 1px 0 #FFD67A;
}
.cta-btn, .cookie-btn {
  box-shadow: 0 2px 8px rgba(175,42,26,0.09);
}

/* ------------- FOCUS STATES: ACCESSIBILITY ------------- */
a:focus, button:focus, .cta-btn:focus, .cookie-btn:focus {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

/* ------------- MISC RETRO/NOSTALGIC ELEMENTS ------------- */
.card, .testimonial-card, .service-item {
  box-shadow: 0 2px 12px rgba(39,50,58,0.12);
  border-radius: 12px;
}
.service-item span {
  font-size: 0.96em;
  color: var(--retro-brown);
  background: var(--retro-yellow);
  border-radius: 7px;
  padding: 3px 7px;
  margin-left: 6px;
}

/* ------------- SPACING BETWEEN CARDS/SECTIONS ------------- */
.section, .card, .testimonial-card, .service-item {
  margin-bottom: 20px;
}
.card-container, .services-list, .content-grid {
  gap: 24px !important;
}

/* Prevent absolute positioning for content, but allow decor */
.card, .service-item, .testimonial-card {
  position: relative;
  z-index: 1;
}

/* ==== END CSS ==== */
