/* ----------------------------------------------
   AquaViva Sanitari - Warm Friendly UI CSS
   Complete style for ALL HTML pages
   Designed by: Senior CSS Developer & UI Designer
   Strict flexbox, warm/friendly brand, responsive
--------------------------------------------------*/

/* 1. CSS 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 {
  font-size: 16px;
  scroll-behavior: smooth;
}
body {
  line-height: 1.5;
  min-height: 100vh;
  background: #F5F8FA;
  color: #183642;
  font-family: 'Lato', Arial, sans-serif;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {
  border: 0;
  max-width: 100%;
  display: block;
}
a {
  color: #205072;
  text-decoration: none;
  transition: color 0.2s;
}
ul, ol {
  list-style: none;
  padding: 0;
  margin: 0;
}
button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
  box-sizing: border-box;
}
button {
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

/* 2. ROOT & BRAND COLORS */
:root {
  --primary: #205072;
  --secondary: #1697A6;
  --accent: #F5F8FA;
  --warm-1: #FFEEE0;
  --warm-2: #FFD8BA;
  --warm-3: #FFA963;
  --warm-4: #FFE4B4;
  --light: #fff;
  --dark: #183642;
  --error: #c6262e;
  --shadow: 0 2px 12px rgba(33, 60, 103, 0.12);
  --border-radius: 18px;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --font-family-display: 'Montserrat', "Arial Rounded MT Bold", Arial, sans-serif;
  --font-family-body: 'Lato', Arial, sans-serif;
}

/* 3. TYPOGRAPHY - Warm Friendly, Hierarchical */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-display);
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.25rem;
  line-height: 1.15;
  margin-bottom: 20px;
}
h2 {
  font-size: 1.75rem;
  margin-bottom: 18px;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}
h4 {
  font-size: 1.1rem;
  font-weight: 600;
}
p, li {
  font-family: var(--font-family-body);
  font-size: 1rem;
  color: var(--dark);
  margin-bottom: 12px;
  letter-spacing: 0.01em;
}
strong, b {
  font-weight: 700;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.container {
  width: 100%;
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
  box-sizing: border-box;
}

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

/* HEADER */
header {
  background: var(--primary);
  color: var(--accent);
  width: 100%;
  box-shadow: 0 2px 8px rgba(32,80,114,0.08);
  z-index: 100;
  position: relative;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding-top: 12px;
  padding-bottom: 12px;
}
header img {
  height: 48px;
  border-radius: var(--radius-sm);
  background: none;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 16px;
}
.main-nav a {
  font-family: var(--font-family-body);
  font-size: 1rem;
  color: var(--accent);
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  transition: background 0.18s, color 0.18s;
}
.main-nav a:hover,
.main-nav a:focus {
  background: var(--warm-2);
  color: var(--primary);
}
.main-nav .cta {
  background: var(--warm-3);
  color: var(--primary);
  font-weight: 700;
  box-shadow: 0 1px 7px rgba(255,169,99, 0.13);
  border-radius: var(--radius-md);
  transition: background 0.18s, color 0.18s, box-shadow 0.2s;
}
.main-nav .cta:hover, .main-nav .cta:focus {
  background: var(--secondary);
  color: var(--light);
}

/* MOBILE NAVIGATION */
.mobile-menu-toggle {
  display: none;
}
.mobile-menu {
  display: none;
}

@media (max-width: 980px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
    background: var(--warm-3);
    color: var(--primary);
    border-radius: var(--radius-md);
    width: 48px;
    height: 48px;
    font-size: 2rem;
    box-shadow: var(--shadow);
    margin-left: 8px;
    border: none;
    z-index: 999;
    transition: background 0.2s;
  }
  .mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
    background: var(--secondary);
    color: var(--light);
  }
  .mobile-menu {
    position: fixed;
    width: 100vw;
    height: 100vh;
    left: 0;
    top: 0;
    background: var(--light);
    color: var(--primary);
    z-index: 1200;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.32s cubic-bezier(.4,0,.2,1);
    box-shadow: 0 3px 32px rgba(32,80,114,.12);
  }
  .mobile-menu.open {
    transform: translateX(0);
  }
  .mobile-menu-close {
    align-self: flex-end;
    background: var(--accent);
    color: var(--primary);
    font-size: 2.1rem;
    padding: 12px 24px;
    margin: 18px 18px 0 0;
    border-radius: var(--radius-md);
    transition: background 0.18s, color 0.18s;
  }
  .mobile-menu-close:hover, .mobile-menu-close:focus {
    background: var(--warm-3);
    color: var(--light);
  }
  .mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
    padding: 36px 32px;
  }
  .mobile-nav a {
    font-family: var(--font-family-display);
    font-size: 1.1rem;
    color: var(--primary);
    padding: 14px 8px;
    border-radius: var(--radius-md);
    width: 100%;
    transition: background 0.19s, color 0.19s;
  }
  .mobile-nav a:hover, .mobile-nav a:focus {
    background: var(--warm-2);
    color: var(--secondary);
  }
}

