/* 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,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;
}
html { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; }
body { line-height: 1.5; background: #FFF; color: #2D3958; min-height:100vh;}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul,ol { list-style: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }
:root {
  --color-primary: #2D3958;
  --color-secondary: #5FA47D;
  --color-accent: #F3E8D7;
  --color-fun1: #FFB65F;
  --color-fun2: #FF4C83;
  --color-fun3: #5DA4FA;
  --color-fun4: #FFD93A;
  --color-bg-card: #FFF;
  --color-shadow: rgba(45, 57, 88, 0.09);
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Open Sans', Arial, Helvetica, sans-serif;
}

/* FONTS (use Google fonts in HTML where possible) */
body {
  font-family: var(--font-body);
  font-size: 16px;
  background: var(--color-accent);
  color: var(--color-primary);
}
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-primary);
  margin-bottom: 16px;
  line-height: 1.1;
}
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.2rem; }
h4,h5,h6 { font-family: var(--font-display); margin-bottom:12px; }
p, ul, li, ol, dd, dl, address { font-size: 1rem; line-height: 1.7; margin-bottom: 8px; }
.tagline {
  font-family: var(--font-display);
  color: var(--color-fun2);
  font-size: 1.3rem;
  margin-bottom: 18px;
}

/* LAYOUT CONTAINER & FLEXBOX RULES */
.container {
  width: 100%;
  max-width: 1160px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* CRITICAL SPACING REQUIREMENTS */
section, .section {
  margin-bottom: 60px;
  padding: 40px 0 40px 0;
  background: none;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  background: var(--color-bg-card);
  position: relative;
  border-radius: 22px;
  box-shadow: 0 2px 14px var(--color-shadow);
  padding: 28px 24px;
  min-width: 260px;
  min-height: 180px;
  transition: box-shadow 0.24s, transform 0.22s;
  border:2px solid var(--color-accent);
  display: flex; flex-direction: column; justify-content: flex-start;
}
.card:hover { 
  transform: translateY(-6px) scale(1.025);
  box-shadow: 0 10px 32px rgba(95,164,125,0.18), 0 2px 14px var(--color-shadow);
  border-color: var(--color-secondary);
}
.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 30px;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 2px 18px var(--color-shadow);
  margin-bottom: 24px;
  color: #2D3958;
  font-size: 1.08rem;
  border-left: 7px solid var(--color-fun2);
  transition: box-shadow 0.22s, border-color 0.21s;
}
.testimonial-card:hover {
  box-shadow: 0 6px 24px var(--color-fun3);
  border-left: 7px solid var(--color-fun3);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.text-section {
  margin-bottom: 20px;
}

/* HERO SECTION */
.hero {
  background: linear-gradient(90deg, var(--color-fun1) 0%, var(--color-accent) 100%);
  padding: 60px 0 60px 0;
  border-radius: 0 0 64px 0;
  box-shadow: 0 4px 24px var(--color-shadow);
  margin-bottom: 60px;
  position: relative;
  min-height: 330px;
  display: flex;
  align-items: center;
}
.hero h1 {
  font-size: 2.4rem;
  color: var(--color-primary);
  margin-bottom: 10px;
  text-shadow: 0 2px 0 #ffeedd44;
}
.hero .cta-button {
  margin-top: 16px;
}

/* NAVIGATION */
header {
  background: #fff;
  box-shadow: 0 2px 14px var(--color-shadow);
  z-index: 10;
  position: sticky; top: 0;
  width: 100%;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top:12px;
  padding-bottom:12px;
  gap: 24px;
}
.main-nav {
  display: flex;
  gap: 22px;
}
.main-nav a {
  color: var(--color-primary);
  font-family: var(--font-display);
  font-weight: 700;
  padding: 4px 14px 7px 14px;
  border-radius: 13px;
  font-size: 1rem;
  transition: background 0.14s, color 0.13s;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--color-fun1);
  color: var(--color-fun2);
}
.cta-button {
  background: var(--color-fun2);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 800;
  padding: 12px 26px;
  border-radius: 25px;
  border:none;
  cursor:pointer;
  box-shadow: 0 4px 25px var(--color-shadow);
  transition: background 0.18s, transform 0.18s, box-shadow 0.18s;
  display: inline-block;
  margin-top:6px;
  margin-bottom:9px;
  letter-spacing:0.04em;
  outline: none;
}
.cta-button:hover, .cta-button:focus {
  background: var(--color-fun3);
  color: #2D3958;
  box-shadow: 0 6px 20px var(--color-secondary);
  transform: translateY(-2px) scale(1.025);
}

