/* ===========================================================
   CSS RESET & BASE STYLES - Elegant Classic for Noleggio Regale
   =========================================================== */

/* Box sizing reset & core typography */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  font-size: 16px;
  height: 100%;
}
body {
  min-height: 100vh;
  font-family: 'Lato', Arial, Helvetica, sans-serif;
  color: #20232a;
  background-color: #f7f7f7;
  line-height: 1.7;
  font-size: 1rem;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Import Playfair Display (display) and Lato (body) */
@import url('https://fonts.googleapis.com/css?family=Playfair+Display:400,500,700&display=swap');
@import url('https://fonts.googleapis.com/css?family=Lato:400,700&display=swap');


/* BASE STRUCTURE & WIDTHS */
.container {
  width: 100%;
  max-width: 1200px;
  margin-right: auto;
  margin-left: auto;
  padding-left: 20px;
  padding-right: 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
  margin-top: 0;
}

/* TYPOGRAPHY SCALE & HEADINGS */
h1, h2, h3, h4, h5 { 
  font-family: 'Playfair Display', serif;
  color: #20232a;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0;
}
h1 {
  font-size: 2.7rem;
  margin-bottom: 15px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 10px;
  color: #bd994b;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
  color: #20232a;
}
h4, h5 {
  font-size: 1.1rem;
}
p, ul, ol {
  font-size: 1rem;
  margin-bottom: 16px;
  color: #333;
  font-family: 'Lato', Arial, Helvetica, sans-serif;
}

ul, ol {
  margin-left: 20px;
  padding-left: 18px;
}
li {
  margin-bottom: 8px;
  line-height: 1.6;
}
strong, b {
  font-weight: 700;
  color: #20232a;
}
a {
  color: #bd994b;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover {
  color: #896b25;
  text-decoration: underline;
}

/* BUTTON & CTA CLASSES */
.cta,
button,
input[type="submit"],
input[type="button"] {
  font-family: 'Playfair Display', serif;
  appearance: none;
  border: none;
  padding: 12px 36px;
  background: #bd994b;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 32px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(32,35,42,0.08);
  transition: background 0.2s, color 0.2s, box-shadow 0.18s, transform 0.15s;
  outline: none;
  display: inline-block;
  letter-spacing: 0.03em;
  margin-top: 10px;
}
.cta.primary,
input[type="submit"].primary {
  background: #bd994b;
  color: #fff;
}
.cta.primary:hover,
.cta.primary:focus,
input[type="submit"].primary:hover {
  background: #20232a;
  color: #bd994b;
  box-shadow: 0 4px 20px rgba(32,35,42,0.13);
  transform: translateY(-2px) scale(1.02);
}
button,
input[type="button"] {
  background: #20232a;
  color: #fff;
  font-size: 1rem;
  border-radius: 27px;
}
button:hover,
input[type="button"]:hover {
  background: #bd994b;
  color: #fff;
}

/* Helper spacing */
.mt-32 { margin-top: 32px !important; }
.mb-32 { margin-bottom: 32px !important; }

/* ===========================================================
   HEADER & NAVIGATION
   =========================================================== */

header {
  width: 100%;
  background: #fff;
  box-shadow: 0 2px 16px rgba(32,35,42,0.04);
  padding: 0;
  border-bottom: 1px solid #ece6d9;
  z-index: 100;
  position: sticky;
  top: 0;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  min-height: 75px;
  padding-top: 7px;
  padding-bottom: 7px;
}
.logo img {
  height: 44px;
  width: auto;
  display: block;
}
nav {
  display: flex;
  align-items: center;
  gap: 16px;
}
nav a {
  font-family: 'Playfair Display', serif;
  color: #20232a;
  font-size: 1rem;
  font-weight: 500;
  margin: 0 5px;
  padding: 6px 8px;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
}
nav a.cta.primary {
  font-family: 'Playfair Display', serif;
  margin-left: 16px;
  background: #bd994b;
  color: #fff;
  border-radius: 28px;
  padding: 8px 28px;
  font-size: 1.07rem;
  transition: background 0.18s, color 0.13s, box-shadow 0.18s;
  box-shadow: 0 2px 8px rgba(32,35,42,0.06);
  border: 1.5px solid #bd994b;
}
nav a.cta.primary:hover,
nav a.cta.primary:focus {
  background: #20232a;
  color: #bd994b;
  border-color: #20232a;
  box-shadow: 0 6px 18px rgba(189,153,75,0.11);
}
nav a:hover, nav a:focus {
  background: #f7f7f7;
  color: #bd994b;
}

/* ===============================
   MOBILE MENU
   =============================== */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2.2rem;
  color: #20232a;
  cursor: pointer;
  margin-left: 24px;
  z-index: 1151;
  transition: color 0.18s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  color: #bd994b;
}
.mobile-menu {
  display: none;
}
.mobile-menu.active {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: #f7f7f7;
  z-index: 1200;
  padding: 32px 25px 0 25px;
  box-shadow: 0 0 40px rgba(61,48,31,0.12);
  transform: translateX(100%);
  transition: transform 0.36s cubic-bezier(.7,0,.3,1);
}
.mobile-menu.open {
  transform: translateX(0);
  display: flex;
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #20232a;
  font-size: 2.1rem;
  align-self: flex-end;
  margin-bottom: 10px;
  cursor: pointer;
  padding: 0 10px 0 0;
  line-height: 1.1;
  transition: color 0.14s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  color: #bd994b;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  margin-top: 20px;
}
.mobile-nav a {
  color: #20232a;
  font-family: 'Playfair Display', serif;
  font-size: 1.27rem;
  font-weight: 600;
  padding: 12px 0;
  border-radius: 0;
  border-bottom: 1px solid #ece6d9;
  transition: color 0.17s, background 0.11s;
  text-align: left;
  letter-spacing: 0.01em;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  color: #bd994b;
  background: #ece6d9;
  text-decoration: none;
}
@media (max-width: 1024px) {
  nav {
    gap: 8px;
  }
  nav a {
    font-size: 0.98rem;
    padding: 4px 7px;
  }
  header .container {
    padding-left: 14px;
    padding-right: 14px;
  }
  .logo img {
    height: 38px;
  }
}
@media (max-width: 900px) {
  header .container {
    gap: 0;
  }
  nav a, nav a.cta.primary {
    font-size: 0.96rem;
    padding: 4px 5.5px;
    margin-left: 0;
  }
}
@media (max-width: 768px) {
  nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  header .container {
    gap: 0;
  }
}

