/* 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;
}

html { box-sizing: border-box; }
*, *::before, *::after { box-sizing: inherit; }

body {
  background: #F6F1EA;
  font-family: 'Lato', Arial, sans-serif;
  color: #2D3A4C;
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #2D3A4C;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus { color: #B9985A; }

/* GEOMETRIC STRUCTURED TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, serif;
  color: #2D3A4C;
  font-weight: 700;
  letter-spacing: 1px;
}
h1 { font-size: 2.6rem; letter-spacing: 1.5px; line-height: 1.15; margin-bottom: 24px; }
h2 { font-size: 2rem; letter-spacing: 1px; margin-bottom: 20px; }
h3 { font-size: 1.4rem; margin-bottom: 16px; }
h4, h5, h6 { font-size: 1.1rem; }

p, li, address {
  font-family: 'Lato', Arial, sans-serif;
  color: #2D3A4C;
  font-size: 1rem;
}
strong { color: #B9985A; font-weight: bold; }

ul, ol { padding-left: 1.5em; margin-bottom: 20px; }
li {
  margin-bottom: 10px;
  position: relative;
}
ul li::before {
  content: '';
  display: inline-block;
  width: 10px; height: 10px;
  margin-right: 10px;
  background: #B9985A;
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  vertical-align: middle;
  border-radius: 2px;
}

/* CONTAINERS & STRUCTURED GRIDS */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  padding: 0;
  margin: 0 auto;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border: 2.5px solid #E5DDCC;
  border-radius: 20px;
  box-shadow: 0 4px 24px rgba(45, 58, 76, 0.07);
  margin-bottom: 20px;
  padding: 28px 24px;
  flex: 1 1 320px;
  position: relative;
  transition: box-shadow 0.2s, border-color 0.2s;
  display: flex;
  flex-direction: column;
  min-width: 320px;
}
.card:hover {
  box-shadow: 0 8px 32px rgba(45,58,76,0.14);
  border-color: #B9985A;
}

.features, .feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.feature-item {
  background: #fff;
  border-radius: 14px;
  border: 1.8px solid #E5DDCC;
  padding: 22px 18px;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  box-shadow: 0 3px 12px rgba(45,58,76,0.08);
}

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

/* SERVICE LIST (for index/esperienze/tour) */
.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}
.service-list > div {
  flex: 1 1 280px;
  background: #fff;
  border-radius: 16px;
  border: 1.8px solid #E5DDCC;
  box-shadow: 0 2px 10px rgba(45,58,76,0.06);
  padding: 26px 22px 22px 22px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow 0.2s, border-color 0.2s;
  position: relative;
}
.service-list > div:hover {
  box-shadow: 0 8px 32px rgba(185,152,90,0.10);
  border-color: #B9985A;
}

/* TESTIMONIALS CARDS */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 18px;
  border: 2px solid #E5DDCC;
  box-shadow: 0 2px 12px rgba(45,58,76,0.06);
  margin-bottom: 24px;
  max-width: 540px;
  font-style: italic;
}
.testimonial-card p {
  color: #2D3A4C;
  margin-bottom: 8px;
}
.testimonial-card strong {
  color: #B9985A;
  font-size: 1rem;
  font-weight: 700;
}

/* BUTTONS & LINK STYLES */
.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 14px 34px;
  font-family: 'Lato', Arial, sans-serif;
  font-size: 1.12rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, color 0.2s, border 0.2s;
  box-shadow: 0 2px 8px rgba(45,58,76,0.06);
  margin-right: 10px;
}
.btn-primary {
  background: #2D3A4C;
  color: #fff;
}
.btn-primary:hover, .btn-primary:focus {
  box-shadow: 0 6px 24px rgba(45,58,76,.13);
  background: #B9985A;
  color: #2D3A4C;
}
.btn-secondary {
  background: transparent;
  color: #2D3A4C;
  border: 2px solid #2D3A4C;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: #B9985A;
  color: #fff;
  border-color: #B9985A;
}

/* HEADER / NAVIGATION */
header {
  background: #fff;
  border-bottom: 1.5px solid #ECE9E2;
  box-shadow: 0 3px 12px rgba(45,58,76,0.04);
  position: sticky;
  top: 0; left: 0; right: 0;
  z-index: 100;
}
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1160px;
  margin: 0 auto;
  padding: 18px 20px 18px 12px;
}
.logo img {
  height: 44px;
  width: auto;
  display: block;
}
nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  list-style: none;
  margin: 0 20px 0 0;
}
nav ul li a {
  font-family: 'Lato', Arial, sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: #2D3A4C;
  letter-spacing: 1.3px;
  padding: 6px 0;
  border-bottom: 2.5px solid transparent;
  transition: color 0.2s, border-bottom 0.15s;
}
nav ul li a:hover, nav ul li a:focus {
  color: #B9985A;
  border-bottom: 2.5px solid #B9985A;
}

