/* ----------------------------
   CSS RESET & BASELINE
----------------------------- */
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%;
  scroll-behavior: smooth;
}
body {
  background: #EFEEE9;
  color: #3B485A;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
  letter-spacing: 0.03em;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
ul, ol {
  list-style: none;
}
button {
  font-family: inherit;
  font-size: inherit;
  background: none;
  border: none;
  outline: none;
  cursor: pointer;
}

/* Vintage Retro Brand Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #2B2B2B;
  font-weight: 700;
  letter-spacing: 0.02em;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 24px;
  text-shadow: 1px 2px 0 #D7BFA3, 2px 3px 0 #fff3e7;
  /* subtle offset for retro pop */
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  text-shadow: 1px 2px 0 #efeee9;
}
h3 {
  font-size: 1.45rem;
  margin-bottom: 16px;
}
h4 {
  font-size: 1.17rem;
}
strong {
  font-weight: 700;
  color: #845D21;
  letter-spacing: 0.04em;
}
blockquote {
  font-family: 'Montserrat', Arial, sans-serif;
  font-style: italic;
  background: #F9F4EC;
  border-left: 5px solid #D7BFA3;
  margin: 20px 0 20px 0;
  padding: 16px 24px;
  color: #3B485A;
  border-radius: 8px 32px 8px 24px;
}

/* ------------------------
    VINTAGE RETRO COLORS
-------------------------- */
:root {
  --primary: #3B485A;
  --primary-dark: #2B2B2B;
  --secondary: #D7BFA3;
  --secondary-dark: #B39362;
  --accent: #EFEEE9;
  --paper: #FFF8EF;
  --retro-blue: #6A859A;
  --retro-yellow: #F3DE8A;
  --retro-brown: #A17C5B;
  --retro-orange: #EFA84A;
  --danger: #C25B40;
  --success: #67B26F;
}

.background-accent {
  background: var(--accent);
}
.background-secondary {
  background: var(--secondary);
}

/* ------------------------
      LAYOUT & CONTAINER
-------------------------- */
.container {
  width: 100%;
  max-width: 1150px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 18px;
  padding-right: 18px;
}
.content-wrapper {
  padding: 0 0 0 0;
  margin: 0 auto;
  width: 100%;
}

/* ----------------
   VINTAGE SPACING
----------------- */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--paper);
  border-radius: 24px 64px 16px 32px;
  box-shadow: 0 4px 32px #3b485a16, 0 1.5px 0 #efeee9;
  border: 3px solid var(--secondary);
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #FAF5EC;
  border-radius: 20px 32px 20px 8px;
  margin-bottom: 20px;
  position: relative;
  box-shadow: 0 3px 14px 0 #c199659c;
  border: 2px solid var(--secondary);
  padding: 28px 22px 22px 22px;
  transition: transform 0.18s cubic-bezier(.4,.14,.7,1), box-shadow 0.17s;
}
.card:hover {
  transform: translateY(-7px) scale(1.025) rotate(-1deg);
  box-shadow: 0 10px 30px #a17c5b22,0 3px 0 #f3de8a45;
}

.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;
  align-items: center;
  gap: 20px;
  padding: 20px;
  border-radius: 16px 32px 8px 24px;
  background: #fff9ec;
  box-shadow: 0 2px 6px #b3936220;
  margin-bottom: 22px;
  border: 2px dashed var(--secondary-dark);
  flex-direction: column;
  min-width: 0;
}
.testimonial-card p {
  font-style: italic;
  color: #3B485A;
  margin-bottom: 12px;
}
.testimonial-card strong {
  display: block;
  color: var(--primary);
  margin-bottom: 4px;
}
.testimonial-card div {
  color: #EFA84A;
  font-size: 1.4rem;
}

