/* 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 {
  line-height: 1.5;
  background: #F4EDE7;
  color: #21384E;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  min-height: 100vh;
  scroll-behavior: smooth;
}
img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}
a {
  color: #21384E;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #559046;
}
ul, ol { list-style: none; }


/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #21384E;
  text-rendering: optimizeLegibility;
  font-weight: 600;
}
h1 { font-size: 2.5rem; margin-bottom: 24px; line-height: 1.1; }
h2 { font-size: 2rem; margin-bottom: 20px; line-height: 1.15; }
h3 { font-size: 1.25rem; margin-bottom: 12px; line-height: 1.2; }
h4, h5, h6 { font-size: 1rem; font-weight: 600; }
p, li, ul, ol, blockquote { font-size: 1rem; line-height: 1.6; }
p, ul, ol, blockquote { margin-bottom: 16px; }
b, strong { font-weight: 600 !important; }
blockquote {
  font-style: italic;
  border-left: 3px solid #559046;
  margin: 0;
  padding-left: 16px;
  color: #21384E;
  background: #F4EDE7;
}


/* CONTAINER LAYOUTS */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #FFFFFF;
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(33, 56, 78, 0.06);
}

/* FLEXBOX SPACING PATTERNS */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 32px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #FFFFFF;
  border-radius: 14px;
  box-shadow: 0 4px 18px rgba(33,56,78,0.08);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 260px;
  flex: 1 1 280px;
  transition: box-shadow .18s;
}
.card:hover {
  box-shadow: 0 8px 32px rgba(33,56,78,0.17);
}
.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;
  align-items: center;
  flex-direction: column;
  gap: 20px;
  padding: 20px;
  background: #F4EDE7;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(33,56,78,.08);
  margin-bottom: 20px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #FFFFFF;
  box-shadow: 0 1px 5px rgba(33,56,78,0.05);
  border-radius: 12px;
  padding: 28px;
  min-width: 210px;
  transition: box-shadow .18s, transform .18s;
}
.feature-item:hover {
  box-shadow: 0 4px 20px rgba(33,56,78,0.13);
  transform: translateY(-3px);
}

@media (max-width: 990px) {
  .container {
    max-width: 98%;
  }
}
@media (max-width: 768px) {
  .content-wrapper, .content-grid, .text-image-section, .card-container {
    flex-direction: column;
    gap: 20px;
  }
  .card, .feature-item {
    min-width: 100%;
    padding: 20px 16px;
  }
}

/* HEADER & NAVIGATION */
header {
  background: #FFFFFF;
  border-bottom: 1px solid #F4EDE7;
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 20;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 16px;
  padding-bottom: 16px;
}
header nav {
  display: flex;
  align-items: center;
  gap: 26px;
}
header nav a {
  font-family: 'Roboto', Arial, sans-serif;
  color: #21384E;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  position: relative;
  padding-bottom: 2px;
  transition: color .17s;
}
header nav a:after {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  background: #559046;
  position: absolute;
  bottom: -3px;
  left: 0;
  transition: width 0.24s;
}
header nav a:hover, header nav a:focus {
  color: #559046;
}
header nav a:hover:after, header nav a:focus:after {
  width: 100%;
}
.cta-btn {
  background: #559046;
  color: #fff !important;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  border: none;
  border-radius: 50px;
  padding: 13px 32px;
  font-size: 1.06rem;
  letter-spacing: .01em;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(33,56,78,0.09);
  margin-left: 18px;
  transition: background .17s, box-shadow .17s, color .18s;
  outline: none;
  display: inline-block;
  position: relative;
}
.cta-btn:hover, .cta-btn:focus {
  background: #34792E;
  color: #FFF;
  box-shadow: 0 4px 18px rgba(33,56,78,0.13);
}
/* MOBILE MENU */
.mobile-menu-toggle {
  display: none;
  border: none;
  background: transparent;
  font-size: 2rem;
  color: #21384E;
  cursor: pointer;
  margin-left: 24px;
  outline: none;
  transition: color .15s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  color: #559046;
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: #21384E;
  z-index: 1001;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(.8,0,.2,1);
  visibility: hidden;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  visibility: visible;
  pointer-events: all;
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 20px 24px 4px 0;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.4rem;
  cursor: pointer;
  transition: color .16s;
  z-index: 2;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  color: #559046;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  margin-top: 32px;
  gap: 30px;
  padding: 0 40px;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 500;
  padding: 10px 0;
  width: 100%;
  transition: color .19s;
  border-radius: 8px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #91B9E7;
  background: rgba(84,177,118,0.13);
}
@media (max-width: 991px) {
  header nav, .cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 992px) {
  .mobile-menu {
    display: none !important;
  }
}