/* Only show burger on mobile */
.mobile-menu-toggle {
  display: none;
  flex-shrink: 0;
  background: #fff;
  border: none;
  font-size: 2.3rem;
  color: #2D3A4C;
  cursor: pointer;
  border-radius: 8px;
  padding: 4px 14px;
  box-shadow: 0 2px 8px rgba(45,58,76,0.08);
  margin-left: 10px;
  transition: background 0.2s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #B9985A;
  color: #fff;
}

/* MOBILE MENU */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: #2D3A4C;
  z-index: 2000;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.6,0,0.4,1);
}
.mobile-menu.open {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 2.3rem;
  align-self: flex-end;
  margin: 22px 22px 0 0;
  cursor: pointer;
  transition: color 0.2s;
  z-index: 2100;
}
.mobile-menu-close:hover, .mobile-menu-close:focus { color: #B9985A; }
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  margin-top: 48px;
  width: 100%;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Lato', Arial, sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 1.3px;
  padding: 12px 0;
  transition: color 0.18s;
}
.mobile-nav a:hover, .mobile-nav a:focus { color: #B9985A; }

/* MAIN & SECTIONS */
main {
  min-height: 60vh;
  padding-bottom: 80px;
}
section {
  margin-bottom: 60px;
  padding: 40px 0;
}

/* Footer */
footer {
  background: #2D3A4C;
  color: #fff;
  margin-top: 40px;
  font-size: 1rem;
  padding: 0 0 2px 0;
  border-top: 2.5px solid #B9985A;
}
footer .container {
  padding: 0 20px;
}
.footer-main {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  padding: 44px 0 16px 0;
  align-items: flex-start;
  justify-content: space-between;
  border-bottom: 1.4px solid #B9985A;
}
.footer-main a img {
  width: 48px;
  margin-bottom: 14px;
}
.footer-main address {
  font-style: normal;
  color: #fff;
  line-height: 1.6;
  font-size: 1rem;
  margin-bottom: 16px;
}
.footer-main address a, .footer-main address a:visited {
  color: #B9985A;
  text-decoration: underline;
  transition: color 0.2s;
}
.footer-main address a:hover, .footer-main address a:focus {
  color: #fff;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-left: 20px;
}
.footer-nav a {
  color: #B9985A;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 1.2px;
  padding: 2px 0;
  transition: color 0.2s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #fff;
}
.footer-sub {
  text-align: center;
  padding: 16px 0 10px 0;
  color: #C9C7C1;
  font-size: 0.95rem;
}

/* COOKIE CONSENT BANNER */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; width: 100vw;
  background: #2D3A4C;
  color: #fff;
  box-shadow: 0 -4px 24px rgba(45,58,76,0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  z-index: 3000;
  padding: 26px 14px 18px 14px;
  transition: transform 0.4s cubic-bezier(0.7,0,0.2,1);
  font-size: 1.05rem;
}
.cookie-banner.hidden { transform: translateY(120%); }
.cookie-banner .cookie-btns {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.cookie-banner .cookie-btns button {
  border: none;
  border-radius: 7px;
  font-family: 'Lato', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  padding: 10px 26px;
  cursor: pointer;
  margin-right: 0;
  transition: background 0.2s, color 0.2s, box-shadow 0.18s;
  outline: none;
}
.cookie-banner .cookie-btns .accept {
  background: #B9985A;
  color: #fff;
  box-shadow: 0 3px 12px rgba(185,152,90,0.13);
}
.cookie-banner .cookie-btns .accept:hover, .cookie-banner .cookie-btns .accept:focus {
  background: #fff;
  color: #2D3A4C;
}
.cookie-banner .cookie-btns .reject {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
}
.cookie-banner .cookie-btns .reject:hover, .cookie-banner .cookie-btns .reject:focus {
  background: #fff;
  color: #2D3A4C;
}
.cookie-banner .cookie-btns .settings {
  background: #2D3A4C;
  color: #B9985A;
  border: 2px solid #B9985A;
}
.cookie-banner .cookie-btns .settings:hover, .cookie-banner .cookie-btns .settings:focus {
  background: #B9985A;
  color: #fff;
}

/* COOKIE MODAL */
.cookie-modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(45,58,76,0.58);
  z-index: 3050;
  align-items: center;
  justify-content: center;
  transition: opacity 0.27s ease;
}
.cookie-modal-overlay.open {
  display: flex;
}
.cookie-modal {
  background: #fff;
  color: #2D3A4C;
  border-radius: 18px;
  max-width: 350px;
  padding: 26px 22px 16px 22px;
  box-shadow: 0 8px 32px rgba(45,58,76,0.23);
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-size: 1rem;
  position: relative;
}
.cookie-modal h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: #B9985A;
  margin-bottom: 14px;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 13px;
}
.cookie-modal .cookie-category label {
  font-weight: 600;
  color: #2D3A4C;
  font-size: 1rem;
}
.cookie-modal .toggle-switch {
  width: 38px; height: 22px;
  background: #ECE9E2;
  border-radius: 12px;
  position: relative;
  margin-left: 8px;
  transition: background 0.2s;
  cursor: pointer;
}
.cookie-modal .toggle-switch input {
  display: none;
}
.cookie-modal .toggle-slider {
  position: absolute; top: 2px; left: 2px;
  width: 18px; height: 18px;
  background: #B9985A;
  border-radius: 50%;
  transition: left 0.19s;
}
.cookie-modal .toggle-switch input:checked + .toggle-slider {
  left: 18px;
  background: #2D3A4C;
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
  margin-top: 10px;
}
.cookie-modal .cookie-modal-close {
  position: absolute; top: 11px; right: 18px;
  background: none; border: none;
  color: #B9985A; font-size: 1.45rem;
  cursor: pointer;
  transition: color 0.18s;
}
.cookie-modal .cookie-modal-close:hover, .cookie-modal .cookie-modal-close:focus {
  color: #2D3A4C;
}
.cookie-modal button {
  border: none;
  border-radius: 7px;
  background: #B9985A;
  color: #fff;
  font-family: 'Lato', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  padding: 10px 18px;
  cursor: pointer;
  transition: background 0.17s, color 0.15s;
}
.cookie-modal button:hover, .cookie-modal button:focus {
  background: #2D3A4C;
  color: #fff;
}

