/* --- Piccoli Passi: CSS RESET & BASE --- */
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,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,main,menu,nav,output,ruby,section,summary,time,mark,audio,video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section {
  display: block;
}
body {
  line-height: 1.5;
  background: #F9F7F3;
  color: #2C4E80;
  min-height: 100vh;
}
ol, ul {
  list-style: none;
}
blockquote, q {
  quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
  content: '';
  content: none;
}
a {
  background: none;
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  display: block;
  border-radius: 16px;
}
button {
  font-family: inherit;
  border: none;
  outline: none;
  background: none;
  cursor: pointer;
}

/* --- FONT FACE IMPORTS: Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;700&family=Quicksand:wght@700&display=swap');

:root {
  --primary: #2C4E80;
  --secondary: #F1B24A;
  --accent: #F9F7F3;
  --primary-dark: #20375b;
  --secondary-light: #F3CA84;
  --warm-pink: #F78F82;
  --success: #38C172;
  --danger: #E65C4F;

  --heading-font: 'Quicksand', Arial, sans-serif;
  --body-font: 'Nunito', Arial, sans-serif;
  --shadow-sm: 0 2px 6px rgba(241,178,74,0.09);
  --shadow-md: 0 4px 18px rgba(44,78,128,0.13);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 8px;
}

/* --- TYPOGRAPHY --- */
body {
  font-family: var(--body-font);
  font-size: 16px;
  color: var(--primary);
  background: var(--accent);
  letter-spacing: 0.01em;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  color: var(--primary);
  margin-bottom: 16px;
}
h1 { font-size: 2.8rem; line-height: 1.18; margin-bottom: 20px; font-weight: 700; }
h2 { font-size: 2rem; margin-bottom: 18px; font-weight: 700; }
h3 { font-size: 1.25rem; margin-bottom: 14px; font-weight: 700; }
h4 { font-size: 1.1rem; margin-bottom: 10px; font-weight: 700; }
p, li, dd {
  font-size: 1rem;
  margin-bottom: 14px;
  color: #2C4E80;
}
strong, b {
  color: var(--secondary);
  font-weight: 700;
}
.text-section > h2, .text-section > h3 { color: var(--primary); }
.text-section {
  margin-bottom: 28px;
}

a { color: var(--primary-dark); transition: color .2s; }
a:hover, a:focus {
  color: var(--secondary); text-decoration: underline; }

/* --- CONTAINER, LAYOUT, SPACING --- */
.container {
  width: 100%;
  max-width: 990px;
  margin: 0 auto;
  padding: 0 16px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
}
.section, section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
  border-radius: var(--radius-lg);
}

/* --- HERO & CTA --- */
.hero {
  background: var(--secondary-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 48px 0 36px 0;
  margin-bottom: 60px;
  text-align: center;
}
.hero h1 { color: var(--primary); }
.hero p {
  color: #3e4460;
  max-width: 620px;
  margin: 0 auto 22px auto;
  font-size: 1.15rem;
}
.hero .btn-primary {
  margin: 0 auto;
}
.cta {
  display: flex;
  background: var(--accent);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  align-items: center;
  justify-content: center;
  margin-bottom: 60px;
}

/* --- FLEX LAYOUT REQUIREMENTS --- */
.features {
  display: flex;
  flex-direction: column;
  gap: 24px;
  background: #FDF4E8;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  margin-bottom: 60px;
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 14px;
  align-items: center;
  justify-content: space-between;
}
.feature-grid li {
  background: var(--accent);
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 210px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 0;
  transition: box-shadow 0.20s;
}
.feature-grid li img { width: 30px; height: 30px; }
.feature-grid li:hover {
  box-shadow: 0 4px 16px rgba(241,178,74,0.14);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.collection-icons {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 18px;
  margin-bottom: 10px;
}
.collection-icons img {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  background: var(--accent);
  box-shadow: var(--shadow-sm);
}

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--accent);
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  flex: 1 1 260px;
  min-width: 240px;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow 0.20s, transform .15s;
}
.card:hover,
.card:focus-within {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px) scale(1.01);
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

.services-list ul {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-bottom: 14px;
}
.services-list li {
  background: #FFF2DE;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 26px 22px 17px 22px;
  margin-bottom: 0;
  transition: box-shadow 0.18s, transform .12s;
}
.services-list li h3 {
  display: flex;
  align-items: center;
  font-size: 1.11rem;
  gap: 8px;
}
.services-list li h3 span {
  color: var(--secondary);
  background: rgba(241,178,74,0.08);
  border-radius: var(--radius-sm);
  font-size: 0.98rem;
  padding: 2px 10px;
  margin-left: 6px;
}
.services-list li:hover {
  box-shadow: 0 4px 16px rgba(241,178,74,0.14);
  transform: translateY(-2px) scale(1.01);
}