.text-section {
  margin-bottom: 16px;
  padding-bottom: 8px;
  font-size: 1.05em;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* --------------
   HEADER/NAVBAR
-----------------
Retro bar with centered logo, colored underline, burger for mobile */
header {
  background: var(--primary);
  color: var(--accent);
  min-height: 72px;
  border-bottom: 6px double var(--secondary);
  box-shadow: 0 3px 12px #3b485a14;
  letter-spacing: 0.05em;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 12px;
  padding-bottom: 12px;
}
header img {
  height: 54px;
  width: auto;
}
nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.07rem;
}
header nav a {
  color: var(--accent);
  padding: 4px 10px;
  border-radius: 6px 14px 6px 14px;
  transition: background 0.2s, color 0.2s;
  position: relative;
  font-weight: 600;
  letter-spacing: 0.04em;
}
header nav a.active, header nav a:hover {
  background: var(--secondary);
  color: var(--primary-dark);
  text-shadow: 0 1px 0 #fff8ef;
}

.cta {
  font-family: 'Montserrat', Arial, sans-serif;
  display: inline-block;
  padding: 12px 34px;
  border-radius: 18px 36px 12px 36px;
  font-size: 1.07rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  transition: background .2s, color .2s, box-shadow .18s, transform .13s;
  box-shadow: 0 3px 8px #3b485a1a;
  text-align: center;
  border: none;
  cursor: pointer;
}
.cta.primary {
  background: var(--secondary);
  color: var(--primary-dark);
  border: 2px solid var(--secondary-dark);
}
.cta.primary:hover, .cta.primary:focus {
  background: var(--retro-yellow);
  color: #6A4C17;
  transform: scale(1.037) translateY(-2px); 
  box-shadow: 0 8px 32px #f3de8a24,0 2px 0 #fff3e7;
}
.cta.secondary {
  background: var(--primary);
  color: var(--accent);
  border: 1.5px solid var(--secondary);
}
.cta.secondary:hover, .cta.secondary:focus {
  background: var(--retro-orange);
  color: #fff;
  transform: scale(1.02) rotate(-1deg);
}

button.cta {
  padding: 10px 28px 10px 28px;
  font-size: 1.02rem;
}

/* --------------------
  Mobile Burger Styles
--------------------- */
.mobile-menu-toggle {
  display: none;
  background: var(--secondary);
  color: var(--primary-dark);
  border-radius: 50%;
  padding: 10px 18px;
  font-size: 2rem;
  border: 2px solid var(--primary);
  margin-left: 8px;
  transition: background 0.2s, color 0.2s;
  z-index: 121;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--highlight, #EFA84A);
  color: #fff;
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  height: 100vh; width: 100vw;
  background: #f8f1e575;
  z-index: 2001;
  display: flex;
  align-items: flex-start;
  transition: opacity 0.27s cubic-bezier(.54,.07,.39,.93),
              visibility 0.27s, transform 0.32s;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.mobile-menu.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.23s cubic-bezier(.56,.09,.41,.89),
              visibility 0.23s;
}
.mobile-nav {
  background: #fff8ef;
  border-radius: 0 38px 38px 0;
  box-shadow: 10px 0 18px #d7bfa39c;
  min-width: 260px; max-width: 86vw;
  padding: 50px 20px 20px 30px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  height: 100vh;
  transform: translateX(-120%);
  transition: transform 0.28s cubic-bezier(.9, 0, .42, 1.11);
  border-left: 5px double var(--secondary-dark);
}
.mobile-menu.open .mobile-nav {
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  left: 16px;
  top: 20px;
  font-size: 2.1rem;
  color: #A17C5B;
  background: #f3de8a;
  border-radius: 50%;
  box-shadow: 0 2px 8px #0001;
  padding: 3px 14px;
  z-index: 2010;
  border: 2px solid #a17c5b40;
  transition: background 0.18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #EFA84A;
  color: #fff;
}
.mobile-nav a {
  color: var(--primary-dark);
  padding: 11px 0 11px 12px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.10rem;
  border-radius: 10px 24px 10px 18px;
  font-weight: 600;
  transition: background 0.18s, color 0.18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--secondary);
  color: #3B485A;
}