/* SPACING FOR CONSISTENCY */
.card-content, .content-grid {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
}
.content-grid {
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* GEOMETRIC VISUAL EFFECTS */
section, .card, .feature-item, .testimonial-card {
  border-radius: 18px;
}
section {
  background: #fff;
  box-shadow: 0 3px 24px rgba(185,152,90,0.03);
}

/* Call to Action (index) */
.cta {
  background: #B9985A;
  color: #fff;
  border-radius: 12px;
  padding: 18px 24px;
  margin: 16px 0 22px 0;
  font-weight: 700;
  font-size: 1.07rem;
}

/* Address Icon Row in Contacts/Footer */
address img, .footer-main address img {
  display: inline-block;
  width: 1.2em;
  vertical-align: middle;
  margin-right: 6px;
}

/* Misc */
::-webkit-scrollbar {
  width: 10px;
  background: #E5DDCC;
}
::-webkit-scrollbar-thumb {
  background: #B9985A;
  border-radius: 12px;
}

/* ANIMATIONS */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
main > section, .testimonial-card, .card, .service-list > div {
  animation: fadeInUp 0.8s cubic-bezier(0.6,0,0.4,1) both;
}

/* FOCUS STATES */
a:focus, button:focus, .btn-primary:focus, .btn-secondary:focus {
  outline: 2px solid #B9985A;
  outline-offset: 1.5px;
}

/* RESPONSIVE (MOBILE FIRST) */
@media (max-width: 1024px) {
  nav {
    max-width: 100%;
    padding-left: 10px;
    padding-right: 10px;
  }
  .footer-main {
    gap: 32px;
    flex-direction: column;
    align-items: flex-start;
  }
}
@media (max-width: 900px) {
  .service-list > div, .card {
    min-width: 240px;
    flex: 1 1 180px;
  }
  .testimonial-card {
    max-width: 440px;
  }
}
@media (max-width: 768px) {
  nav ul { display: none; }
  .btn-primary { display: none; }
  .mobile-menu-toggle { display: flex; }
  .footer-main { gap: 18px; flex-direction: column; align-items: flex-start; }
  section, .section { padding: 28px 4vw; margin-bottom: 40px; }
  .service-list, .card-container, .features, .feature-list, .content-grid {
    flex-direction: column;
    gap: 20px;
  }
  .text-image-section { flex-direction: column; gap: 16px; }
  .testimonial-card { max-width: 98vw; }
  .footer-nav { margin-left: 0; gap: 8px; }
}
@media (max-width: 560px) {
  .container { padding: 0 6px; }
  .section { padding: 22px 2vw; }
  h1 { font-size: 1.65rem; }
  h2 { font-size: 1.21rem; }
  .btn-primary, .btn-secondary { font-size: 1rem; padding: 10px 20px; }
}

/* Hide cookie banner print */
@media print {
  .cookie-banner, .cookie-modal-overlay, .mobile-menu { display: none !important; }
}