/* HERO SECTION */
.hero {
  background: linear-gradient(120deg,#F4EDE7 75%,#91B9E7 120%);
  padding: 60px 0 30px 0;
  border-radius: 0 0 24px 24px;
  margin-bottom: 45px;
}
.hero h1 {
  color: #21384E;
  margin-bottom: 14px;
}
.hero p {
  max-width: 540px;
  font-size: 1.15rem;
  color: #394B63;
  margin-bottom: 20px;
}
.hero .cta-btn {
  margin-top: 14px;
}

/* FEATURES / SERVICE GRID */
.features, .feature-grid, .feature-list, .service-list, .events, .event-list {
  width: 100%;
}
.feature-grid, .event-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 14px;
  margin-bottom: 8px;
}
.feature-item img {
  height: 40px;
  width: 40px;
  margin-bottom: 8px;
}
.feature-item h3 {
  font-size: 1.15rem;
}

/* CARDS & EVENTS */
.event-item {
  flex: 1 1 320px;
  background: #F4EDE7;
  border-radius: 12px;
  box-shadow: 0 1px 6px rgba(33,56,78,0.07);
  padding: 24px 18px;
  margin-bottom: 16px;
  transition: box-shadow .15s;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.event-item:hover {
  box-shadow: 0 4px 18px rgba(33,56,78,0.08);
}

/* TESTIMONIALS */
.testimonials .testimonial-card, .testimonial-card {
  background: #F4EDE7;
  color: #21384E;
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: 0 2px 9px rgba(33,56,78,0.09);
  display: flex;
  gap: 20px;
  padding: 20px 28px;
  align-items: center;
}
.testimonial-card blockquote {
  font-size: 1.1rem;
  color: #21384E;
  background: none;
  border: none;
  padding-left: 0;
  margin-bottom: 8px;
}
.testimonial-card span {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 0.98rem;
  color: #34792E;
  font-style: normal;
  margin-left: 12px;
  white-space: nowrap;
}
@media (max-width: 768px) {
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 12px;
    gap: 8px;
  }
}

/* CONTACT LIST */
.contact-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
}
.contact-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  color: #21384E;
}
.contact-list img {
  width: 22px;
  height: 22px;
}

/* TIMELINE */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 14px;
}
.timeline li {
  position: relative;
  padding-left: 32px;
  line-height: 1.5;
  font-family: 'Roboto', Arial, sans-serif;
  color: #21384E;
}
.timeline li span {
  color: #34792E;
  font-weight: 700;
  display: inline-block;
  position: absolute;
  left: 0;
}

/* FOOTER */
footer {
  background: #21384E;
  color: #FFFFFF;
  padding: 44px 0 24px 0;
  margin-top: 60px;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}
.footer-brand img {
  height: 38px;
  width: auto;
  filter: brightness(97%);
  margin-bottom: 8px;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
}
footer nav a {
  color: #FFF;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: .98rem;
  opacity: .87;
  transition: opacity .15s, color .15s;
  border-radius: 5px;
  padding: 2px 7px;
}
footer nav a:hover, footer nav a:focus {
  color: #91B9E7;
  opacity: 1;
}
footer p {
  color: #91B9E7;
  font-size: 0.95rem;
}
@media (max-width: 730px) {
  footer .container { padding-left: 10px; padding-right: 10px; }
  .footer-brand img { height: 28px; }
}

/* LEGAL PAGES */
.legal {
  background: #FFFFFF;
  border-radius: 16px;
  padding: 40px 24px;
  margin: 36px 0 32px 0;
  box-shadow: 0 2px 12px rgba(33,56,78,0.06);
}

/* THANK YOU PAGE */
.thank-you {
  text-align: center;
  padding: 40px 20px;
  background: #F4EDE7;
  border-radius: 16px;
}
.thank-you .cta-btn {
  margin-top: 22px;
  font-size: 1.05rem;
  padding: 12px 38px;
}

/* MICRO-INTERACTIONS */
button, .cta-btn, a {
  transition: background .13s, box-shadow .13s, color .13s, opacity .16s;
}