/* --- TESTIMONIAL CARD --- */
.testimonials {
  background: #FFF9F5;
  border-radius: var(--radius-lg);
  margin-bottom: 60px;
  box-shadow: var(--shadow-sm);
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: #FFFDF8;
  margin-bottom: 22px;
  border-radius: var(--radius-md);
  box-shadow: 0 1px 7px rgba(44, 78, 128, 0.09);
  color: #353535;
  font-size: 1.04rem;
  min-width: 220px;
  max-width: 540px;
  transition: box-shadow .18s;
}
.testimonial-card p {
  color: #2C4E80;
  line-height: 1.52;
  font-size: 1.08rem;
}
.testimonial-card span {
  font-weight: 600;
  color: var(--secondary);
  font-size: 1rem;
}
.testimonial-card:hover {
  box-shadow: 0 2px 12px #f1b24a33;
}

/* --- BUTTONS & UI INTERACTION --- */
.btn-primary,
.btn-secondary {
  padding: 13px 36px;
  border: none;
  outline: none;
  border-radius: 32px;
  font-family: var(--heading-font);
  font-size: 1.15rem;
  font-weight: bold;
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  display: inline-block;
  transition: background .18s, color .15s, box-shadow .15s, transform .16s;
  margin-top: 5px;
}
.btn-primary {
  background: var(--secondary);
  color: var(--primary);
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.btn-secondary {
  background: var(--primary);
  color: #fff;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: var(--secondary);
  color: var(--primary);
  box-shadow: var(--shadow-md);
}

/* --- NAVIGATION --- */
header {
  background: var(--accent);
  box-shadow: 0 8px 25px -13px #2c4e8022;
  position: sticky;
  top: 0;
  z-index: 100;
}
.main-nav {
  display: flex;
  align-items: center;
  height: 72px;
  max-width: 990px;
  margin: 0 auto;
  gap: 24px;
  padding: 0 16px 0 16px;
}
.main-nav > a > img {
  height: 42px;
  width: auto;
  margin-right: 20px;
  border-radius: 0;
}
.main-nav ul {
  display: flex;
  flex-direction: row;
  gap: 18px;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
}
.main-nav li {
  margin-bottom: 0;
}
.main-nav li a {
  padding: 9px 18px;
  font-family: var(--heading-font);
  font-size: 1.03rem;
  color: var(--primary);
  border-radius: var(--radius-md);
  transition: background .14s, color .14s;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.main-nav li a:hover, .main-nav li a:focus {
  background: var(--secondary);
  color: var(--primary);
}

/* --- MOBILE MENU --- */
.mobile-menu-toggle {
  display: none;
  position: absolute;
  right: 18px;
  top: 18px;
  z-index: 102;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 2rem;
  transition: background .18s;
  border: none;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}
.mobile-menu-toggle:active, .mobile-menu-toggle:focus {
  background: var(--secondary);
  color: var(--primary);
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(44, 78, 128, 0.86);
  z-index: 900;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  transform: translateX(100%);
  transition: transform .38s cubic-bezier(.5,1,.89,1);
}
.mobile-menu.open {
  transform: translateX(0);
  box-shadow: 0 0 60px 18px #2c4e8080;
}
.mobile-menu .mobile-menu-close {
  background: var(--secondary);
  color: var(--primary);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 2rem;
  position: absolute;
  right: 28px;
  top: 24px;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .18s;
}
.mobile-menu .mobile-menu-close:hover, .mobile-menu .mobile-menu-close:focus {
  background: var(--primary);
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 24px;
  margin-top: 92px;
  padding: 32px 44px 28px 28px;
  min-width: 210px;
}
.mobile-nav a {
  font-family: var(--heading-font);
  font-size: 1.25rem;
  padding: 14px 0;
  color: var(--accent);
  border-radius: var(--radius-md);
  transition: background .14s, color .14s;
  background: transparent;
  width: 100%;
  text-align: right;
  font-weight: 600;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--secondary);
  color: var(--primary);
}

@media (max-width: 1024px) {
  .main-nav {
    padding: 0 8px 0 8px;
  }
}
@media (max-width: 768px) {
  .main-nav ul { display: none; }
  .mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    right: 18px;
    top: 18px;
    z-index: 2001;
  }
  .main-nav {
    justify-content: space-between;
    min-height: 62px;
  }
}