/* ===============================
   HERO SECTION & PAGE SECTIONS
   =============================== */
.section, section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 18px rgba(32,35,42,0.05);
}
.hero {
  background: #ece6d9;
  box-shadow: none;
  border-radius: 0;
  padding: 48px 0;
}
.hero .container {
  gap: 0;
}
.hero .content-wrapper {
  align-items: flex-start;
  max-width: 630px;
}
.hero h1 {
  font-size: 2.5rem;
  color: #20232a;
  margin-bottom: 18px;
  text-shadow: 0 2px 16px rgba(240,224,184,0.07);
}
.hero p {
  font-size: 1.19rem;
  color: #595242;
  margin-bottom: 24px;
}

/* Give last section less bottom margin for consistent look on all pages */
section:last-child, .section:last-child {
  margin-bottom: 32px;
}

/* ===============================
   FEATURE GRID & CARDS (MANDATORY FLEXBOX)
   =============================== */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 16px;
  margin-bottom: 16px;
}
.feature {
  flex: 1 1 230px;
  min-width: 220px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 9px rgba(32,35,42,0.022);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  padding: 28px 22px;
  margin-bottom: 20px;
  border: 1px solid #ece6d9;
  transition: box-shadow 0.2s, border 0.18s, transform 0.13s;
  position: relative;
}
.feature img {
  width: 36px;
  height: 36px;
  margin-bottom: 4px;
}
.feature:hover,
.feature:focus {
  box-shadow: 0 8px 32px rgba(189,153,75,0.12);
  border-color: #bd994b;
  transform: translateY(-3px) scale(1.03);
}

/* Card Wrapper Patterns */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 14px rgba(32,35,42,0.06);
  margin-bottom: 20px;
  padding: 28px 22px;
  position: relative;
  transition: box-shadow 0.2s, border 0.16s, transform 0.13s;
  border: 1px solid #ece6d9;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 15px;
}
.card:hover {
  box-shadow: 0 10px 34px rgba(189,153,75,0.12);
  border-color: #bd994b;
  transform: scale(1.01);
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

/* ===============================
   TEXT & IMAGE SECTION FLEX LAYOUTS
   =============================== */
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

/* ===============================
   TESTIMONIALS
   =============================== */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #fff;
  border-radius: 16px;
  padding: 24px 24px 20px 24px;
  box-shadow: 0 3px 23px rgba(32,35,42,0.08);
  margin-bottom: 20px;
  min-width: 220px;
  border: 1.5px solid #ece6d9;
  transition: box-shadow 0.17s, border-color 0.16s, transform 0.13s;
}
.testimonial-card:hover,
.testimonial-card:focus {
  box-shadow: 0 6px 28px rgba(189,153,75,0.14);
  border-color: #bd994b;
  transform: scale(1.016);
}
.testimonial-card strong {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: #20232a;
}
.testimonial-card .stars {
  display: flex;
  gap: 2.2px;
  margin-bottom: 7px;
}
.testimonial-card img {
  width: 18px;
  height: 18px;
}
.testimonial-card p {
  color: #232323;
  font-size: 1.01rem;
  margin-top: 4px;
}

