/* PulitoScelto Torino - Warm & Friendly Responsive Flexbox CSS
--------------------------------------------------------------
CSS Reset & Normalize
--------------------------------------------------------------*/
html {
  box-sizing: border-box;
  font-size: 16px;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  background: #F2F4F8;
  color: #2c2a29;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {
  max-width: 100%;
  display: block;
  border-radius: 16px;
}
a {
  color: #245674;
  text-decoration: none;
  transition: color .2s;
}
a:hover, a:focus {
  color: #178c44;
  outline: none;
}
ul, ol {
  margin-left: 1.4em;
  margin-bottom: 1.5em;
}
li + li {
  margin-top: 0.5em;
}
strong, b {
  color: #245674;
  font-weight: 600;
}
hr {
  border: none;
  border-top: 1px solid #CCE0EC;
  margin: 1.5em 0;
}

/* Typography hierarchy */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #245674;
  font-weight: 700;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.25rem;
  margin-bottom: 24px;
}
h2 {
  font-size: 1.75rem;
  margin-bottom: 18px;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
  color: #248c62;
  font-weight: 600;
}
h4, h5, h6 {
  font-size: 1rem;
}
p {
  margin-bottom: 15px;
  color: #3a3a3a;
  font-size: 1rem;
}
.text-section a {
  color: #178c44;
  font-weight: 500;
  text-decoration: underline;
}

/* Layout Containers & Utility Classes */
.container {
  width: 100%;
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 16px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.text-section {
  background: #fff;
  border-radius: 24px;
  padding: 32px 20px;
  box-shadow: 0 2px 12px rgba(36,86,116, 0.05);
  margin-bottom: 32px;
}

/* Mandatory Section Spacing & Card Flex Patterns */
section {
  margin-bottom: 60px;
  padding: 40px 0 0 0;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(36,86,116,0.09);
  margin-bottom: 20px;
  padding: 24px;
  position: relative;
  transition: box-shadow .18s;
  display: flex;
  flex-direction: column;
  min-width: 260px;
}
.card:hover {
  box-shadow: 0 6px 32px rgba(49,181,103,0.11);
}
.content-grid, .feature-grid, .review-grid, .testimonial-slider {
  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;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 24px;
  background: #fffbee;
  border-radius: 20px;
  box-shadow: 0 4px 18px rgba(36,86,116,0.10);
  margin-bottom: 20px;
  max-width: 350px;
  flex: 1 1 300px;
  transition: box-shadow .19s;
}
.testimonial-card:hover {
  box-shadow: 0 8px 32px rgba(49,181,103,0.13);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

@media (max-width: 991px) {
  .container {
    max-width: 98vw;
    padding: 0 8px;
  }
  .content-wrapper {
    gap: 14px;
  }
  .text-section {
    padding: 24px 10px;
    border-radius: 18px;
  }
}
@media (max-width: 768px) {
  section {
    padding: 28px 0 0 0;
    margin-bottom: 36px;
  }
  .card-container, .content-grid, .feature-grid, .review-grid, .testimonial-slider {
    flex-direction: column;
    gap: 20px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
  }
  .testimonials {
    flex-direction: column;
  }
}

/* Header & Navigation */
header {
  width: 100%;
  background: #fff;
  box-shadow: 0 6px 16px rgba(36,86,116, 0.07);
  position: sticky;
  top: 0;
  z-index: 30;
}
header nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 32px;
  padding: 10px 0;
  flex-wrap: wrap;
}
header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: #245674;
  border-radius: 16px;
  padding: 8px 16px;
  transition: background .15s, color .15s;
  margin: 0 2px 0 0;
}
header nav a.ctaPrimary {
  background: #31B567;
  color: #fff;
  border-radius: 28px;
  font-weight: 700;
  padding: 10px 20px;
  margin-left: 12px;
  box-shadow: 0 2px 8px rgba(49,181,103,0.11);
  transition: background .14s, box-shadow .18s;
}
header nav a.ctaPrimary:hover,
header nav a.ctaPrimary:focus {
  background: #178c44;
  color: #fff;
  box-shadow: 0 6px 18px rgba(49,181,103,0.19);
}
header nav a:hover,
header nav a:focus {
  background: #e4f7ed;
  color: #178c44;
}
header nav a img {
  vertical-align: middle;
  max-height: 38px;
  margin-right: 10px;
  border-radius: 12px;
}

/* Hide nav links on mobile */
@media (max-width: 991px) {
  header nav {
    display: none;
  }
}