/* display/hide nav/cta toggle for mobile/desktop */
@media (max-width: 1000px) {
  header nav,
  .cta.primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
}
@media (min-width: 1001px) {
  .mobile-menu {
    display: none !important;
  }
}

/* -----------------
    MAIN SECTIONS
------------------ */
main {
  padding-top: 20px;
  padding-bottom: 20px;
}
.section > .container {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

ul, ol {
  padding-left: 22px;
  margin-bottom: 14px;
  font-size: 1rem;
}
ul li {
  margin-bottom: 10px;
  position: relative;
  padding-left: 4px;
}
ul li strong {
  color: #A17C5B;
}
ul li::before {
  content: "\25A2";
  color: var(--retro-orange);
  position: absolute;
  left: -16px;
  font-size: 1.03em;
  top: 1px;
  font-family: 'Montserrat';
  opacity: 0.7;
}
/* retro badges for price */
ul li > span {
  display: inline-block;
  margin-left: 10px;
  color: #B39362;
  font-size: 0.99em;
  background: var(--retro-yellow);
  border-radius: 6px 16px 8px 19px;
  padding: 2px 10px;
  font-family: 'Montserrat', Arial, sans-serif;
  box-shadow: 1px 1px 0 #c1996529;
}

/* Cards for service features */
.card {
  min-width: 220px;
  max-width: 420px;
}

/* -------------
   FOOTER
-------------- */
footer {
  background: var(--primary);
  color: var(--accent);
  padding-top: 32px;
  padding-bottom: 32px;
  border-top: 8px double var(--secondary);
  margin-top: 32px;
  font-size: 1rem;
  letter-spacing: 0.05em;
}
footer .container {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
footer img {
  height: 38px;
  margin-bottom: 20px;
}
footer nav {
  display: flex;
  gap: 21px;
  flex-wrap: wrap;
}
footer nav a {
  color: var(--accent);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 8px;
  padding: 2px 9px;
  transition: background .17s;
}
footer nav a:hover {
  background: var(--secondary-dark);
  color: #fff;
}
footer p {
  margin-top: 22px;
  color: #edd5b7;
  font-size: 0.92rem;
  line-height: 1.5;
}

/* ------------------
      FORM FIELDS
------------------- */
input, textarea, select {
  box-sizing: border-box;
  border: 1.3px solid var(--secondary);
  border-radius: 8px 20px 8px 16px;
  background: #FFF8EF;
  padding: 12px 16px;
  margin-bottom: 18px;
  font-size: 1rem;
  font-family: 'Roboto', Arial, sans-serif;
  color: #3B485A;
  transition: border .14s, box-shadow .16s;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--retro-orange);
  box-shadow: 0 3px 11px #efa84a2c;
}
label {
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 0.99rem;
  margin-bottom: 8px;
  color: #845D21;
}

/* For retro accent text */
.accent {
  color: var(--retro-orange) !important;
}

/* -----------------------------
   RESPONSIVE & FLEXBOX ADJUSTMENTS
------------------------------ */
@media (max-width: 900px) {
  .container {
    max-width: 98vw;
  }
}
@media (max-width: 768px) {
  .container, .content-wrapper {
    padding: 0 5vw;
  }
  .section {
    margin-bottom: 46px;
    padding: 22px 5vw;
  }
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.188rem;
  }
  nav {
    gap: 10px;
    font-size: 1rem;
  }
  .content-grid,.card-container {
    flex-direction: column;
    gap: 16px;
  }
  .testimonial-card, .card {
    padding: 16px 11px 12px 11px;
    min-width: 0;
    max-width: 100%;
  }
  .text-image-section {
    flex-direction: column;
    gap: 16px;
  }
  footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .mobile-nav {
    padding: 50px 6px 6px 16px;
    min-width: 58vw;
  }
}

@media (max-width: 590px) {
  .section {
    padding: 12px 1.5vw;
  }
  h1 { font-size: 1.33rem; }
  h2 { font-size: 1.10rem; }
}

