/* =======================================================================
   Sapori di Torino – Scandinavian Clean Style – style.css (2024)
   =======================================================================
   BRAND: Sapori di Torino
   FLEXBOX ONLY – NO GRID OR COLUMNS – SCANDINAVIAN CLEAN
   Primary:   #2A2921  |  Secondary (backgrounds): #FFFFFF  | Accent: #DE604E
   Highlight: #F0BF59 for secondary highlights
   Fonts:    'Cormorant Garamond', 'Nunito', Arial, sans-serif
   ======================================================================= */

/* === CSS RESET & NORMALIZATION === */
html { box-sizing: border-box; }
*, *::before, *::after { box-sizing: inherit; margin: 0; padding: 0; }
html { font-size: 100%; scroll-behavior: smooth; }
body {
  min-height: 100vh;
  font-family: 'Nunito', Arial, sans-serif;
  font-size: 16px;
  background-color: #FAFAF7;
  color: #2A2921;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  letter-spacing: 0.01em;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color 0.20s; }
button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  border: none;
  background: none;
  outline: none;
  box-shadow: none;
}
ul, ol { list-style: none; }

/* === BASIC LAYOUT & CONTAINERS === */
.container {
  width: 100%;
  max-width: 1024px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
.section,
section {
  margin-bottom: 60px;
  padding: 40px 0 0 0;
  background: transparent;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
@media (min-width: 900px) {
  .content-wrapper {
    gap: 32px;
  }
  .section, section {
    padding: 40px 0;
  }
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5 {
  font-family: 'Cormorant Garamond', serif;
  color: #2A2921;
  font-weight: 600;
  margin-bottom: 16px;
  line-height: 1.1;
}
h1 { font-size: 2.4rem; margin-top: 0; margin-bottom: 18px; }
h2 { font-size: 1.8rem; margin-top: 0; margin-bottom: 16px; }
h3 { font-size: 1.25rem; margin-bottom: 12px; }
h4, h5 { font-size: 1.1rem; }
.subheadline { font-size: 1.2rem; color: #4B4938; margin-bottom: 18px; }
p { margin-bottom: 16px; }
strong { font-weight: bold; }
em { font-style: italic; color: #DE604E; }
address { font-style: normal; color: #37372D; font-size: 0.98em; margin-top: 10px; }

/* === FLEXBOX CONTENT PATTERNS === */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.card {
  background: #FFF;
  box-shadow: 0 2px 16px rgba(50,40,5,0.07);
  border-radius: 12px;
  padding: 28px 24px;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow 0.18s, transform 0.18s;
}
.card:hover {
  box-shadow: 0 4px 24px rgba(50,40,5,0.13);
  transform: translateY(-2px) scale(1.005);
}
.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;
}
@media (max-width: 768px) {
  .content-grid,
  .text-image-section {
    flex-direction: column;
    gap: 20px;
  }
}

/* === TESTIMONIALS === */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  background: #FFF;
  border-radius: 16px;
  padding: 20px 28px;
  margin-bottom: 20px;
  box-shadow: 0 2px 18px rgba(50,40,5,0.10);
  max-width: 570px;
  color: #2A2921;
  font-family: 'Nunito', Arial, sans-serif;
  transition: box-shadow 0.18s;
}
.testimonial-card strong {
  color: #DE604E;
  font-size: 1.05em;
}
.testimonial-card:hover {
  box-shadow: 0 4px 30px rgba(222,96,78,.13);
}

/* === FEATURES / SERVICE ITEMS === */
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* === CARDS, TAGS, SPECIAL ELEMENTS === */
.category-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 18px 0 12px 0;
}
.category-tags span {
  background: #F0BF59;
  color: #2A2921;
  font-size: 14px;
  padding: 6px 15px;
  border-radius: 35px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: background 0.18s;
  margin-bottom: 4px;
}
.category-tags span:hover {
  background: #DE604E;
  color: #FFF;
}

/* === CTA BUTTONS === */
.cta {
  background: #DE604E;
  color: #FFF;
  font-family: 'Nunito', Arial, sans-serif;
  border-radius: 28px;
  padding: 13px 32px;
  font-size: 1.08rem;
  font-weight: 700;
  margin-top: 8px;
  box-shadow: 0 2px 10px rgba(222,96,78,0.03);
  border: none;
  cursor: pointer;
  transition: background 0.22s, color 0.22s, box-shadow 0.16s, transform 0.14s;
  display: inline-block;
  outline: none;
}
.cta:hover, .cta:focus {
  background: #F0BF59;
  color: #2A2921;
  box-shadow: 0 3px 14px rgba(222,96,78,0.12);
  transform: translateY(-2px) scale(1.04);
}

/* === GENERAL LISTS (UL/LI) === */
ul, ol {
  margin-left: 0.7em;
  margin-bottom: 18px;
}
ul li, ol li {
  margin-bottom: 12px;
  line-height: 1.65;
  position: relative;
  padding-left: 18px;
}
ul li::before {
  content: "";
  display: inline-block;
  background: #F0BF59;
  border-radius: 50%;
  width: 8px; height: 8px;
  margin-right: 10px;
  vertical-align: middle;
  position: absolute;
  left: 0; top: 10px;
}
ol li::before {
  display: none;
}

/* === HEADER & NAVIGATION === */
header {
  background: #FFF;
  box-shadow: 0 2px 18px rgba(44,36,25,0.04);
  position: relative;
  z-index: 1000;
  padding: 0 0 0 0;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px 14px 20px;
  min-height: 60px;
}
header > a img {
  max-width: 145px;
  height: auto;
  margin-right: 10px;
}
.main-nav {
  display: flex;
  gap: 18px;
  align-items: center;
}
.main-nav a {
  font-family: 'Nunito', Arial, sans-serif;
  font-size: 1rem;
  color: #2A2921;
  padding: 6px 0;
  border-radius: 4px;
  font-weight: 500;
  transition: color 0.16s, background 0.18s;
}
.main-nav a:hover, .main-nav a:focus {
  color: #DE604E;
  background: #F0BF59;
}
.main-nav .cta {
  margin-left: 12px;
  padding: 10px 22px;
  font-size: 1em;
}
@media (max-width: 980px) {
  .main-nav a { font-size: 0.98em; }
  header .container { flex-direction: column; gap: 10px; }
}
@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
}

/* === MOBILE MENU === */
.mobile-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #FFF;
  color: #2A2921;
  font-size: 2rem;
  border-radius: 8px;
  width: 44px;
  height: 44px;
  border: none;
  cursor: pointer;
  transition: background 0.18s;
  z-index: 2100;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: #F0BF59;
  color: #DE604E;
}
@media (min-width: 769px) {
  .mobile-menu-toggle {
    display: none;
  }
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(255,255,255,0.98);
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(.61,.1,.3,1.07);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.active {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  color: #DE604E;
  font-size: 2.2rem;
  background: transparent;
  border: none;
  padding: 22px 32px 10px 0;
  align-self: flex-end;
  cursor: pointer;
  z-index: 2200;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  margin: 36px 0 0 34px;
}
.mobile-nav a {
  font-family: 'Nunito', Arial, sans-serif;
  font-size: 1.24rem;
  padding: 9px 0;
  color: #2A2921;
  border-radius: 5px;
  min-width: 180px;
  font-weight: 600;
  transition: color 0.16s, background 0.16s;
}
.mobile-nav a:hover {
  background: #F0BF59;
  color: #DE604E;
}
@media (min-width: 769px) {
  .mobile-menu,
  .mobile-menu-close {
    display: none !important;
  }
}

/* === FOOTER === */
footer {
  background: #FFF;
  border-top: 1px solid #F0BF59;
  margin-top: 40px;
  font-size: 0.97rem;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 8px;
}
.footer-nav a {
  color: #3D3B2E;
  font-size: 0.97rem;
  margin-bottom: 2px;
  border-radius: 4px;
  padding: 3px 8px;
  transition: background 0.16s, color 0.16s;
}
.footer-nav a:hover {
  color: #FFF;
  background: #DE604E;
}
footer .content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
  padding: 22px 0;
}

/* === FORMS (for newsletter signups/future expansion) === */
input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  max-width: 410px;
  padding: 11px 15px;
  border-radius: 8px;
  border: 1px solid #DDD7C3;
  background: #FFF;
  font-size: 1rem;
  color: #37372D;
  margin-bottom: 12px;
  transition: border-color 0.18s;
}
input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
  border-color: #F0BF59;
}
button[type="submit"] {
  background: #DE604E;
  color: #FFF;
  border-radius: 28px;
  padding: 11px 30px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.18s;
}
button[type="submit"]:hover {
  background: #F0BF59;
  color: #2A2921;
}