/* --- FOOTER --- */
footer {
  background: var(--primary);
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  margin-top: 60px;
  box-shadow: 0 -6px 30px #2c4e8033;
  padding-top: 36px;
  padding-bottom: 18px;
}
.footer-nav ul {
  display: flex;
  flex-direction: row;
  gap: 30px;
  align-items: center;
  margin-bottom: 8px;
}
.footer-nav li a {
  color: #FFF6EE;
  font-family: var(--heading-font);
  font-size: 1rem;
  border-radius: var(--radius-md);
  padding: 6px 12px;
  transition: background .13s, color .13s;
}
.footer-nav li a:hover,
.footer-nav li a:focus {
  background: var(--secondary);
  color: var(--primary);
}
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}
.footer-contact span {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  color: #fff;
}
.footer-contact img {
  width: 22px;
  height: 22px;
  background: #fff2de;
  padding: 3px;
  border-radius: 8px;
  object-fit: contain;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.footer-brand img {
  width: 54px;
  height: 54px;
  margin-bottom: 5px;
  border-radius: var(--radius-lg);
}
.footer-brand p {
  font-size: 0.97rem;
  color: #fbe6c7;
  margin-bottom: 0;
}

/* --- OTHER ELEMENTS --- */
dt {
  font-family: var(--heading-font);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin-top: 18px;
}
dd {
  margin-bottom: 10px;
  color: #253358;
  font-size: 1rem;
}

ul, ol {
  margin-left: 0;
}
ul li, ol li {
  margin-bottom: 8px;
  padding-left: 0;
  line-height: 1.56;
}
ul li:before, ol li:before {
  display: none !important;
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 900px) {
  .container {
    max-width: 92vw;
    padding: 0 6vw;
  }
  .hero h1 { font-size: 2.2rem; }
}
@media (max-width: 768px) {
  h1 { font-size: 2.0rem; }
  h2 { font-size: 1.35rem; }
  section, .section {
    padding: 27px 7px 24px 7px;
    margin-bottom: 38px;
  }
  .container {
    padding: 0 3vw;
  }
  .feature-grid, .card-container, .content-grid {
    flex-direction: column;
    gap: 18px;
  }
  .testimonials, .features {
    padding: 18px 3px 4px 3px;
  }
  .services-list ul {
    gap: 16px;
  }
  .testimonial-card {
    min-width: 0;
    max-width: 100%;
    width: 100%;
    padding: 13px 8px;
    font-size: 1rem;
  }
  .about .container, .cta .container {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .footer-contact {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
  .footer-nav ul {
    gap: 13px;
    flex-wrap: wrap;
    font-size: 0.99rem;
    justify-content: flex-start;
  }
  .footer-brand img { width: 40px; height: 40px; }
  .hero {
    padding: 36px 0 20px 0;
    margin-bottom: 45px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 22px;
    align-items: flex-start;
  }
}

@media (max-width: 520px) {
  h1 { font-size: 1.26rem; }
  h2 { font-size: 1.08rem; }
  .btn-primary, .btn-secondary {
    font-size: 1.02rem;
    padding: 9px 18px;
  }
  .hero, .features, .testimonials, .cta {
    padding: 13px 0 8px 0;
    margin-bottom: 24px;
  }
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: #FFF4E8;
  color: #2C4E80;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  padding: 22px 15px;
  box-shadow: 0 -7px 24px #F1B24A44;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  font-family: var(--body-font);
  font-size: 1rem;
  animation: showCookieBanner .44s cubic-bezier(.6,1.55,.66,1);
  transition: opacity .16s;
}
@keyframes showCookieBanner {
  from { opacity: 0; transform: translateY(80px); }
  to { opacity: 1; transform: translateY(0); }
}
.cookie-banner-content {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 1rem;
}
.cookie-banner-buttons {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
}
.cookie-banner-btn {
  border-radius: 32px;
  padding: 10px 20px;
  font-family: var(--heading-font);
  font-size: 1rem;
  border: none;
  background: var(--primary);
  color: #fff;
  transition: background .15s, color .14s, box-shadow .14s;
  margin: 0 2px;
  box-shadow: var(--shadow-sm);
}
.cookie-banner-btn.accept {
  background: var(--success);
}
.cookie-banner-btn.reject {
  background: var(--danger);
}
.cookie-banner-btn.settings {
  background: var(--secondary);
  color: var(--primary);
}
.cookie-banner-btn:hover, .cookie-banner-btn:focus {
  box-shadow: 0 2px 10px #2c4e8044;
  background: var(--primary-dark);
  color: #FFF4E8;
}
.cookie-banner-btn.accept:hover, .cookie-banner-btn.accept:focus {
  background: #269855;
}
.cookie-banner-btn.reject:hover, .cookie-banner-btn.reject:focus {
  background: #CB493B;
}
.cookie-banner-btn.settings:hover, .cookie-banner-btn.settings:focus {
  background: var(--primary);
  color: #fff;
}

/* --- COOKIE SETTINGS MODAL --- */
.cookie-modal-backdrop {
  position: fixed;
  z-index: 9500;
  top:0; left:0; width:100vw; height:100vh;
  background: rgba(44,78,128,0.44);
  transition: opacity .2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cookie-modal {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 6px 32px #2c4e8033;
  padding: 36px 26px 26px 26px;
  min-width: 300px;
  max-width: 96vw;
  min-height: 180px;
  z-index: 9502;
  display: flex;
  flex-direction: column;
  gap: 22px;
  animation: cookieModalBounce .38s cubic-bezier(.73,1.45,.23,1.19);
}
@keyframes cookieModalBounce {
  from { opacity: 0; transform: scale(.9) translateY(50px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.cookie-modal h2 {
  font-family: var(--heading-font);
  margin-bottom: 0;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
}
.cookie-modal .category-label {
  color: var(--primary-dark);
  font-weight: 600;
  font-family: var(--body-font);
  font-size: 1.04rem;
}
.cookie-modal .toggle {
  position: relative;
  width: 52px;
  height: 28px;
  background: #f1b24a20;
  border-radius: 28px;
  transition: background .13s;
  margin-left: 8px;
  margin-right: 6px;
}
.cookie-modal .toggle input {
  opacity: 0;
  width: 100%;
  height: 100%;
  position: absolute;
}
.cookie-modal .toggle .slider {
  position: absolute;
  left: 2px;
  top: 2px;
  height: 24px; width: 24px;
  border-radius: 50%;
  background: var(--secondary);
  box-shadow: 0 1px 7px #f1b24a33;
  transition: left .16s, background .14s;
}
.cookie-modal .toggle input:checked + .slider {
  left: 26px;
  background: var(--primary);
}
.cookie-modal .toggle[aria-disabled="true"] {
  opacity: 0.65;
  pointer-events: none;
}
.cookie-modal .toggle[aria-disabled="true"] .slider {
  background: #bbb;
}
.cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 18px;
  justify-content: flex-end;
  padding-top: 20px;
}
@media (max-width: 540px) {
  .cookie-modal {
    padding: 22px 6vw 16px 6vw;
    min-width: 0;
    max-width: 99vw;
  }
}

/* --- MICRO-INTERACTIONS & TRANSITIONS --- */
.card, .feature-grid li, .testimonial-card,
.btn-primary, .btn-secondary,
.services-list li, .collection-icons img {
  transition: box-shadow 0.19s cubic-bezier(.4,.22,.46,1.19), transform 0.16s;
}
.btn-primary, .btn-secondary, .cookie-banner-btn {
  transition: background .15s, color .14s, box-shadow .14s, transform .14s;
}

/* --- VISUAL ELEMENTS: SOFT SHADOWS, ROUNDED CORNERS --- */
.card, .testimonial-card, .feature-grid li,
.services-list li, .cookie-modal, .hero, .features, .testimonials, .cta, .footer-brand img, .footer-contact img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

/* --- MINIMUM GAP BETWEEN CONTENT CARDS/SECTIONS --- */
.card, .testimonial-card, .services-list li, .feature-grid li {
  margin-bottom: 20px;
}
.section,section,footer,.hero,.features,.testimonials,.about,.services,.cta {
  margin-bottom: 60px;
}
.card-container, .card-grid, .content-grid, .feature-grid{
  gap: 20px;
}

/* --- ENSURE NO OVERLAPPING & NO ABSOLUTE FOR CONTENT --- */
.card, .testimonial-card, .feature-grid li, .services-list li {
  position: relative;
}

/* --- MISC --- */
::-webkit-scrollbar {
  width: 8px;
  background: #fdf4e8;
}
::-webkit-scrollbar-thumb {
  background: #F1B24A;
  border-radius: 8px;
}

/* --- Utility --- */
.text-center {
  text-align: center !important;
}
.mt-0 { margin-top: 0 !important; }

/* --- Hide cookie banner or mobile menu on close (utility classes, handled by JS) --- */
.cookie-banner.hide, .cookie-modal-backdrop.hide { display: none !important; opacity: 0; transition: opacity .21s; }
.mobile-menu.hide { display: none !important; }