/* --------------------------
       MICRO-EFFECTS
-------------------------- */
.card, .cta, .testimonial-card, .mobile-menu, .mobile-nav {
  transition-property: background, color, border, box-shadow, transform, opacity;
  transition-duration: .15s, .17s, .125s, .17s, .17s, .18s;
}
a, button, .cta {
  transition-property: color, background, border, box-shadow, transform;
  transition-duration: .19s;
}

/* Focus states for accessibility */
a:focus, button:focus, .cta:focus {
  outline: 2px dashed var(--retro-orange);
  outline-offset: 3px;
}

/* --------------------------------
    VINTAGE DECORATIVE ELEMENTS
---------------------------------- */
.section {
  position: relative;
  overflow: visible;
}
.section::after {
  content: "";
  position: absolute;
  right: 28px; bottom: 18px;
  width: 58px; height: 16px;
  background: repeating-linear-gradient(135deg,#D7BFA3,#D7BFA3 5px,#fff8ef 5px,#fff8ef 10px);
  opacity: 0.25;
  border-radius: 8px;
  z-index: 2;
  pointer-events: none;
}
@media (max-width:800px){
  .section::after{display:none;}
}

/* Retro badge for prices */
.price-badge {
  display: inline-block;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  color: #a17c5b;
  background: #f3de8a;
  border-radius: 7px 16px 10px 17px;
  padding: 5px 17px;
  margin-left: 12px;
  box-shadow: 1px 1px 0 #efd5a7;
  border: 2px solid #A17C5B77;
}

/* Retro star for reviews */
.testimonial-card div {
  font-size: 1.36rem;
  letter-spacing: 0.18em;
  color: #EFA84A;
}

/* --------------------
   COOKIE CONSENT BANNER
--------------------- */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3333;
  background: #FFF8EF;
  border-top: 6px double var(--secondary);
  box-shadow: 0 -2px 24px #b3936222;
  padding: 20px 14px 18px 14px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 1.06em;
  font-family: 'Montserrat', Arial, sans-serif;
  color: #3B485A;
  animation: fadein-btm .5s;
}
@keyframes fadein-btm {
  from { transform: translateY(80px); opacity: 0; }
  to   { transform: none; opacity: 1; }
}
.cookie-banner p {
  margin-right: 15px;
  margin-bottom: 10px;
  flex: 1 1 220px;
}
.cookie-banner .cookie-btn {
  font-family: 'Montserrat',Arial, sans-serif;
  margin-right: 8px;
  margin-bottom: 8px;
  padding: 10px 20px;
  border-radius: 12px 18px 12px 24px;
  font-size: 1em;
  font-weight: 600;
  border: none;
  box-shadow: 0 2px 8px #B3936222;
  transition: background .15s, color .14s;
}
.cookie-banner .accept {
  background: var(--success);
  color: #fff;
}
.cookie-banner .accept:hover {
  background: #379a4b;
}
.cookie-banner .reject {
  background: var(--danger);
  color: #fff;
}
.cookie-banner .reject:hover {
  background: #8e2f17;
}
.cookie-banner .settings {
  background: var(--secondary);
  color: var(--primary-dark);
}
.cookie-banner .settings:hover {
  background: #efeee9;
  color: #a17c5b;
}

