/* ----------------------------------------------------------
   RESET & BASE STYLES: Minimalist, Clean, Mobile-First
-----------------------------------------------------------*/
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;
}
article, aside, details, figcaption, figure,
footer, header, hgroup, main, menu, nav, section {
  display: block;
}
body {
  line-height: 1.55;
  background: #fff;
  color: #2A2C34;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #2A2C34;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #8B9DA8;
  outline: none;
}
ul, ol {
  list-style: none;
}
button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  background: none;
  border: none;
  color: inherit;
  outline: none;
  appearance: none;
}
button {
  cursor: pointer;
}

/* ----------------------------------------------------------
   BRAND TYPOGRAPHY SCALE & HIERARCHY
-----------------------------------------------------------*/
h1, .h1 {
  font-family: 'Merriweather', Georgia, serif;
  font-weight: 700;
  font-size: 2.5rem;
  line-height: 1.1;
  color: #2A2C34;
  letter-spacing: -1.5px;
  margin-bottom: 24px;
}
h2, .h2 {
  font-family: 'Merriweather', Georgia, serif;
  font-weight: 700;
  font-size: 2rem;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #2A2C34;
  letter-spacing: -1px;
}
h3, .h3 {
  font-weight: 700;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: #2A2C34;
}
h4, .h4 {
  font-weight: 700;
  font-size: 1.1rem;
  color: #2A2C34;
}
p, .subheadline {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  color: #2A2C34;
  margin-bottom: 16px;
  line-height: 1.6;
}
.subheadline {
  color: #8B9DA8;
  font-size: 1.1rem;
  margin-bottom: 24px;
}
strong {
  font-weight: bold;
}

