/* -----------------------------------------------------
   PetSaperi - Style.css
   Modern, warm & friendly UI for animal lovers
   Flexbox only! Responsive, safe, consistent and inviting
----------------------------------------------------- */
/*--- 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 {
  box-sizing: border-box;
  height: 100%;
  scroll-behavior: smooth;
}
/* Inherit box-sizing for all elements */
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  min-height: 100vh;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  color: #242424;
  background: #fff;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a {
  color: #16597E;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover,
a:focus {
  color: #409E6B;
  text-decoration: underline;
}
img {
  max-width: 100%;
  display: block;
  border: none;
}
ul, ol {
  margin-left: 1em;
}
section {
  width: 100%;
}

/*--- Typography ---*/
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Open Sans', Arial, Helvetica, sans-serif;
  color: #16597E;
  font-weight: 700;
}
h1 {
  font-size: 2.4rem;
  margin-bottom: 24px;
  line-height: 1.15;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  line-height: 1.18;
}
h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}
h4 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}
strong, b {
  font-weight: 600;
  color: #409E6B;
}
/* Paragraphs */
p {
  margin-bottom: 16px;
  font-size: 1rem;
}

/*--- Container ---*/
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
  width: 100%;
}

/*--- Main Spacing Patterns ---*/
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  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;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/*--- Hero Section ---*/
.hero-section {
  background: #F8ECDB;
  border-radius: 28px;
  box-shadow: 0 4px 28px 0 rgba(22,89,126,0.08);
  margin-top: 16px;
  margin-bottom: 40px;
}
.hero-section .container {
  padding-top: 38px;
  padding-bottom: 38px;
}
.hero-section h1 {
  color: #16597E;
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-size: 2.2rem;
}
.hero-section p {
  color: #3C3C3C;
  font-size: 1.1rem;
  margin-bottom: 28px;
  margin-top: 4px;
}
.hero-section .btn-primary {
  margin-top: 10px;
}

/*--- Buttons ---*/
.btn-primary {
  display: inline-block;
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff;
  background: #409E6B;
  border: none;
  border-radius: 28px;
  padding: 12px 32px;
  box-shadow: 0 2px 8px 0 rgba(64,158,107,0.15);
  transition: background 0.18s, box-shadow 0.18s, transform 0.16s;
  cursor: pointer;
  text-align: center;
  margin-top: 10px;
}
.btn-primary:hover, .btn-primary:focus {
  background: #16597E;
  box-shadow: 0 4px 12px 0 rgba(22,89,126,0.14);
  color: #fff;
  transform: translateY(-2px) scale(1.03);
}
.btn-secondary {
  display: inline-block;
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: #16597E;
  background: #F8ECDB;
  border: none;
  border-radius: 24px;
  padding: 10px 28px;
  box-shadow: 0 2px 8px rgba(166,151,126,0.07);
  transition: background 0.15s, box-shadow 0.15s, color 0.15s;
  cursor: pointer;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: #409E6B;
  color: #fff;
  box-shadow: 0 3px 8px rgba(64,158,107,0.11);
}
.btn-tertiary {
  background: #fff;
  color: #409E6B;
  border: 1px solid #409E6B;
  border-radius: 18px;
  padding: 8px 20px;
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  margin-left: 8px;
  transition: background 0.15s, color 0.15s, border 0.15s;
}
.btn-tertiary:hover, .btn-tertiary:focus {
  background: #F8ECDB;
  border-color: #16597E;
  color: #16597E;
}

/*--- Navbar ---*/
header {
  background: #fff;
  box-shadow: 0 3px 18px 0 rgba(166,151,126,0.07);
  border-bottom: 2px solid #F8ECDB;
  padding-top: 4px;
  position: relative;
  z-index: 100;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
}
.main-nav {
  display: flex;
  flex-direction: row;
  gap: 22px;
  align-items: center;
}
.main-nav a {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  color: #16597E;
  padding: 6px 16px;
  border-radius: 21px;
  transition: background 0.16s, color 0.14s;
}
.main-nav a:not(.btn-primary):hover, .main-nav a:not(.btn-primary):focus {
  background: #F8ECDB;
  color: #409E6B;
}
.main-nav .btn-primary {
  margin: 0 0 0 10px;
  font-size: 1.02rem;
  padding: 8px 30px;
  box-shadow: 0 2px 8px rgba(64,158,107,0.10);
}
/* Burger mobile nav button */
.mobile-menu-toggle {
  display: none;
  background: #409E6B;
  color: #fff;
  font-size: 2rem;
  border: none;
  border-radius: 16px;
  padding: 6px 16px;
  margin-left: 16px;
  cursor: pointer;
  transition: background 0.19s, box-shadow 0.17s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #16597E;
  box-shadow: 0 2px 8px rgba(22,89,126,0.14);
}