/* HERO SECTION */
.hero {
  background: linear-gradient(105deg, var(--warm-1) 65%, var(--accent) 100%);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  box-shadow: 0 7px 32px -8px rgba(32,80,114,.09);
  padding: 56px 0 44px 0;
  margin-bottom: 40px;
  min-height: 200px;
  display: flex;
  align-items: center;
}
.hero .container, .hero .content-wrapper {
  width: 100%;
  align-items: flex-start;
}
.hero h1 {
  color: var(--primary);
  font-size: 2.5rem;
  margin-bottom: 16px;
}
.hero p {
  font-size: 1.125rem;
  color: var(--dark);
  margin-bottom: 22px;
  max-width: 700px;
}
.hero .cta {
  margin-top: 10px;
}

/* FEATURES */
.features {
  background: var(--accent);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
}
.features .content-wrapper > h2 {
  margin-bottom: 14px;
  color: var(--primary);
}
.features ul, .features ol {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-bottom: 0;
}
.features ul li, .features ol li {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--warm-1);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  box-shadow: 0 1px 8px rgba(255,200,130,0.06);
  font-size: 1.07rem;
  min-width: 230px;
  margin-bottom: 0px !important;
}
.features ul li img {
  width: 31px;
  height: 31px;
}
.features ol {
  flex-direction: column;
  gap: 10px;
  counter-reset: steps;
}
.features ol li {
  background: var(--accent);
  color: var(--primary);
  border-left: 6px solid var(--warm-3);
  padding-left: 16px;
  margin-bottom: 0;
  box-shadow: none;
  font-weight: 500;
}

/* ABOUT & USP grid */
.about, .about-story {
  background: var(--light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.usp-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.usp-grid > div {
  background: var(--warm-1);
  border-radius: var(--radius-md);
  box-shadow: 0 2px 12px rgba(255,200,130,0.07);
  flex: 1 1 210px;
  min-width: 190px;
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 0;
}
.usp-grid img {
  width: 36px;
  height: 36px;
  margin-bottom: 10px;
}

/* CATEGORY grid, TEAM, SERVICE grid */
.category-grid, .team-intros, .service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 18px;
}
.category-grid > div, .team-intros > div, .service-list > div {
  background: var(--accent);
  border-radius: var(--radius-md);
  min-width: 190px;
  flex: 1 1 220px;
  box-shadow: 0 1px 6px rgba(34, 110, 169, 0.07);
  padding: 20px 15px;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  justify-content: flex-start;
  font-size: 1rem;
  color: var(--primary);
}

.category-grid h3, .team-intros h3 {
  margin-bottom: 5px;
  color: var(--secondary);
  font-size: 1.13rem;
}

.service-list > div h3 {
  color: var(--warm-3);
  font-size: 1.11rem;
  margin-bottom: 6px;
}
.service-list > div p:last-child {
  font-weight: 600;
  color: var(--secondary);
}

/* TESTIMONIALS */
.testimonials {
  background: var(--warm-2);
  border-radius: var(--radius-md);
  box-shadow: 0 0px 18px rgba(255,200,130, 0.09);
}
.testimonials .testimonial-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 10px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 24px 22px;
  background: var(--light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  min-width: 240px;
  flex: 1 1 240px;
  font-size: 1rem;
  color: var(--primary);
  transition: box-shadow 0.21s, transform 0.21s;
}
.testimonial-card p {
  color: var(--dark);
  font-size: 1.06rem;
  margin-bottom: 8px;
}
.testimonial-card strong {
  color: var(--secondary);
  font-weight: 600;
}
.testimonial-card:hover, .testimonial-card:focus {
  box-shadow: 0 5px 32px rgba(33, 60, 103, 0.13);
  transform: translateY(-2px) scale(1.018);
}

/* LEGAL, GENERIC SECTION */
.legal {
  background: var(--light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
}
.legal h1, .legal h2, .legal h3 {
  color: var(--primary);
}
.legal a {
  color: var(--secondary);
  text-decoration: underline;
}
.legal ul, .legal ol {
  margin-bottom: 20px;
  gap: 10px;
  display: flex;
  flex-direction: column;
}

/* .section, .card, .card-container, .content-grid, .text-image-section etc. */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--warm-1);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  padding: 18px 20px;
  margin-bottom: 20px;
  position: relative;
}
.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;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* CTA BUTTONS */
.cta {
  display: inline-block;
  background: var(--warm-3);
  color: var(--primary);
  font-family: var(--font-family-display);
  font-weight: 700;
  font-size: 1.12rem;
  border-radius: var(--radius-md);
  padding: 14px 30px;
  box-shadow: 0 2px 14px rgba(255,169,99,.09);
  transition: background 0.21s, color 0.21s, box-shadow 0.18s, transform 0.22s;
  border: none;
  margin-top: 8px;
  cursor: pointer;
  text-align: center;
  letter-spacing: 0.02em;
}
.cta:hover, .cta:focus {
  background: var(--secondary);
  color: var(--light);
  transform: translateY(-2px) scale(1.021);
  box-shadow: 0 6px 28px rgba(22,151,166, 0.13);
}