/* Ensure testimonial contrast and readability */
.testimonial-card,
.testimonial-card p,
.testimonial-card strong {
  background: #fff;
  color: #20232a;
}

/* ===============================
   FEATURE ITEM & GRID
   =============================== */
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  padding: 18px 0 0 0;
  margin-bottom: 20px;
}

/* ===============================
   THANK YOU PAGE
   =============================== */
.thank-you {
  margin-bottom: 0;
  background: #fff;
  border-radius: 18px;
  padding: 60px 20px;
  box-shadow: 0 2px 18px rgba(32,35,42,0.05);
}
.thank-you h1 {
  font-size: 2.5rem;
  color: #bd994b;
  margin-bottom: 22px;
}

/* ===============================
   INCLUDED SERVICES & TRANSPARENT CONDITIONS (Tariffe page)
   =============================== */
.included-services, .transparent-conditions {
  background: #ece6d9;
  border-radius: 14px;
  padding: 24px 18px 18px 18px;
  margin-bottom: 20px;
}
.included-services ul, .transparent-conditions ul {
  margin-bottom: 0;
}

/* ===============================
   MAP VISUAL (Contatti page)
   =============================== */
.map {
  margin-top: 14px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 9px rgba(32,35,42,0.05);
  background: #ece6d9;
}
.map img {
  width: 100%;
  max-width: 350px;
  height: auto;
  display: block;
}

/* ===============================
   BREADCRUMB (about)
   =============================== */
nav[aria-label="breadcrumb"] {
  font-size: 0.97rem;
  color: #876c37;
  padding-bottom: 9px;
}
nav[aria-label="breadcrumb"] a {
  color: #876c37;
  text-decoration: underline;
  font-family: 'Lato', Arial, Helvetica, sans-serif;
  font-weight: 500;
}

/* ===============================
   FOOTER
   =============================== */