/*--- Mobile Menu Overlay ---*/
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(24,24,24, 0.97);
  z-index: 9999;
  transform: translateX(100%);
  transition: transform 0.33s cubic-bezier(0.8, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
  opacity: 1;
}
.mobile-menu-close {
  font-size: 2rem;
  color: #fff;
  background: transparent;
  border: none;
  margin: 24px 24px 0 auto;
  cursor: pointer;
  padding: 6px 16px;
  border-radius: 12px;
  transition: background 0.14s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: #409E6B;
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
  margin: 56px 32px 0 32px;
}
.mobile-nav a {
  background: transparent;
  color: #fff;
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  padding: 12px 4px;
  border-radius: 8px;
  width: 100%;
  transition: background 0.17s, color 0.15s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #F8ECDB;
  color: #16597E;
}

/*--- Section Titles and Wrappers ---*/
.feature-sections, .feature-grid {
  width: 100%;
}
.feature-sections {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 2px 18px 0 rgba(166,151,126,0.06);
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 10px;
}
.feature-item {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 1px 10px 0 rgba(22,89,126,0.07);
  padding: 22px 18px 18px 18px;
  min-width: 225px;
  max-width: 310px;
  flex: 1 1 210px;
  transition: box-shadow 0.22s, transform 0.21s;
  margin-bottom: 20px;
}
.feature-item:hover,
.feature-item:focus {
  box-shadow: 0 6px 20px 0 rgba(22,89,126,0.16);
  transform: translateY(-3px) scale(1.02);
}
.feature-item img {
  width: 38px;
  height: 38px;
  margin-bottom: 8px;
}
.feature-item h3 {
  font-size: 1.11rem;
  color: #16597E;
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  margin-bottom: 2px;
}
.feature-item p {
  font-size: 0.98rem;
  color: #426058;
}

/*--- Service Cards / Lists ---*/
.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 14px;
}
.service-item {
  flex: 1 1 220px;
  min-width: 225px;
  max-width: 320px;
  background: #F8ECDB;
  border-radius: 18px;
  box-shadow: 0 1px 10px 0 rgba(22,89,126,0.06);
  padding: 22px 18px 18px 18px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  transition: box-shadow 0.19s, transform 0.16s;
}
.service-item h3 {
  font-size: 1.09rem;
  margin-bottom: 2px;
  color: #409E6B;
}
.service-item p {
  color: #324242;
  font-size: 0.97rem;
}
.service-item span {
  font-weight: bold;
  color: #16597E;
  font-size: 0.98rem;
  background: #fff;
  padding: 2px 10px;
  border-radius: 16px;
  margin-top: 8px;
  align-self: flex-end;
}
.service-item:hover, .service-item:focus {
  box-shadow: 0 5px 22px 0 rgba(22,89,126,0.16);
  transform: translateY(-3px) scale(1.01);
}

/*--- Testimonial Cards ---*/
.testimonials-section, .testimonial-slider, .testimonial-list {
  width: 100%;
}
.testimonial-slider, .testimonial-list {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}
.testimonial-card {
  background: #fff;
  border-radius: 18px;
  padding: 24px 18px 18px 22px;
  box-shadow: 0 2px 18px 0 rgba(166,151,126,0.08);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 230px;
  max-width: 395px;
  flex: 1 1 210px;
  gap: 18px;
  margin-bottom: 20px;
  transition: box-shadow 0.2s, transform 0.17s;
}
.testimonial-card p {
  font-size: 1.03rem;
  color: #212121;
  font-style: italic;
  margin-bottom: 10px;
}
.testimonial-card strong {
  color: #409E6B;
  font-size: 0.97rem;
  font-style: normal;
}
.testimonial-card:hover, .testimonial-card:focus {
  box-shadow: 0 6px 24px 0 rgba(22,89,126,0.13);
  transform: translateY(-2px);
}