/* COOKIE CONSENT BANNER */
#cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: #21384E;
  color: #fff;
  padding: 24px 20px;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  z-index: 1100;
  box-shadow: 0 -2px 16px rgba(33,56,78,.07);
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  gap: 22px;
  animation: cookieSlideUp 0.56s cubic-bezier(0.54,0,0.7,1);
}
@keyframes cookieSlideUp {
  0% { transform: translateY(100%); }
  100% { transform: translateY(0); }
}
#cookie-banner p {
  margin: 0;
  color: #fff;
  max-width: 520px;
  flex: 1 1 320px;
}
.cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 12px;
  align-items: center;
}
.cookie-btn {
  padding: 9px 22px;
  font-size: .98rem;
  font-family: 'Montserrat', Arial, sans-serif;
  border: none;
  border-radius: 32px;
  background: #34792E;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: background .13s, color .13s;
  outline: none;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #559046;
  color: #FFF;
}
.cookie-btn.secondary {
  background: #fff;
  color: #21384E;
  border: 1px solid #cccccc;
}
.cookie-btn.secondary:hover,
.cookie-btn.secondary:focus {
  background: #F4EDE7;
  color: #559046;
}
.cookie-btn.settings {
  background: transparent;
  color: #91B9E7;
  border: none;
  font-weight: 500;
  text-decoration: underline;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  color: #FFF;
}
@media (max-width: 570px) {
  #cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 8px;
  }
  .cookie-actions {
    flex-direction: column;
    gap: 7px;
    align-items: flex-start;
  }
}

/* COOKIE MODAL POPUP */
#cookie-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  width: 97vw;
  max-width: 420px;
  background: #FFFFFF;
  color: #21384E;
  border-radius: 16px;
  box-shadow: 0 8px 48px rgba(33,56,78,.19);
  z-index: 1200;
  transform: translate(-50%, -60%);
  opacity: 0;
  pointer-events: none;
  transition: opacity .23s, transform .23s cubic-bezier(0.34,0,0.76,1);
  padding: 34px 24px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
#cookie-modal.open {
  opacity: 1;
  pointer-events: all;
  transform: translate(-50%, -50%);
}
#cookie-modal h2 {
  font-size: 1.19rem;
  margin-bottom: 7px;
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  margin-bottom: 13px;
}
.cookie-category input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: #559046;
  margin: 0 7px 0 0;
}
.cookie-category label {
  font-size: 1.04rem;
  font-weight: 500;
}
.cookie-category.essential label {
  color: #CCC;
}
#cookie-modal .modal-actions {
  display: flex;
  flex-direction: row;
  gap: 14px;
  justify-content: flex-end;
  margin-top: 14px;
}
#cookie-modal .close-modal {
  background: transparent;
  color: #21384E;
  border: none;
  font-size: 2rem;
  position: absolute;
  top: 16px;
  right: 22px;
  cursor: pointer;
  opacity: .55;
  transition: opacity .18s, color .14s;
}
#cookie-modal .close-modal:hover, #cookie-modal .close-modal:focus {
  opacity: 1;
  color: #559046;
}
@media (max-width: 500px) {
  #cookie-modal {
    padding: 22px 6vw 18px 6vw;
  }
}

/* RESPONSIVE UTILITY */
@media (max-width: 1160px) {
  .container { max-width: 100%; }
}
@media (max-width: 480px) {
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.2rem; }
  .hero { padding: 34px 0 15px 0; }
  .section { padding: 22px 7px; }
}

/* FORM (contatti) */
.form {
  background: #FFFFFF;
  border-radius: 14px;
  padding: 34px 24px;
  box-shadow: 0 2px 12px rgba(33,56,78,0.06);
  margin-bottom: 60px;
}
.form input, .form textarea {
  width: 100%;
  padding: 12px 10px;
  border-radius: 6px;
  border: 1px solid #CCC;
  font-size: 1rem;
  margin-bottom: 18px;
  font-family: 'Roboto', Arial, sans-serif;
  background: #F4EDE7;
}
.form input:focus, .form textarea:focus {
  outline: 2px solid #559046;
  border-color: #34792E;
}

/* SCROLLBAR */
::-webkit-scrollbar { width: 10px; background: #F4EDE7; }
::-webkit-scrollbar-thumb { background: #DEE0E2; border-radius: 8px; }

/* UTILITY */
.hidden { display: none !important; }

/* VISUAL HIERARCHY */
.section:not(:first-child) { box-shadow: 0 2px 11px rgba(33, 56, 78, 0.03); }

/* Z-INDEX LAYERING */
header, .mobile-menu, #cookie-banner, #cookie-modal { z-index: 100; }

/* FOCUS VISIBLE */
a:focus, button:focus, .cta-btn:focus {
  outline: 2px solid #559046;
  outline-offset: 2px;
}

/* END CSS */