/* FOOTER */
footer {
  background: #fff;
  border-top: 4px solid var(--color-secondary);
  padding: 32px 0 16px 0;
  margin-top: 60px;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  align-items: flex-start;
  justify-content: space-between;
  font-size: 0.97rem;
}
.footer-nav {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
}
.footer-nav a {
  color: var(--color-secondary);
  font-weight: 700;
  font-family: var(--font-display);
  font-size: 0.99rem;
  padding:4px 10px;
  border-radius: 7px;
  transition: background .14s, color .13s;
}
.footer-nav a:hover, .footer-nav a:focus {
  background: var(--color-secondary);
  color: #fff;
}
.address {
  font-style: normal;
  margin-bottom: 8px;
}

/* FEATURES & CARDS */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  margin-bottom: 24px;
}
.feature-grid li {
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 2px 12px var(--color-shadow);
  min-width: 210px;
  max-width: 250px;
  padding: 24px 20px 18px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  border-left:6px solid var(--color-fun3);
  transition: box-shadow .17s, border-color .15s;
  margin-bottom: 20px;
}
.feature-grid li:hover {
  box-shadow: 0 8px 32px var(--color-fun1);
  border-left:6px solid var(--color-fun2);
}
.feature-grid img {
  height: 42px; width: 42px; margin-bottom: 8px; background:var(--color-accent); border-radius:14px;padding:4px;
}
.service-list, .service-cards {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.service-cards {
  flex-wrap: wrap;
  flex-direction: row;
  gap: 24px;
}
.service-cards li {
  background: #fff;
  border-radius: 19px;
  box-shadow: 0 2px 14px var(--color-shadow);
  padding: 24px 20px 18px 20px;
  min-width: 220px;
  max-width: 330px;
  text-align: left;
  border-top:6px solid var(--color-fun1);
  transition: transform .17s, box-shadow .16s, border-color .14s;
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
}
.service-cards li:hover {
  transform: translateY(-4px) scale(1.019);
  box-shadow: 0 10px 32px var(--color-fun4);
  border-top:6px solid var(--color-window);
}
.service-cards img {height:40px;width:40px;margin-bottom:10px;}
.price { 
  font-size: 1rem; font-weight: bold; color: var(--color-fun2);
}
.process-steps, .step-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 0 0 24px 0;
}
.process-steps li, .step-list li {
  background: #fff;
  padding: 24px 18px 18px 20px;
  border-radius: 19px;
  box-shadow: 0 2px 14px var(--color-shadow);
  min-width:210px;
  max-width:320px;
  font-size: 1.03rem;
  border-bottom: 5px solid var(--color-fun3);
  margin-bottom: 20px;
  transition: box-shadow .18s, border-color .12s;
}
.process-steps li:hover, .step-list li:hover {
  box-shadow: 0 8px 28px var(--color-fun2);
  border-bottom: 5px solid var(--color-fun4);
}
.process-steps img, .step-list img {
  height:34px;width:34px;margin-bottom:10px;background:var(--color-accent); border-radius:10px;padding:2px;
}

/* CTA SUBTEXT */
.cta-subtext {font-size:0.99rem; color: var(--color-fun2);margin-top:10px;}

/* FAQ LIST */
.faq-list dt {
  font-family: var(--font-display); font-weight: 700; font-size: 1.07rem;
  margin-bottom: 5px;
  color: var(--color-fun2);
}
.faq-list dd {
  margin-bottom: 19px;
  margin-left: 0;
  padding-left: 18px;
  border-left: 3px solid var(--color-fun1);
  font-size:1.03rem;
  color: var(--color-primary);
}