/* MOBILE MENU */
.mobile-menu-toggle {
  display: none;
  background: #fff;
  border: none;
  font-size: 2.2rem;
  color: #245674;
  cursor: pointer;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  position: absolute;
  right: 28px;
  top: 15px;
  z-index: 101;
  box-shadow: 0 2px 8px rgba(36,86,116,0.12);
  transition: background 0.13s, color 0.13s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #e4f7ed;
  color: #178c44;
}
@media (max-width: 991px) {
  .mobile-menu-toggle { display: block; }
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #fffbee;
  box-shadow: 0 12px 48px rgba(36,86,116,0.18);
  padding: 36px 0 28px 0;
  z-index: 180;
  transform: translateX(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform .35s cubic-bezier(.6, .11, .49, .98), opacity .26s;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  background: #fbd3bd;
  color: #245674;
  border: none;
  font-size: 2rem;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  margin-left: 22px;
  margin-bottom: 28px;
  align-self: flex-end;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  box-shadow: 0 2px 10px rgba(249, 181, 132, 0.11);
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #ffd5af;
  color: #ee6401;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  align-items: flex-start;
  padding-left: 32px;
}
.mobile-nav a {
  padding: 12px 18px;
  border-radius: 20px;
  color: #178c44;
  background: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 4px;
  box-shadow: 0 2.5px 10px rgba(36,86,116,.05);
  transition: background .11s, color .13s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #e4f7ed;
  color: #178c44;
}

@media (min-width: 992px) {
  .mobile-menu,
  .mobile-menu-toggle {
    display: none !important;
  }
}

/* HERO CTA Buttons */
.ctaPrimary {
  display: inline-block;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff !important;
  background: #31B567;
  padding: 12px 30px;
  border-radius: 30px;
  margin-top: 10px;
  box-shadow: 0 2px 8px rgba(49,181,103,0.12);
  border: none;
  transition: background .18s, box-shadow .17s, transform .13s;
  cursor: pointer;
  letter-spacing: .02em;
  outline: 0;
}
.ctaPrimary:focus, .ctaPrimary:hover {
  background: #178c44;
  color: #fff;
  box-shadow: 0 8px 30px rgba(49,181,103,0.19);
  transform: translateY(-2px) scale(1.025);
}


/* Cards, Features, Testimonials */
.feature-grid > div {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(36,86,116,0.07);
  padding: 24px 16px 18px 16px;
  min-width: 190px;
  flex: 1 1 220px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 13px;
  transition: box-shadow .17s;
}
.feature-grid > div:hover {
  box-shadow: 0 8px 28px rgba(249, 181, 132, 0.12);
}
.feature-grid img {
  width: 46px;
  height: 46px;
  margin-bottom: 8px;
  border-radius: 15px;
  background: #fbd3bd;
  padding: 8px;
}

.star-rating {
  font-size: 1.1rem;
  color: #ffc857;
  margin: 0 0 10px 0;
  letter-spacing: 2px;
}

.review-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: flex-start;
}
.review-grid .testimonial-card {
  flex: 1 1 300px;
  min-width: 260px;
  background: #fffbea;
}

.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 16px;
  margin-bottom: 8px;
}
.testimonial-card p {
  color: #333;
  font-size: 1.11rem;
  font-style: italic;
}
.testimonial-card span {
  font-size: 0.98rem;
  color: #8c660c;
  margin-top: -6px;
  font-family: 'Montserrat', Arial, sans-serif;
}

.faq-list h2 {
  font-size: 1.18rem;
  margin-bottom: 7px;
  color: #d28a09;
}
.faq-list p {
  margin-bottom: 14px;
}

/* Contact Info, Footer Info */
.contact-info,
.footer-info {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  align-items: center;
  margin-top: 6px;
  font-size: 1rem;
}
.contact-info p,
.footer-info span {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0;
}
.contact-info img,
.footer-info img {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  margin-right: 4px;
}
.map-placeholder {
  background: #fbf7f4;
  border-radius: 18px;
  padding: 16px;
  margin: 18px 0 8px 0;
}

/* Footer */
footer {
  background: #245674;
  color: #fffedd;
  padding: 36px 0 24px 0;
  margin-top: 48px;
  box-shadow: 0 -2px 12px rgba(36,86,116,0.10);
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  justify-content: flex-start;
  margin-bottom: 17px;
}
footer nav a {
  color: #fff;
  padding: 6px 16px;
  border-radius: 10px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  background: transparent;
  transition: background .13s, color .11s;
  font-size: 1rem;
}
footer nav a:hover, footer nav a:focus {
  background: #fbd3bd;
  color: #245674;
}
.footer-info {
  margin-top: 0;
  color: #fffedd;
  font-size: 0.97rem;
  gap: 18px;
  flex-direction: row;
}
.footer-info span {
  margin-bottom: 6px;
}
@media (max-width: 768px) {
  .footer-info, .contact-info {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }
  footer {
    padding: 26px 0 15px 0;
  }
  footer nav {
    gap: 12px;
    font-size: 0.97rem;
    margin-bottom: 10px;
  }
}