/*--- About Benefits List (Chi Siamo) ---*/
.about-benefits {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin: 15px 0 0 0;
  padding: 0;
}
.about-benefits li {
  background: #F8ECDB;
  padding: 16px 18px 14px 14px;
  border-radius: 16px;
  font-size: 1.01rem;
  color: #226672;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
  max-width: 300px;
  box-shadow: 0 1px 9px rgba(166,151,126,0.07);
  margin-bottom: 20px;
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
}
.about-benefits img {
  width: 28px;
  height: 28px;
}

/*--- Contact Info ---*/
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-bottom: 14px;
}
.contact-info img {
  width: 16px; height: 16px; margin-right: 8px; vertical-align: middle;
}
.location-section {
  background: #F8ECDB;
  border-radius: 18px;
  margin-top: 24px;
  margin-bottom: 16px;
  padding: 28px 18px;
  box-shadow: 0 2px 12px rgba(22,89,126,0.08);
}

/*--- Footer ---*/
footer {
  background: #F8ECDB;
  border-top: 2px solid #409E6B;
  box-shadow: 0 -1px 14px rgba(166,151,126,0.08);
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  margin-top: 64px;
}
footer .container {
  padding: 32px 18px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}
.footer-branding {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  margin-bottom: 4px;
}
.footer-branding img {
  width: 48px; height: 48px;
}
.footer-branding span {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  color: #16597E;
  font-size: 1rem;
  font-weight: 500;
}
.footer-nav, .footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 6px 0 6px 0;
}
.footer-nav a, .footer-legal a {
  color: #226672;
  font-size: 1rem;
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  transition: color 0.14s;
  padding: 6px 10px;
  border-radius: 10px;
}
.footer-nav a:hover, .footer-nav a:focus, .footer-legal a:hover, .footer-legal a:focus {
  color: #409E6B;
  background: #fff;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 0.94rem;
}
.footer-contact p {
  display: flex;
  align-items: center;
  gap: 7px;
}
.footer-contact img {
  width: 16px; height: 16px;
}
.footer-social {
  display: flex;
  flex-direction: row;
  gap: 15px;
}
.footer-social a img {
  width: 26px; height: 26px;
  filter: grayscale(0.18) opacity(0.92);
  transition: filter 0.15s;
}
.footer-social a:hover img { filter: grayscale(0) opacity(1); }
.footer-copyright {
  font-size: 0.98rem;
  color: #67827a;
  margin-top: 9px;
}

/*--- Thank You Page Specific ---*/
.thank-you-wrapper {
  align-items: center;
  justify-content: center;
  gap: 22px;
  text-align: center;
}
.thank-you-wrapper h1 {
  font-size: 1.8rem;
}

/*--- Text Section Styling ---*/
.text-section {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-bottom: 14px;
}
.text-section h2, .text-section h3 {
  margin-top: 10px;
  color: #409E6B;
}
.text-section ul, .text-section ol {
  margin-left: 22px;
  margin-bottom: 8px;
}