/* === RESPONSIVE LAYOUTS === */
@media (max-width: 675px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.22rem; }
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }
}
@media (max-width: 480px) {
  html { font-size: 97%; }
  .cta {
    width: 100%;
    padding: 15px 0;
  }
  .section,
  section {
    padding: 20px 0 0 0;
  }
}
@media (max-width: 550px) {
  .footer-nav { flex-direction: column; gap: 12px; }
  footer .content-wrapper { gap: 16px; padding: 18px 0; }
}
@media (max-width: 500px) {
  .testimonial-card {
    padding: 15px 8px;
    font-size: 0.98em;
  }
}

/* === IMAGE HANDLING === */
.text-section img, .text-image-section img {
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(140,120,60,.07);
  margin-bottom: 10px;
  max-height: 160px;
  background: #F6F5EE;
}

/* === MICRO-INTERACTIONS === */
.card, .testimonial-card, .cta, .category-tags span {
  transition: box-shadow 0.18s, background 0.16s, color 0.16s, transform 0.13s;
}

/* === SPACING ENFORCEMENT === */
section + section {
  margin-top: 20px;
}
.section, section {
  margin-bottom: 60px;
}
.content-wrapper > * + * {
  margin-top: 20px;
}
.card:not(:last-child), .testimonial-card:not(:last-child) {
  margin-bottom: 20px;
}