footer {
  background: #20232a;
  color: #fff;
  padding: 48px 0 20px 0;
  border-top: 5px solid #bd994b;
}
footer .container {
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
footer .logo img {
  height: 42px;
  width: auto;
  margin-bottom: 12px;
}
footer nav {
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
footer nav a {
  color: #fff;
  font-size: 1rem;
  font-family: 'Playfair Display', serif;
  opacity: 0.92;
  border-radius: 0;
  display: block;
  background: none;
  margin-left: 0;
  padding: 4px 0;
  transition: color 0.17s, opacity 0.11s;
}
footer nav a:hover, footer nav a:focus {
  color: #bd994b;
  opacity: 1.0;
  background: none;
}
.footer-contact {
  font-size: 0.97rem;
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #ece6d9;
}
.footer-contact img {
  width: 15px;
  height: 15px;
  margin-right: 7px;
  vertical-align: middle;
  opacity: 0.8;
}

/* ===============================
   COOKIE BANNER & COOKIE MODAL
   =============================== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: #20232a;
  color: #fff;
  padding: 24px 16px 19px 16px;
  z-index: 3000;
  box-shadow: 0 -3px 32px rgba(61,48,31,0.18);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 1.02rem;
  animation: cookieBannerAppear 0.64s cubic-bezier(.39,.56,.25,1.09);
}
@keyframes cookieBannerAppear { from { opacity:0; transform: translateY(40px);} to { opacity:1; transform: none; } }
.cookie-banner-text {
  font-family: 'Lato', Arial, Helvetica, sans-serif;
  color: #fff;
  max-width: 530px;
}
.cookie-banner-buttons {
  display: flex;
  gap: 14px;
}
.cookie-btn {
  font-family: 'Playfair Display', serif;
  padding: 8px 25px;
  border-radius: 22px;
  font-size: 1.01rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  background: #bd994b;
  color: #fff;
  margin: 0;
  transition: background 0.16s, color 0.12s, transform 0.10s;
}
.cookie-btn.settings {
  background: #f7f7f7;
  color: #20232a;
  border: 1.5px solid #bd994b;
  margin-left: 8px;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #20232a;
  color: #bd994b;
  transform: scale(1.04);
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #ece6d9;
  color: #bd994b;
}

/* Modal for cookie preferences */
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(32,35,42,0.59);
  z-index: 3500;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: cookieModalAppear 0.35s cubic-bezier(.39,.56,.25,1.09);
}
@keyframes cookieModalAppear { from { opacity:0; } to { opacity:1; } }
.cookie-modal {
  background: #fff;
  color: #20232a;
  padding: 34px 34px 30px 34px;
  border-radius: 18px;
  min-width: 290px;
  max-width: 95vw;
  width: 400px;
  box-shadow: 0 6px 38px rgba(61,48,31,0.15);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.cookie-modal h2,
.cookie-modal h3 {
  color: #bd994b;
  margin-bottom: 14px;
  font-size: 1.25rem;
  font-family: 'Playfair Display', serif;
}
.cookie-modal .cookie-category {
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
}
.cookie-modal .cookie-category label {
  cursor: pointer;
}
.cookie-modal .category-desc {
  font-size: 0.93rem;
  color: #7d6c54;
}
.cookie-category input[type="checkbox"] {
  accent-color: #bd994b;
  width: 19px;
  height: 19px;
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 22px;
  width: 100%;
}
.cookie-modal .close-modal {
  position: absolute;
  top: 16px; right: 16px;
  background: none;
  border: none;
  font-size: 1.65rem;
  color: #20232a;
  cursor: pointer;
  transition: color 0.14s;
}
.cookie-modal .close-modal:hover,
.cookie-modal .close-modal:focus{
  color: #bd994b;
}

/* ===============================
   RESPONSIVE
   =============================== */

@media (max-width: 1024px) {
  .feature {
    min-width: 180px;
    padding: 18px 10px;
  }
  .testimonial-card {
    padding: 16px 10px 14px 10px;
  }
  .footer-contact {
    flex-direction: column;
  }
  footer .container {
    gap: 18px;
  }
  .map img {
    max-width: 250px;
  }
}
@media (max-width: 900px) {
  .container {
    max-width: 98vw;
    padding-left: 6px;
    padding-right: 6px;
  }
  .feature,
  .testimonial-card {
    min-width: 130px;
  }
}
@media (max-width: 768px) {
  /* Layouts become columnar */
  .container {
    max-width: 100vw;
    padding: 0 2vw;
  }
  .content-wrapper {
    gap: 16px;
  }
  .section, section, .thank-you {
    padding: 26px 2vw;
    margin-bottom: 36px;
    border-radius: 13px;
  }
  .hero {
    padding: 28px 0 35px 0;
  }
  .feature-grid, .card-container, .content-grid {
    flex-direction: column;
    gap: 18px;
  }
  .feature {
    width: 100%;
    min-width: 0;
    padding: 16px 6px;
    border-radius: 11px;
  }
  .testimonial-card {
    padding: 16px 9px 13px 13px;
    border-radius: 10px;
  }
  .map img {
    max-width: 90vw;
  }
  .text-image-section {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
  footer .container {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
    padding: 0 4vw;
  }
  .cookie-banner {
    flex-direction: column;
    padding: 18px 8px 14px 8px;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.97rem;
  }
  .cookie-banner-buttons {
    width: 100%;
    justify-content: flex-start;
    gap: 8px;
    margin-top: 4px;
  }
  .cookie-modal {
    width: 97vw;
    padding: 16px 9px 13px 13px;
    border-radius: 9px;
    min-width: 0;
  }
}
@media (max-width: 480px) {
  .hero h1,
  .thank-you h1 {
    font-size: 1.45rem;
  }
  h2 {
    font-size: 1.17rem;
  }
}

/* ===============================
   PRINT STYLES
   =============================== */
@media print {
  header, footer, .cookie-banner, .mobile-menu { display: none !important; }
  .container, .content-wrapper, .feature, .section, section, .thank-you {
    box-shadow: none !important;
    background: #fff !important;
  }
}

/* ===============================
   UTILITIES
   =============================== */
.hide { display: none !important; }
.text-center { text-align: center; }

/* ===============================
   FOCUS & ACCESSIBILITY
   =============================== */
a:focus, button:focus, .cta:focus, input:focus {
  outline: 2px solid #bd994b;
  outline-offset: 1px;
}
::-webkit-input-placeholder {color:#a8894f;}
::-moz-placeholder {color:#a8894f;}
:-ms-input-placeholder {color:#a8894f;}
::placeholder {color:#a8894f;}