/*--- Responsive Design ---*/
@media (max-width: 1120px) {
  .container {
    max-width: 98vw;
  }
}
@media (max-width: 900px) {
  .feature-grid, .service-list, .about-benefits, .testimonial-slider, .testimonial-list {
    gap: 13px;
  }
  .feature-item, .service-item, .testimonial-card, .about-benefits li {
    min-width: 180px;
    max-width: 98vw;
  }
}
@media (max-width: 768px) {
  .container {
    padding: 0 7vw;
  }
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .feature-grid, .service-list, .about-benefits, .testimonial-slider, .testimonial-list {
    flex-direction: column;
    gap: 16px;
  }
  .feature-item, .service-item, .testimonial-card, .about-benefits li {
    max-width: 98vw;
    min-width: 0;
  }
  .footer-nav, .footer-legal {
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
  }
  .footer-branding {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .content-wrapper, .thank-you-wrapper {
    align-items: flex-start;
    gap: 20px;
    padding: 0;
    width: 100%;
  }
  .section {
    padding: 32px 2vw 32px 2vw;
  }
  .location-section {
    padding: 20px 8px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
}
@media (max-width: 520px) {
  h1 {font-size: 1.5rem;}
  h2 {font-size: 1.24rem;}
  h3 {font-size: 1.04rem;}
  html, body {
    font-size: 15px;
  }
  .container {
    padding: 0 3vw;
  }
  .section { padding: 18px 3vw; }
}


/*--- Cookie Consent Banner ---*/
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 11000;
  background: #fff;
  box-shadow: 0 -4px 28px rgba(22,89,126,0.10);
  border-top: 2px solid #409E6B;
  padding: 24px 18px 24px 18px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 28px;
  justify-content: space-between;
  width: 100vw;
  animation: cookie-slide-in 0.5s cubic-bezier(0.7,0,0.2,1);
}
@keyframes cookie-slide-in {
  from { transform: translateY(120%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-banner p {
  color: #16597E;
  font-size: 1rem;
  max-width: 520px;
}
.cookie-banner-buttons {
  display: flex;
  flex-direction: row;
  gap: 14px;
  align-items: center;
}
.cookie-banner .btn-primary {
  padding: 10px 22px;
  font-size: 1rem;
}
.cookie-banner .btn-secondary,
.cookie-banner .btn-tertiary {
  font-size: 0.96rem;
  padding: 10px 18px;
}
@media (max-width: 650px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 17px;
    padding: 18px 6vw 18px 6vw;
  }
  .cookie-banner-buttons {
    flex-direction: row;
    gap: 7px;
  }
}

/*--- Cookie Preferences Modal ---*/
.cookie-modal {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  z-index: 11001;
  background: rgba(30,60,90, 0.18);
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: all;
  animation: cookie-modal-fade-in 0.39s cubic-bezier(0.7,0,0.3,1);
}
@keyframes cookie-modal-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.cookie-modal-content {
  background: #fff;
  border-radius: 22px;
  padding: 36px 22px 28px 22px;
  box-shadow: 0 5px 38px rgba(22,89,126,0.16), 0 2px 2px rgba(0,0,0,0.02);
  max-width: 355px;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
  position: relative;
  animation: cookie-modal-scale 0.38s cubic-bezier(0.7,0,0.3,1);
}
@keyframes cookie-modal-scale {
  from { transform: scale(0.84); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
.cookie-modal-content h2 {
  color: #16597E;
  font-size: 1.23rem;
  margin-bottom: 5px;
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  margin: 7px 0;
}
.cookie-category label {
  font-size: 1rem;
  font-weight: 500;
  color: #409E6B;
  letter-spacing: 0.01em;
}
.cookie-toggle {
  accent-color: #409E6B;
  width: 22px;
  height: 22px;
  border-radius: 14px;
}
.cookie-modal-close {
  position: absolute;
  top: 15px;
  right: 18px;
  background: #F8ECDB;
  color: #409E6B;
  border: none;
  font-size: 1.3rem;
  border-radius: 14px;
  padding: 3px 10px;
  cursor: pointer;
  transition: background 0.14s, color 0.13s;
}
.cookie-modal-close:hover,
.cookie-modal-close:focus {
  background: #409E6B;
  color: #fff;
}
.cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 11px;
  margin-top: 8px;
}
.cookie-modal .btn-primary,
.cookie-modal .btn-secondary {
  padding: 8px 16px;
  font-size: 0.98rem;
}

/*--- Utility Classes ---*/
.rounded {
  border-radius: 20px !important;
}
.soft-shadow {
  box-shadow: 0 4px 18px 0 rgba(22,89,126,0.10) !important;
}

/* Hide scrollbars for mobile overlay */
.mobile-menu::-webkit-scrollbar { display: none; }
.mobile-menu {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/*--- Focus Styles (Accessibility) ---*/
*:focus {
  outline: 2px solid #409E6B;
  outline-offset: 2px;
  transition: outline 0.10s;
}

/*--- Micro Interactions ---*/
.card, .feature-item, .service-item, .testimonial-card {
  transition: box-shadow 0.17s, transform 0.16s;
}
input[type="checkbox"], input[type="radio"] {
  accent-color: #409E6B;
}

/*--- End PetSaperi CSS ---*/