/* TIMELINE (Come Lavoriamo) */
.timeline {
  margin-top: 12px;
  padding: 14px 22px;
  background: var(--color-accent);
  border-radius: 16px;
  color: var(--color-fun2);
  font-family: var(--font-display);
  font-size: 1.05rem;
  box-shadow: 0 2px 8px var(--color-shadow);
}

/* MAP LOCATION (contatti) */
.map-location {
  background: var(--color-fun4);
  color: var(--color-primary);
  padding: 14px 18px;
  margin: 20px 0 0 0;
  border-radius: 12px;
  box-shadow: 0 1px 7px rgba(255,217,58,0.09);
}

/* DL in privacy, policy, etc */
dt, dd {
  display: block;
}

/* Cookie Banner & Modal */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #fff;
  color: var(--color-primary);
  box-shadow: 0 -2px 18px var(--color-shadow);
  z-index: 3000;
  padding: 20px 15px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  justify-content: center;
  animation: bounceInUp 0.5s cubic-bezier(.63,-0.31,.4,1.52);
  font-size: 1rem;
  min-height: 61px;
}
@keyframes bounceInUp {
  0% {transform: translateY(100%);} 75% {transform:translateY(-17px);} 100% {transform:translateY(0);}
}
.cookie-banner .cookie-buttons {
  display: flex; flex-direction: row; gap: 10px;
}
.cookie-btn {
  font-family: var(--font-display);
  font-size: 1rem;
  border: none; border-radius: 13px;
  padding:9px 20px;
  cursor:pointer;
  transition: background .17s, color .12s;
  box-shadow: 0 2px 8px var(--color-shadow);
}
.cookie-btn.accept {background: var(--color-fun2);color: #fff;}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {background: var(--color-fun3);color:var(--color-primary);}
.cookie-btn.reject {background: #eee; color: var(--color-fun2);}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {background: #ffdbe9; color: var(--color-fun2);}
.cookie-btn.settings {background: var(--color-fun1);color: var(--color-primary);}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {background: #FFF5E6;}

.cookie-modal-overlay {
  position: fixed; z-index: 3200; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(45,57,88,0.30);
  display: flex; align-items: center; justify-content: center;
  transition: opacity .4s;
  opacity: 1;
  animation: fadeIn .3s;
}
@keyframes fadeIn { from{opacity:0;} to{opacity:1;} }
.cookie-modal {
  background: #fff;
  border-radius: 22px;
  padding: 32px 28px 22px 28px;
  min-width: 320px;
  max-width: 96vw;
  box-shadow: 0 8px 40px var(--color-shadow);
  color: var(--color-primary);
  font-size: 1rem;
  position: relative;
}
.cookie-modal .modal-header {display:flex;align-items:center;justify-content:space-between;gap:12px;}
.cookie-modal .modal-header h3 {margin-bottom: 0;}
.cookie-modal-close {
  background: none;
  border: none;
  font-size: 2.2rem;
  color: var(--color-fun2);
  cursor: pointer;
  padding: 2px 8px;
  border-radius:13px;
  transition: background .15s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {background: #FDE4F0;}
.cookie-categories {
  margin-top: 20px;
  display: flex; flex-direction: column; gap: 17px;
}
.cookie-category {
  display: flex; align-items: center; gap: 14px;
  padding:10px 0;
  border-bottom:1.5px dashed #F3E8D7;
}
.cookie-category input[type=checkbox], .cookie-category input[type=radio] {
  width: 20px; height: 20px; accent-color: var(--color-fun2);
}
.cookie-category label {
  font-weight: 600; color: var(--color-fun2);
}
.cookie-category p { margin-bottom: 0; font-size: 0.96rem; }

/* Mobile burger menu */
.mobile-menu-toggle {
  background: none;
  border: none;
  font-size: 2.2rem;
  color: var(--color-fun2);
  display: none;
  cursor: pointer;
  margin-left: 14px;
  outline: none;
  transition: color .14s, background .15s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  color: var(--color-fun4);
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; right: 0; left: 0;
  bottom: 0;
  height: 100vh;
  width: 100vw;
  background: #fff;
  z-index: 2000;
  transform: translateX(100vw);
  transition: transform .35s cubic-bezier(.88, .06, .11, 1.02);
  box-shadow: 0 0 54px var(--color-shadow);
  opacity: 1;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
}
.mobile-menu-close {
  background: none;
  border: none;
  color: var(--color-fun2);
  font-size: 2.5rem;
  position: absolute;
  top: 18px;
  right: 25px;
  cursor: pointer;
  outline: none;
  border-radius: 15px;
  transition: background .16s;
  z-index: 21;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #FFD7F2;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
  margin-top: 92px;
  margin-left: 36px;
  font-size: 1.2rem;
}
.mobile-nav a {
  color: var(--color-fun2);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.17rem;
  padding: 10px 25px 10px 10px;
  border-radius: 12px;
  transition: background .15s, color .13s;
  min-width: 185px;
  display: block;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-fun3);
  color: #fff;
}

/* ANIMATIONS */
@keyframes wiggle {
  0% { transform: rotate(-3deg); }
  50% { transform: rotate(5deg); }
  100% { transform: rotate(-3deg); }
}
.cta-button:hover, .cta-button:focus {
  animation: wiggle 0.44s cubic-bezier(.46,1.53,.2,.96) 1;
}
.card:hover,
.service-cards li:hover,
.feature-grid li:hover,
.testimonial-card:hover {
  animation: cardPop 0.18s cubic-bezier(.5,1.65,.6,1.19) 1;
}
@keyframes cardPop {
  0% {transform: scale(1);}
  70% {transform: scale(1.04);}
  100% {transform: scale(1.025);}
}

/* RESPONSIVE */
@media (max-width: 1000px) {
  footer .container, header .container {
    flex-direction: column; align-items: flex-start; gap: 18px;
  }
}
@media (max-width: 900px) {
  .feature-grid, .service-cards, .process-steps, .step-list, .content-grid {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }
  .feature-grid li, .service-cards li, .process-steps li, .step-list li {
    min-width: 140px;
    max-width: 100%;
    margin-bottom: 12px;
  }
}
@media (max-width: 768px) {
  .content-grid, .feature-grid,.service-cards,.process-steps,.step-list,footer .container, header .container {
    flex-direction: column;
    gap:18px;
    align-items: stretch;
  }
  .text-image-section {
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
  }
  .main-nav {
    display: none;
  }
  .cta-button {
    margin-left: 0; margin-right: 0;
  }
  .mobile-menu-toggle {
    display: inline;
  }
  header .container {
    gap:12px;
  }
  .hero h1 {
    font-size: 2rem;
  }
  section, .section {
    padding: 26px 0 30px 0;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 13px;
  }
  .cookie-modal {
    min-width: 0;
    padding: 22px 13px 15px 13px;
  }
  .mobile-nav {
    margin-left: 16px;
  }
}
@media (max-width: 540px) {
  .container {
    padding-left: 6vw; padding-right: 6vw;
  }
  .feature-grid img, .service-cards img, .process-steps img, .step-list img { height:29px;width:29px;}
}

/* WHITE SPACE UTILIZATION */
main section, main .section {
  margin-bottom: 60px;
}
.content-wrapper > *:not(:last-child) {
  margin-bottom: 16px!important;
}

/* FORMATTING LINKS & TEXT */
a {
  transition: color .13s, background .13s;
}
a:focus { outline: 2px dashed var(--color-fun2); outline-offset:2px; }

/* Misc & Utility */
::-webkit-input-placeholder { color:#bbb;}
::-moz-placeholder { color:#bbb;}
:-ms-input-placeholder { color:#bbb;}
::placeholder { color:#bbb;}

/********* END OF STYLE ********/