/* === COOKIE CONSENT BANNER === */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #FFF;
  color: #2A2921;
  box-shadow: 0 -2px 22px rgba(50,40,5,0.15);
  z-index: 3000;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 22px 18px 22px 18px;
  font-size: 0.96rem;
  border-top: 3px solid #F0BF59;
  transition: transform 0.36s cubic-bezier(.61,.1,.3,1.07), opacity 0.3s;
}
.cookie-banner.hide {
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner .cookie-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-left: 14px;
}
.cookie-btn {
  background: #DE604E;
  color: #FFF;
  border-radius: 26px;
  border: none;
  padding: 10px 22px;
  font-size: 0.97rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.17s, color 0.17s;
}
.cookie-btn.settings {
  background: #F0BF59;
  color: #2A2921;
  font-weight: 600;
}
.cookie-btn.reject {
  background: #BBB7A3;
  color: #2A2921;
  font-weight: 600;
}
.cookie-btn:hover,
.cookie-btn:focus {
  background: #2A2921;
  color: #FFF;
}
.cookie-btn.settings:hover {
  background: #DE604E;
  color: #FFF;
}
.cookie-btn.reject:hover {
  background: #DE604E;
  color: #FFF;
}

/* === COOKIE PREFERENCES MODAL === */
.cookie-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(42,41,33, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3300;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.28s;
}
.cookie-modal.active {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal-dialog {
  background: #FFF;
  border-radius: 16px;
  max-width: 415px;
  width: 94vw;
  box-shadow: 0 6px 40px rgba(50,40,5,0.18);
  padding: 36px 34px 26px 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
  position: relative;
}
.cookie-modal-close {
  position: absolute;
  right: 15px;
  top: 15px;
  font-size: 2.1rem;
  color: #2A2921;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 2;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.cookie-category input[type="checkbox"] {
  accent-color: #DE604E;
  width: 20px; height: 20px;
}
.cookie-category .switch {
  display: inline-block;
  width: 38px;
  height: 22px;
  background: #EEE9D3;
  border-radius: 22px;
  position: relative;
  margin-left: 4px;
  cursor: pointer;
  transition: background 0.15s;
}
.cookie-category .switch input {
  display: none;
}
.cookie-category .slider {
  position: absolute;
  top: 2px; left: 2px;
  width: 18px; height: 18px;
  background: #DE604E;
  border-radius: 50%;
  transition: 0.2s;
}
.cookie-category .switch input:checked + .slider {
  transform: translateX(16px);
  background: #F0BF59;
}
.cookie-category label {
  color: #2A2921;
  font-size: 1rem;
  font-weight: 500;
}
.cookie-category .desc {
  color: #66624A;
  font-size: 0.93em;
  margin-left: 8px;
}

/* === COOKIE MODAL FOOTER === */
.cookie-modal-actions {
  display: flex;
  gap: 16px;
  margin-top: 16px;
  width: 100%;
  justify-content: flex-end;
}

/* === ACCENT & APPEARANCE ELEMENTS === */
hr {
  border: none;
  border-top: 1px solid #EEE9D3;
  margin: 32px 0;
}
::-webkit-scrollbar {
  width: 12px;
  border-radius: 8px;
  background: #F7F6F0;
}
::-webkit-scrollbar-thumb {
  background: #EEE9D3;
  border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover {
  background: #DE604E22;
}

/* === SCANDINAVIAN FEEL DECORATIVE ELEMENTS === */
section {
  border-radius: 18px 18px 0 0;
  box-shadow: 0 1.5px 12px rgba(225,220,190,0.045);
  background: #FFF;
}
@media (max-width: 500px) {
  section {
    border-radius: 10px 10px 0 0;
  }
}

/* === MISC Utility + Accessibility === */
.sr-only {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}
:focus {
  outline: 2px solid #F0BF59;
  outline-offset: 2px;
}

/* === Z-INDEX STRATEGY === */
header { z-index: 1000; }
.mobile-menu { z-index: 2000; }
.cookie-banner { z-index: 3000; }
.cookie-modal { z-index: 3300; }

/* === ENSURE NO OVERLAPPING: GAPS/MARGINS BETWEEN CARDS & CONTENT === */
.card, .testimonial-card, .feature-item {
  margin-bottom: 20px;
}
.card-container, .content-grid {
  gap: 24px;
}
.content-wrapper {
  gap: 24px;
}

/* End of style.css */