/* Lists, Steps, Tips */
ul, ol {
  padding-left: 1.1em;
  margin-bottom: 22px;
}
ol li, ul li {
  margin-bottom: 9px;
  font-size: 1rem;
  color: #34423b;
}

/* Animations & Transitions */
.section, .text-section, .card, .feature-grid > div, .testimonial-card {
  transition: box-shadow .23s cubic-bezier(.29,.47,.58,.97), transform .18s;
}
.card:hover, .testimonial-card:hover, .feature-grid > div:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 8.5px 32px rgba(36,86,116,0.17);
}

/* Custom Microinteractions for Buttons */
.ctaPrimary:active {
  background: #096c2c;
  transform: scale(0.98);
}
.mobile-menu-toggle:active {
  background: #dbefff;
}
.mobile-nav a:active {
  background: #fbd3bd;
  color: #245674;
}

/* Cookie Consent Banner Styles */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  background: #fffbee;
  box-shadow: 0 -2px 18px rgba(36,86,116,0.10);
  z-index: 1000;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  padding: 24px 36px 20px 22px;
  font-size: 1rem;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  opacity: 1;
  transform: translateY(0);
  transition: transform .3s, opacity .3s;
}
.cookie-banner.hide {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner p {
  color: #3a3a3a;
  flex: 1 1 300px;
  font-size: 1rem;
  margin-bottom: 0;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 14px;
}
.cookie-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  padding: 8px 22px;
  border-radius: 20px;
  border: none;
  margin-left: 0;
  margin-right: 0;
  cursor: pointer;
  font-weight: 600;
  transition: background .18s, color .13s, box-shadow .14s;
  box-shadow: 0 2px 10px rgba(49,181,103,.04);
}
.cookie-btn.accept {
  background: #31B567;
  color: #fff;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #178c44;
  box-shadow: 0 8px 20px rgba(49,181,103,0.13);
}
.cookie-btn.reject {
  background: #fbd3bd;
  color: #c16a12;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #ffd5af;
  color: #ee6401;
}
.cookie-btn.settings {
  background: #245674;
  color: #fff;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #178c44;
  color: #fff;
}
@media (max-width:600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 13px;
    padding: 16px 8px 13px 8px;
    font-size: 0.99rem;
  }
  .cookie-banner .cookie-actions {
    width: 100%;
    gap: 7px;
    flex-direction: row;
    justify-content: flex-start;
  }
}

/* Cookie Preferences Modal */
.cookie-modal-overlay {
  position: fixed;
  z-index: 2000;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(38, 47, 64, 0.29);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 1;
  pointer-events: auto;
  transition: opacity .33s;
}
.cookie-modal-overlay.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal {
  max-width: 450px;
  width: 90vw;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 16px 56px rgba(36,86,116,0.16);
  padding: 30px 28px 20px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  animation: cookiePop .55s cubic-bezier(.25, .89, .59, 1.05);
}
@keyframes cookiePop {
  from { transform: scale(0.82) translateY(38px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}
.cookie-modal h2 {
  color: #245674;
  font-size: 1.28rem;
  margin-bottom: 9px;
}
.cookie-modal .cookie-category {
  background: #f2f6ee;
  padding: 9px 14px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  gap: 16px;
}
.cookie-modal .cookie-category.essential {
  background: #e2ffe1;
}
.cookie-modal .cookie-category label {
  color: #245674;
}
.cookie-modal .cookie-toggle {
  accent-color: #178c44;
  width: 26px; height: 26px;
}
.cookie-modal .cookie-legend {
  font-size: 0.97rem;
  color: #575757;
  margin-bottom: 6px;
}
.cookie-modal .cookie-buttons {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}
.cookie-modal .cookie-close {
  position: absolute; top: 12px; right: 16px;
  background: transparent;
  border: none;
  color: #245674;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 10px;
  transition: background .13s, color .11s;
}
.cookie-modal .cookie-close:hover, .cookie-modal .cookie-close:focus {
  background: #fbd3bd;
  color: #ee6401;
}
@media (max-width:500px) {
  .cookie-modal { padding: 18px 4px 16px 8px; }
}

/* Misc Fixes & Responsive Adjustments */
::-webkit-scrollbar {
  width: 11px;
  background: #f3f3f3;
}
::-webkit-scrollbar-thumb {
  background: #e4f7ed;
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: #d4ecd7;
}

::selection {
  background: #fff0c1;
  color: #136d4b;
}

/* Accessibility: focus states on interactive elements */
:focus {
  outline: 2px dashed #178c44;
  outline-offset: 2px;
}

/* Special Typography Weights for Brand Personality */
body, p, li {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 400;
}
h1, h2, h3, .ctaPrimary, .mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
}

/**** END OF CSS ****/