/* Cookie modal popup */
.cookie-modal {
  position: fixed;
  z-index: 3334;
  left: 0; top: 0; right: 0; bottom: 0;
  background: #3b485a55;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .22s;
  opacity: 0; pointer-events: none;
}
.cookie-modal.open {
  opacity: 1;
  pointer-events: all;
}
.cookie-modal .modal-content {
  background: #FFF8EF;
  border-radius: 24px 32px 22px 12px;
  box-shadow: 0 8px 56px #a17c5b44;
  padding: 34px 32px 28px 32px;
  min-width: 320px; max-width: 420px;
  font-family: 'Montserrat',Arial,sans-serif;
  color: #3B485A;
  border: 3px solid var(--secondary-dark);
  animation: modalin .28s;
  position: relative;
}
@keyframes modalin {
  from { transform: scale(0.93) translateY(44px); opacity: 0; }
  to   { transform: none; opacity: 1; }
}
.cookie-modal h2 {
  font-size: 1.38rem;
  margin-bottom: 24px;
  color: #A17C5B;
  text-shadow: 0 2px 0 #EFECE4;
}
.cookie-modal label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 1rem;
  font-weight: 600;
}
.category-toggle {
  appearance: none;
  width: 38px;
  height: 22px;
  background: #efeee9;
  border-radius: 20px;
  border: 1.8px solid var(--secondary-dark);
  position: relative;
  outline: none;
  transition: background .13s, border .15s;
  margin-right: 7px;
}
.category-toggle:checked {
  background: var(--retro-yellow);
  border-color: var(--retro-orange);
}
.category-toggle::after {
  content: '';
  display: block;
  width: 16px;
  height: 16px;
  background: #fff5dc;
  border-radius: 50%;
  position: absolute;
  left: 3px; top: 2px;
  transition: left .15s, background .15s;
  box-shadow: 0 0.5px 1.5px #b393624b;
}
.category-toggle:checked::after {
  left: 18px;
  background: #a17c5b;
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 18px;
  margin-top: 22px;
}
.cookie-modal .modal-close {
  position: absolute;
  right: 12px; top: 12px;
  font-size: 2rem;
  color: #A17C5B;
  background: none;
  border: none;
}
.cookie-modal .modal-close:hover {
  color: #C25B40;
}

/* ---------------------------
  RETRO PATTERNS & DETAILS
---------------------------- */
.pattern-bg {
  background-color: var(--accent);
  background-image: repeating-linear-gradient(135deg, #D7BFA3 0 2px, transparent 2px 20px), repeating-linear-gradient(-45deg, #F3DE8A 0px, transparent 8px);
  background-size: 26px 26px, 22px 22px;
  background-repeat: repeat;
}
.pattern-top {
  background: repeating-linear-gradient(-45deg, #D7BFA3 0px, #D7BFA3 4px, transparent 4px, transparent 22px);
  background-size: 32px 32px;
  height: 12px;
  width: 100%;
  margin-bottom: 16px;
}

/* --------------------------
 TABLET / SMALL DESKTOP FIXES
---------------------------- */
@media (max-width: 979px) {
  .content-grid, .card-container {
    justify-content: flex-start;
  }
}

/* ------------------------------
   RETRO/ACCESSIBILITY CONTRASTS
------------------------------- */
.testimonial-card, .testimonial-card p, .testimonial-card strong, .testimonial-card div {
  color: #232732 !important;
}
.testimonial-card {
  background: #fcfaf3;
}

/* ---------------------
  NOSTALGIC EXTRAS
---------------------- */
/* "Flicker" underline for H1 */
h1 {
  position: relative;
}
h1::after {
  content: "";
  display: block;
  margin: 7px auto 0 auto;
  width: 42px;
  height: 5px;
  background: repeating-linear-gradient(-45deg, #EFA84A 0, #EFA84A 50%, #D7BFA3 50%, #D7BFA3 100%);
  border-radius: 4px;
  opacity: 0.63;
}

/* Service icons */
.section img[alt^="Esperienza"], .section img[alt^="Su Misura"], .section img[alt^="Risultati"] {
  width: 42px;
  margin-right: 8px;
  vertical-align: bottom;
}

/* ------------------------------------
    OVERRIDE/UTILITY/HELPER CLASSES
------------------------------------- */
.hide { display: none !important; }
.flex-row { display: flex; flex-direction: row !important; }
.flex-col { display: flex; flex-direction: column !important; }
.d-center { display: flex; align-items: center; justify-content: center; }
.mt-2 { margin-top: 16px !important; }
.mb-2 { margin-bottom: 16px !important; }

/* Guarantee: Only flexbox, not grid! */
/* EOF */