/* ----------------------------------------------------------
   CONTAINER & LAYOUT WRAPPERS
-----------------------------------------------------------*/
.container {
  width: 100%;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 20px;
}
.text-section {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

/* ----------------------------------------------------------
   SECTIONS & SPACING (MANDATORY)
-----------------------------------------------------------*/
section {
  width: 100%;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 14px rgba(42,44,52,0.04);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 250px;
  flex: 1 1 340px;
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.text-image-section {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 24px;
  background: #F8F8F8;
  border-radius: 10px;
  box-shadow: 0 1px 6px rgba(42,44,52,0.05);
  margin-bottom: 20px;
  min-width: 240px;
  max-width: 400px;
  transition: box-shadow 0.2s;
}
.testimonial-card p {
  color: #2A2C34;
  font-size: 1.05rem;
  font-style: italic;
  line-height: 1.7;
}
.testimonial-card span {
  color: #8B9DA8;
  font-size: 1rem;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.cta-section {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ----------------------------------------------------------
   NAVIGATION, HEADER, FOOTER
-----------------------------------------------------------*/
header {
  width: 100%;
  background: #fff;
  border-bottom: 1px solid #E4E6E9;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 21;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 18px;
}
header .container > a > img {
  height: 36px;
  width: auto;
}
.main-nav {
  display: flex;
  gap: 28px;
  align-items: center;
  margin-left: 20px;
}
.main-nav a {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  color: #2A2C34;
  font-weight: 500;
  padding: 4px 0px;
  transition: color 0.2s;
  position: relative;
}
.main-nav a::after {
  content: '';
  display: block;
  height: 2px;
  width: 0;
  background: #8B9DA8;
  transition: width 0.3s;
  margin-top: 3px;
}
.main-nav a:hover::after,
.main-nav a:focus::after {
  width: 100%;
}
.main-nav a:hover, .main-nav a:focus,
.footer-nav a:hover, .footer-nav a:focus {
  color: #8B9DA8;
}
.cta-button {
  background: #2A2C34;
  color: #fff;
  border-radius: 24px;
  padding: 11px 32px;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  box-shadow: 0 5px 22px rgba(42,44,52,0.07);
  transition: background 0.2s, box-shadow 0.2s;
  border: none;
  margin-left: 16px;
  display: inline-block;
  letter-spacing: 0.04em;
}
.cta-button:hover, .cta-button:focus {
  background: #8B9DA8;
  color: #fff;
  box-shadow: 0 2px 16px rgba(42,44,52,0.07);
}

footer {
  margin-top: 64px;
  background: #fff;
  border-top: 1px solid #E4E6E9;
  padding: 32px 0 20px 0;
}
.footer-nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 8px;
  justify-content: center;
}
.footer-nav a {
  font-size: 0.98rem;
  color: #8B9DA8;
  font-family: 'Roboto', Arial, sans-serif;
  letter-spacing: 0.01em;
  transition: color 0.2s;
}
footer p {
  text-align: center;
  font-size: 0.94rem;
  color: #B0B6BC;
}

/* ----------------------------------------------------------
   FEATURE GRID & SERVICE LIST
   (always flex, never grid)
-----------------------------------------------------------*/
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  margin-top: 18px;
  margin-bottom: 10px;
}
.feature-grid li {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 8px rgba(42,44,52,0.04);
  padding: 28px 20px 18px 20px;
  min-width: 230px;
  flex: 1 1 230px;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow 0.2s;
  gap: 13px;
}
.feature-grid li img {
  height: 38px;
  width: auto;
  margin-bottom: 6px;
}
.feature-grid li h3 {
  margin-bottom: 8px;
}
.feature-grid li:hover, .feature-grid li:focus-within {
  box-shadow: 0 6px 22px rgba(42,44,52,0.11);
}

.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 12px;
  margin-bottom: 12px;
}
.service-list li {
  background: #F8F8F8;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(42,44,52,0.04);
  padding: 26px 20px 17px 20px;
  min-width: 210px;
  flex: 1 1 210px;
  max-width: 310px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
  transition: box-shadow 0.2s;
}
.service-list li:hover, .service-list li:focus-within {
  box-shadow: 0 8px 24px rgba(42,44,52,0.10);
}
.service-list .service-price {
  color: #8B9DA8;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* Pricing overview list in servizi */
.pricing-overview {
  margin-top: 36px;
  background: #F8F8F8;
  border-radius: 10px;
  padding: 26px 18px 18px 18px;
  box-shadow: 0 1px 8px rgba(42,44,52,0.03);
}
.pricing-overview h2 {
  font-size: 1.2rem;
  color: #2A2C34;
  margin-bottom: 10px;
}
.pricing-overview ul {
  margin-left: 18px;
}
.pricing-overview li {
  font-size: 1rem;
  color: #2A2C34;
  margin-bottom: 8px;
  list-style: disc inside;
}

/* ----------------------------------------------------------
   CONTACT DETAILS
-----------------------------------------------------------*/
.contact-details {
  background: #F8F8F8;
  padding: 24px 20px;
  border-radius: 10px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(42,44,52,0.03);
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 520px;
}
.contact-details h2, .contact-details h3 {
  margin-bottom: 3px;
  font-size: 1.14rem;
  color: #2A2C34;
}
.contact-details a {
  color: #2A2C34;
  text-decoration: underline;
  word-break: break-all;
}
.contact-details ul {
  margin-left: 18px;
}
.contact-details li {
  font-size: 0.98rem;
  margin-bottom: 6px;
  list-style: disc inside;
}

/* ----------------------------------------------------------
   TESTIMONIALS/REVIEWS CARDS
-----------------------------------------------------------*/
.testimonial-title {
  text-align: center;
  margin-bottom: 24px;
  color: #2A2C34;
  font-size: 2rem;
}
.content-wrapper .testimonial-card {
  margin-right: 16px;
  margin-bottom: 20px;
}
.content-wrapper {
  flex-wrap: wrap;
  gap: 24px;
  display: flex;
  justify-content: flex-start;
}
/* Horizontal on desktop, vertical on mobile */
@media (min-width: 769px) {
  .content-wrapper > .testimonial-card {
    flex: 1 1 320px;
    max-width: 390px;
  }
  .content-wrapper {
    flex-direction: row;
    align-items: stretch;
  }
}
@media (max-width: 768px) {
  .content-wrapper {
    flex-direction: column;
    gap: 24px;
    align-items: stretch;
  }
  .card, .feature-grid li, .service-list li {
    max-width: 100%;
    min-width: 0;
  }
  .testimonial-card {
    max-width: 100%;
    min-width: 0;
  }
}

/* ----------------------------------------------------------
   MOBILE NAVIGATION & HAMBURGER MENU
-----------------------------------------------------------*/
.mobile-menu-toggle {
  background: #fff;
  border: none;
  color: #2A2C34;
  font-size: 2rem;
  padding: 10px 14px;
  border-radius: 10px;
  display: none;
  transition: background 0.2s, color 0.2s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #F1E6CB;
  color: #8B9DA8;
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(42,44,52,0.95);
  z-index: 999;
  transform: translateX(-100vw);
  transition: transform 0.36s cubic-bezier(.34,.37,.26,.95);
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.active {
  transform: translateX(0);
  pointer-events: all;
  opacity: 1;
}
.mobile-menu-close {
  color: #fff;
  background: none;
  font-size: 2.1rem;
  align-self: flex-end;
  margin: 30px 30px 0 0;
  border: none;
  z-index: 2;
  transition: color 0.2s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #F1E6CB;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  padding: 40px 20px 0 32px;
  margin-top: 40px;
}
.mobile-nav a {
  font-size: 1.22rem;
  color: #fff;
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 500;
  padding: 5px 0;
  transition: color 0.2s, background 0.2s;
  border-radius: 6px;
  min-width: 140px;
  min-height: 36px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #8B9DA8;
  color: #fff;
}

@media (max-width: 1023px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 1024px) {
  .mobile-menu,
  .mobile-menu-toggle {
    display: none !important;
  }
  .main-nav {
    display: flex;
  }
}

/* ----------------------------------------------------------
   RESPONSIVE FLEX & SECTIONS
-----------------------------------------------------------*/
@media (max-width: 768px) {
  .feature-grid,
  .service-list,
  .card-container,
  .content-grid,
  .text-image-section {
    flex-direction: column;
    gap: 20px;
  }
  .text-image-section, .container {
    padding-left: 10px;
    padding-right: 10px;
  }
  .section {
    margin-bottom: 48px;
    padding: 30px 10px;
  }
  header .container {
    padding-left: 10px;
    padding-right: 10px;
    min-height: 56px;
  }
  .footer-nav {
    gap: 12px;
  }
}

/* ----------------------------------------------------------
   MICRO-INTERACTIONS & TRANSITIONS
-----------------------------------------------------------*/
.card,
.feature-grid li,
.service-list li,
.cta-button,
.testimonial-card {
  transition: box-shadow 0.2s, background 0.18s, color 0.16s;
}
.card:hover, .card:focus-within,
.feature-grid li:hover, .feature-grid li:focus-within,
.service-list li:hover, .service-list li:focus-within,
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: 0 10px 28px rgba(42,44,52,0.15);
}

.cta-button:active {
  background: #2A2C34;
  opacity: 0.95;
}

.testimonial-card:active {
  box-shadow: 0 4px 14px rgba(42,44,52,0.10);
}

/* ----------------------------------------------------------
   COOKIE CONSENT BANNER & MODAL
-----------------------------------------------------------*/
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1001;
  background: #fff;
  border-top: 1px solid #E4E6E9;
  box-shadow: 0 -2px 16px rgba(42,44,52,0.10);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 12px 20px 12px;
  gap: 18px;
  width: 100%;
  transition: transform 0.32s cubic-bezier(.37,.49,.33,1.05), opacity 0.20s;
  opacity: 1;
  transform: translateY(0);
}
.cookie-banner.hide {
  opacity: 0;
  transform: translateY(100%);
  pointer-events: none;
}
.cookie-banner p {
  color: #2A2C34;
  font-size: 1.02rem;
  margin-bottom: 6px;
  max-width: 500px;
  text-align: center;
}
.cookie-btn-group {
  display: flex;
  gap: 13px;
}
.cookie-banner .cookie-btn {
  padding: 8px 26px;
  border-radius: 20px;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 0.98rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}
.cookie-btn.accept {
  background: #2A2C34;
  color: #fff;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #8B9DA8;
  color: #fff;
}
.cookie-btn.reject {
  background: #F8F8F8;
  color: #2A2C34;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #E4E6E9;
  color: #2A2C34;
}
.cookie-btn.settings {
  background: #fff;
  color: #8B9DA8;
  border: 1px solid #8B9DA8;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #F1E6CB;
  color: #2A2C34;
  border-color: #2A2C34;
}

/* COOKIE PREFERENCES MODAL */
.cookie-modal {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(42,44,52,0.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s;
}
.cookie-modal.active {
  opacity: 1;
  pointer-events: all;
}
.cookie-modal-dialog {
  background: #fff;
  border-radius: 12px;
  min-width: 320px;
  max-width: 95vw;
  box-shadow: 0 8px 40px rgba(42,44,52,0.14);
  padding: 32px 24px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: stretch;
  position: relative;
}
.cookie-modal-title {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 1.4rem;
  font-weight: bold;
  color: #2A2C34;
}
.cookie-modal-close {
  position: absolute;
  right: 18px;
  top: 18px;
  background: none;
  border: none;
  font-size: 1.7rem;
  color: #2A2C34;
  cursor: pointer;
  opacity: 0.7;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: #8B9DA8;
  opacity: 1;
}
.cookie-category-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.04rem;
}
.cookie-category input[type='checkbox'] {
  width: 20px; height: 20px;
  accent-color: #8B9DA8;
}
.cookie-category label {
  font-weight: 500;
}
.cookie-category.essential label {
  color: #2A2C34;
  font-weight: 700;
}
.cookie-category .cookie-category-desc {
  color: #69707A;
  font-size: 0.96rem;
  margin-left: 4px;
}
.cookie-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
}
.cookie-modal-actions .cookie-btn {
  padding: 8px 22px;
}