/* FAQ */
.faq-brief {
  background: var(--warm-1);
  border-radius: var(--radius-sm);
  box-shadow: 0 1px 7px rgba(255,200,130,0.07);
  padding: 18px 14px;
  margin-top: 18px;
  font-size: 1rem;
}
.faq-brief h3 {
  color: var(--secondary);
  margin-bottom: 12px;
}
.faq-brief ul li {
  padding-left: 0;
}

/* CONTACT & MAP SECTION */
.contact, .map-section {
  background: var(--accent);
  border-radius: var(--radius-md);
  box-shadow: 0 2px 12px rgba(33, 60, 103, 0.07);
}
.contact h2, .map-section h2 {
  color: var(--secondary);
}
.contact ul, .map-section ul {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 18px;
}
.contact ul li, .map-section ul li {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 1.05rem;
  color: var(--primary);
}
.contact ul li img, .map-section ul li img {
  width: 26px;
  height: 26px;
}

/* THANK YOU SECTION */
.thank-you {
  background: var(--warm-2);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  text-align: center;
  padding: 60px 0 68px 0;
}
.thank-you h1 {
  color: var(--primary);
  margin-bottom: 22px;
}
.thank-you p {
  color: var(--dark);
  font-size: 1.12rem;
  margin-bottom: 30px;
}

/* FOOTER */
footer {
  background: var(--primary);
  color: var(--accent);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  box-shadow: 0 -1px 16px rgba(32,80,114,0.08);
  padding: 0 0 16px 0;
}
.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 40px 0 0 0;
}
.footer-content > * {
  margin-bottom: 20px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-nav a {
  color: var(--accent);
  opacity: 0.92;
  font-size: 1rem;
  border-radius: var(--radius-sm);
  padding: 0;
  transition: color 0.18s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--warm-3);
}
.footer-contact p, .footer-contact a {
  color: var(--accent);
  font-size: 0.99rem;
  opacity: 0.93;
}
.footer-contact p {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 5px;
}
.footer-social {
  display: flex;
  gap: 20px;
  align-items: center;
}
.footer-social a img {
  width: 33px;
  height: 33px;
  border-radius: 50%;
  background: var(--warm-3);
  transition: box-shadow 0.2s;
  box-shadow: 0 1px 8px rgba(255,169,99,0.10);
}
.footer-social a:hover img, .footer-social a:focus img {
  box-shadow: 0 4px 14px rgba(245, 136, 54, 0.18);
}
.footer-legal {
  width: 100%;
  margin-top: 22px;
  text-align: center;
  opacity: 0.62;
  font-size: 0.93rem;
}

/* ---------------------
   COOKIE CONSENT BANNER
---------------------- */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2000;
  width: 100vw;
  background: var(--warm-2);
  color: var(--primary);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 20px 16px;
  box-shadow: 0 -3px 24px rgba(255, 183, 124, 0.13);
  font-size: 1.07rem;
  font-family: var(--font-family-body);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  animation: banner-slidein 0.55s cubic-bezier(.46,.03,.52,.96);
}
.cookie-banner p {
  color: var(--primary);
  margin: 0;
  flex: 1;
  max-width: 500px;
}
.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.cookie-banner .cookie-btn {
  border-radius: var(--radius-sm);
  border: 0;
  padding: 10px 18px;
  font-weight: 600;
  font-family: var(--font-family-display);
  font-size: 1.02rem;
  margin-right: 2px;
  transition: background 0.17s, color 0.17s, box-shadow 0.19s;
}
.cookie-banner .cookie-btn.accept {
  background: var(--warm-3);
  color: var(--primary);
}
.cookie-banner .cookie-btn.accept:hover {
  background: var(--secondary);
  color: var(--light);
}
.cookie-banner .cookie-btn.reject {
  background: var(--primary);
  color: var(--accent);
}
.cookie-banner .cookie-btn.reject:hover {
  background: var(--error);
  color: var(--light);
}
.cookie-banner .cookie-btn.settings {
  background: var(--accent);
  color: var(--primary);
  border: 1px solid var(--primary);
}
.cookie-banner .cookie-btn.settings:hover {
  background: var(--warm-1);
}

@keyframes banner-slidein {
  0% {transform: translateY(100%);opacity: 0;}
  95% {transform: translateY(-10%);}
  100% {transform: translateY(0);opacity: 1;}
}

/* COOKIE MODAL */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(24,54,66,0.42);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: overlay-fadein .23s cubic-bezier(.48,.22,.54,.87);
}
@keyframes overlay-fadein {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: var(--light);
  color: var(--primary);
  border-radius: var(--radius-lg);
  box-shadow: 0 6px 48px rgba(32,80,114,0.15);
  padding: 40px 34px 30px 34px;
  min-width: 320px;
  width: 95vw;
  max-width: 410px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  animation: modal-slidein .29s cubic-bezier(.46,0,.52,1.08);
  position: relative;
}
@keyframes modal-slidein {
  from { transform: translateY(60px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-modal h2 {
  color: var(--primary);
  margin-bottom: 10px;
}
.cookie-modal .modal-close {
  position: absolute;
  top: 14px; right: 20px;
  background: var(--warm-3);
  color: var(--primary);
  border-radius: var(--radius-sm);
  font-size: 1.5rem;
  line-height: 1;
  padding: 5px 15px 6px 15px;
  transition: background 0.18s;
}
.cookie-modal .modal-close:hover,
.cookie-modal .modal-close:focus {
  background: var(--error);
  color: var(--light);
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 18px;
  margin-bottom: 18px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 11px 0;
  border-bottom: 1px solid var(--warm-2);
  font-size: 1.05rem;
}
.cookie-category label {
  font-family: var(--font-family-body);
  font-size: 1.05rem;
}
.cookie-category input[type="checkbox"] {
  accent-color: var(--secondary);
  width: 21px; height: 21px;
  border-radius: 8px;
  margin-right: 7px;
}
.cookie-category[aria-disabled="true"] label {
  color: var(--primary);
  font-weight: 600;
}
.cookie-category[aria-disabled="true"] input[type="checkbox"] {
  opacity: 0.72;
  cursor: not-allowed;
}
.cookie-modal .cookie-action-row {
  display: flex;
  gap: 15px;
  justify-content: flex-end;
  margin-top: 20px;
}
.cookie-modal .modal-desc {
  color: var(--dark);
  font-size: 0.97rem;
  margin-bottom: 13px;
  opacity: 0.91;
}

/* MICRO-INTERACTIONS & TRANSITIONS */
a, .cta, .main-nav a, .footer-nav a, .cookie-btn,
button, .testimonial-card, .mobile-menu-toggle {
  transition: background 0.17s, color 0.17s, box-shadow 0.17s, transform 0.19s;
}
input:focus, textarea:focus, select:focus {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
  html { font-size: 15px; }
  .section, .about, .about-story, .features, .services, .legal, .testimonials, .thank-you, .contact, .map-section {
    padding-left: 10px;
    padding-right: 10px;
    padding-top: 30px;
    padding-bottom: 30px;
    margin-bottom: 35px;
    border-radius: var(--radius-md);
  }
  .container {
    max-width: 97vw;
    padding-left: 8px;
    padding-right: 8px;
  }
  .footer-content {
    flex-direction: column;
    gap: 28px;
    align-items: flex-start;
    padding: 30px 0 0 0;
  }
  .footer-social {
    gap: 16px;
  }
  .content-wrapper, .testimonial-grid, .category-grid, .team-intros, .service-list, .usp-grid, .card-container, .content-grid {
    flex-direction: column;
    gap: 20px !important;
  }
  .hero {
    padding-top: 32px;
    padding-bottom: 18px;
    min-height: 100px;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
  }
  .hero h1 {
    font-size: 1.62rem;
  }
  .testimonial-card, .category-grid > div, .team-intros > div, .service-list > div, .usp-grid > div {
    min-width: 0 !important;
    width: 100%;
    padding: 18px 10px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
  .cookie-banner {
    flex-direction: column;
    gap: 12px;
    font-size: 1rem;
    padding: 13px 4px;
  }
  .cookie-modal {
    padding: 24px 10px 18px 10px;
    min-width: 75vw;
    max-width: 97vw;
  }
}

/* SMALL MOBILE */
@media (max-width: 480px) {
  html { font-size: 14px; }
  .card, .testimonial-card {
    padding: 11px 6px;
    min-width: 0;
  }
  .cta {
    font-size: 1.01rem;
    padding: 12px 14px;
  }
}

/* ------------------------
   END AquaViva style.css
------------------------- */