@media (max-width: 540px) {
  .cookie-modal-dialog {
    min-width: 90vw;
    padding: 18px 6vw 14px 6vw;
  }
}

/* ----------------------------------------------------------
   UTILITY CLASSES & STATES
-----------------------------------------------------------*/
.hidden { display: none !important; }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}
.text-center { text-align: center; }

/* TEXT SELECTION */
::selection {
  background: #F1E6CB;
  color: #2A2C34;
}

/* ----------------------------------------------------------
   FOCUS VISIBLE (accessibility)
-----------------------------------------------------------*/
a:focus, button:focus, .cta-button:focus, .mobile-menu-close:focus, .cookie-btn:focus {
  outline: 2px solid #8B9DA8;
  outline-offset: 2px;
}

/* ----------------------------------------------------------
   CUSTOM SCROLLBAR FOR MINIMALIST FEEL
-----------------------------------------------------------*/
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-thumb {
  background: #E4E6E9;
  border-radius: 10px;
}
::-webkit-scrollbar-track {
  background: #fff;
}

/* ----------------------------------------------------------
   ACCORDING TO BRAND: ACCENTS, HIGHLIGHTS
-----------------------------------------------------------*/
.accent {
  color: #8B9DA8;
}
.bg-accent {
  background: #F1E6CB;
}

/* ----------------------------------------------------------
   REFINED SPACING FOR MINIMALIST RHYTHM
-----------------------------------------------------------*/
.mt-16 { margin-top: 16px; }
.mb-16 { margin-bottom: 16px; }
.mt-32 { margin-top: 32px; }
.mb-32 { margin-bottom: 32px; }
.gap-8 { gap: 8px; }
.gap-16 { gap: 16px; }
.gap-20 { gap: 20px; }
.gap-24 { gap: 24px; }

/* ----------------------------------------------------------
   PRINT (minimal)
-----------------------------------------------------------*/
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal { display: none !important; }
  body { background: #fff !important; color: #000 !important; }
}

/* END OF MINIMALIST CSS FOR UOMO DISTINTO */
