/* RESET & BASE ------------------------------------------------------------------- */
html {
  box-sizing: border-box;
  font-size: 16px;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Roboto', Arial, sans-serif;
  background: #EBF2FA;
  color: #2D2D2D;
  min-height: 100vh;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
  border: 0;
}
button, input, textarea {
  font-family: inherit;
  font-size: inherit;
  outline: none;
}
a {
  color: #24516A;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #B35900;
}
ul, ol {
  padding-left: 1.25em;
}

/* COLORS ------------------------------------ */
:root {
  --brand-primary: #24516A;
  --brand-secondary: #FFFFFF;
  --brand-bg: #EBF2FA;
  --brand-accent: #B35900;
  --gold: #BFA05A;
  --dark: #172A36;
  --gray: #62666a;
  --soft-gray: #F6F8FA;
}

/* TYPOGRAPHY --------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  color: var(--dark);
  font-weight: 700;
  letter-spacing: 0.02em;
}
h1 {
  font-size: 2.75rem;
  margin-bottom: 20px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 18px;
}
h3 {
  font-size: 1.31rem;
  margin-bottom: 14px;
}
h4 {
  font-size: 1.125rem;
  margin-bottom: 10px;
}
p, li, address {
  font-size: 1rem;
  color: #2D2D2D;
}
strong {
  color: var(--brand-primary);
}

/* CONTAINER ---------------------------------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* HEADER ------------------------------------- */
header {
  background: var(--brand-secondary);
  border-bottom: 1.5px solid #E5EAF2;
  position: sticky;
  top: 0;
  z-index: 999;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: 82px;
}
header img {
  height: 42px;
}

.main-navigation {
  display: flex;
  gap: 32px;
  align-items: center;
}
.main-navigation a {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 1.13rem;
  letter-spacing: 0.01em;
  color: var(--brand-primary);
  padding: 4px 0;
  position: relative;
  transition: color 0.2s;
}
.main-navigation a:after {
  content: '';
  display: block;
  margin: 0 auto;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.2s;
}
.main-navigation a:hover::after, .main-navigation a:focus::after {
  width: 75%;
}
.main-navigation a.active, .main-navigation a[aria-current="page"] {
  color: var(--brand-accent);
  font-weight: bold;
}

/* CTA BUTTON STYLE --------------------------- */
.cta-button {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  background: var(--gold);
  color: var(--brand-secondary);
  border: 0;
  border-radius: 36px;
  padding: 12px 32px;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  box-shadow: 0 2px 8px rgba(36,81,106,0.07);
  cursor: pointer;
  text-align: center;
  margin-left: 28px;
  transition: background 0.23s, color 0.23s, box-shadow 0.23s, transform 0.1s;
  display: inline-block;
  outline: none;
  position: relative;
}
.cta-button:hover, .cta-button:focus {
  background: var(--brand-accent);
  color: #fff;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 4px 16px rgba(36,81,106,0.14);
}

/* MOBILE MENU TOGGLE ------------------------- */
.mobile-menu-toggle {
  background: transparent;
  color: var(--brand-primary);
  border: none;
  font-size: 2.2rem;
  line-height: 1;
  padding: 8px 12px;
  display: none;
  cursor: pointer;
  z-index: 1101;
  border-radius: 50%;
  transition: background 0.18s;
}
.mobile-menu-toggle:focus {
  background: #ebf2fa;
}

/* MOBILE MENU -------------------------------- */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  right: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(36,81,106, 0.98);
  color: #fff;
  z-index: 1100;
  transform: translateX(-100%);
  transition: transform 0.36s cubic-bezier(0.9,0.03,0.4,1.3);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  margin: 26px 0 0 20px;
  color: #fff;
  font-size: 2.1rem;
  background: transparent;
  border: none;
  align-self: flex-start;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--gold);
  background: rgba(36,81,106,0.14);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin: 38px 0 0 28px;
}
.mobile-nav a {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 1.43rem;
  color: #fff;
  font-weight: 500;
  letter-spacing: 0.03em;
  padding: 6px 0;
  border-radius: 4px;
  transition: color 0.2s, background 0.17s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: rgba(191, 160, 90, 0.21);
  color: var(--gold);
}

/* MAIN --------------------------------------- */
main {
  width: 100%;
  min-height: 62vh;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
}

section {
  background: transparent;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: flex-start;
  background: transparent;
}
.text-section {
  background: #fff;
  box-shadow: 0 2px 12px rgba(36,81,106,0.06);
  border-radius: 22px;
  padding: 32px 28px;
  margin-bottom: 32px;
  width: 100%;
}

/* FEATURE LISTS ----------------------------- */
.feature-list,
.value-list,
.benefit-list,
.newsletter-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  list-style: none;
  margin-top: 12px;
}
.feature-list li,
.value-list li,
.benefit-list li,
.newsletter-benefits li {
  background: #fff;
  border-radius: 20px;
  padding: 22px 22px 22px 18px;
  flex: 1 1 220px;
  min-width: 220px;
  max-width: 350px;
  box-shadow: 0 2px 12px rgba(191,160,90,0.06);
  border: 1px solid #E5EAF2;
  display: flex;
  flex-direction: column;
  gap: 13px;
  align-items: flex-start;
  position: relative;
}
.feature-list img,
.value-list img {
  width: 38px;
  height: 38px;
}

/* CARD LAYOUTS ------------------------------ */
.card-container,
.service-cards,
.service-grid,
.article-preview-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  margin-bottom: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
}
.service-card,
.service-block,
.article-preview {
  background: #fff;
  border-radius: 20px;
  padding: 28px 24px 30px 24px;
  min-width: 220px;
  flex: 1 1 260px;
  max-width: 360px;
  box-shadow: 0 2px 18px rgba(36,81,106,0.05);
  border: 1.5px solid #E5EAF2;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
  transition: box-shadow 0.18s, border 0.18s, transform 0.14s;
}
.service-card:hover, .service-block:hover, .article-preview:hover {
  border-color: var(--gold);
  box-shadow: 0 4px 22px rgba(191,160,90,0.13);
  transform: translateY(-4px) scale(1.015);
}
.service-price {
  color: var(--gold);
  font-weight: bold;
  letter-spacing: 0.03em;
  margin-top: 7px;
  font-size: 1.09rem;
}

.article-preview .read-more {
  color: var(--brand-accent);
  font-weight: 600;
  font-family: 'Montserrat';
  margin-top: 7px;
  font-size: 1.01rem;
  border-bottom: 1.5px solid var(--brand-accent);
  transition: color 0.15s, border-color 0.16s;
}
.article-preview .read-more:hover {
  color: var(--gold);
  border-color: var(--gold);
}

.downloadables-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}
.downloadables-list a {
  color: var(--brand-primary);
  font-weight: 500;
  transition: color 0.19s;
}
.downloadables-list a:hover {
  color: var(--gold);
}

/* GRID & FLEX UTILS --------------------------- */
.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;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Timeline Styling --------------------------- */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 18px;
  padding-left: 11px;
  list-style: none;
  position: relative;
}
.timeline li {
  padding-left: 18px;
  position: relative;
  font-size: 1.075rem;
  color: #41546d;
}
.timeline li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
}

/* STEPS TIMELINE (for processo consulenza) --------- */
.steps-timeline {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 20px;
  list-style: none;
  justify-content: flex-start;
  align-items: flex-start;
}
.steps-timeline li {
  background: #fff;
  border-radius: 18px;
  padding: 18px 20px;
  min-width: 200px;
  max-width: 300px;
  font-weight: 500;
  color: #24516a;
  box-shadow: 0 1.5px 9px rgba(191,160,90,0.07);
  border: 1px solid #E5EAF2;
  display: flex;
  gap: 10px;
  align-items: center;
}
.steps-timeline img {
  width: 34px;
  height: 34px;
}

/* TESTIMONIALS ------------------------------- */
.testimonials {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  background: #fff;
  border-radius: 18px;
  padding: 28px 24px;
  min-width: 230px;
  flex: 1 1 300px;
  max-width: 370px;
  box-shadow: 0 2px 15px rgba(36,81,106,0.1);
  border: 1px solid #E5EAF2;
  margin-bottom: 20px;
  transition: box-shadow 0.16s, border 0.16s, transform 0.14s;
  color: #23292f;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  border-color: var(--gold);
  box-shadow: 0 4px 22px rgba(191,160,90,0.12);
  transform: translateY(-3px);
}
.testimonial-card p {
  color: #23292f;
  font-style: italic;
  font-size: 1.09rem;
}
.testimonial-card strong {
  font-family: 'Montserrat';
  color: var(--brand-primary);
  font-size: 1rem;
}
.review-stars {
  color: var(--gold);
  font-size: 1.2rem;
  font-family: 'Montserrat';
  letter-spacing: 0.13em;
}

/* ACCORDION FAQ ------------------------------ */
.accordion-faq {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 24px;
}
.faq-item {
  background: #fff;
  box-shadow: 0 1.5px 9px rgba(191,160,90,0.04);
  border-radius: 15px;
  border: 1px solid #e5eaf2;
  padding: 22px 24px;
  transition: box-shadow .18s;
}
.faq-item h3 {
  font-size: 1.18rem;
  color: var(--brand-primary);
  margin-bottom: 8px;
  font-weight: 700;
}
.faq-item p {
  font-size: 1rem;
  color: #41546d;
}
.faq-item:hover, .faq-item:focus-within {
  box-shadow: 0 4px 18px rgba(191,160,90,0.12);
}

.contact-cta {
  margin-top: 26px;
  font-size: 1.1rem;
}
.contact-cta a {
  color: var(--brand-accent);
  text-decoration: underline;
  font-weight: 500;
  transition: color 0.18s;
}
.contact-cta a:hover {
  color: var(--gold);
}

/* FORMS -------------------------------------- */
form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
}
input[type="text"],
input[type="email"],
input[type="password"],
textarea {
  padding: 11px 16px;
  border-radius: 8px;
  border: 1.5px solid #C8D2DD;
  background: #fff;
  font-size: 1rem;
  font-family: inherit;
  color: #2D2D2D;
  box-shadow: 0 0.5px 2.5px rgba(36,81,106,0.07);
  transition: border-color 0.19s, box-shadow 0.14s;
}
input:focus, textarea:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 1.5px 8px rgba(36,81,106,0.13);
}
label {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 2px;
  color: var(--brand-primary);
}
button[type="submit"], button.cta-button {
  align-self: flex-start;
}

/* CASE STUDY PREVIEW ------------------------- */
.case-study-preview {
  background: #fff9ee;
  border-left: 4px solid var(--gold);
  border-radius: 15px;
  padding: 18px 25px;
  margin-top: 22px;
  color: var(--brand-primary);
  font-size: 1.1rem;
  box-shadow: 0 1.5px 8px rgba(242, 139, 48, 0.07);
}
.case-study-preview h3 {
  color: var(--brand-accent);
  margin-bottom: 7px;
}

.static-map {
  background: #f6f8fa;
  border-radius: 18px;
  padding: 15px 22px;
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
}
.static-map img {
  width: 35px;
}
.static-map a {
  color: var(--brand-primary);
  font-weight: 600;
}
.static-map a:hover { color: var(--gold); }

/* FOOTER ------------------------------------- */
footer {
  background: var(--brand-primary);
  color: #fff;
  padding: 46px 0 28px 0;
}
footer .container {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
}
.footer-nav,
.footer-contact,
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 200px;
  margin-bottom: 18px;
}
.footer-nav {
  flex: 2 1 300px;
  gap: 8px;
}
.footer-nav a {
  color: #fff;
  font-family: 'Montserrat';
  font-size: 1.08rem;
  padding: 3px 0;
  transition: color 0.15s;
}
.footer-nav a:hover {
  color: var(--gold);
}
.footer-nav .cta-button {
  margin-left: 0;
  background: var(--gold);
  color: #fff;
}
.footer-contact address,
.footer-contact span,
.footer-contact a {
  font-size: .99rem;
  color: #e1e5ea;
}
.footer-contact a:hover {
  color: var(--gold);
}
.footer-brand {
  align-items: flex-start;
  gap:8px;
  color: #D4D8DD;
  font-size: .96rem;
}
.footer-brand img {
  height: 36px;
}

/* COOKIE CONSENT BANNER + MODAL -------------- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #fffbe9;
  border-top: 2px solid var(--gold);
  box-shadow: 0 -4px 32px rgba(191,160,90,0.09);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 10vw 22px 6vw;
  z-index: 1200;
  font-family: 'Montserrat';
  font-size: 1rem;
  color: var(--brand-primary);
  animation: cookieBannerEnter 0.56s cubic-bezier(.65,-0.19,.34,1.07);
}
@keyframes cookieBannerEnter {
  0% {transform: translateY(100%);opacity:0;}
  100% {transform: translateY(0);opacity:1;}
}
.cookie-banner__actions {
  display: flex;
  flex-direction: row;
  gap: 14px;
  align-items: center;
}
.cookie-banner button {
  padding: 10px 22px;
  font-family: 'Montserrat';
  font-size: 1rem;
  border-radius: 29px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: background .19s, color .19s;
}
.cookie-banner .accept {
  background: var(--gold);
  color: #fff;
}
.cookie-banner .accept:hover, .cookie-banner .accept:focus {
  background: var(--brand-accent);
}
.cookie-banner .reject {
  background: transparent;
  color: var(--brand-accent);
  border: 1.5px solid var(--brand-accent);
}
.cookie-banner .reject:hover, .cookie-banner .reject:focus {
  background: var(--brand-accent);
  color: #fff;
}
.cookie-banner .settings {
  background: #f7efd8;
  color: var(--brand-primary);
  border: 1.5px solid #e7dcb6;
}
.cookie-banner .settings:hover, .cookie-banner .settings:focus {
  background: var(--gold);
  color: #fff;
  border: 1.5px solid var(--gold);
}

/* Cookie Modal -------------------------------- */
.cookie-modal-overlay {
  position: fixed; left:0; top:0; width:100vw; height:100vh;
  background: rgba(36, 81, 106, 0.55);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.33s;
}
.cookie-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  background: #fff;
  border-radius: 24px;
  max-width: 400px;
  width: 98vw;
  box-shadow: 0 12px 44px rgba(36,81,106,0.16);
  padding: 36px 28px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  animation: cookieModalIn .6s cubic-bezier(.64,.09,.2,1.16);
}
@keyframes cookieModalIn {
  0% {transform: scale(0.85) translateY(28px); opacity: 0; }
  100% {transform: scale(1) translateY(0); opacity:1;}
}
.cookie-modal-title {
  font-family: 'Montserrat';
  color: var(--brand-primary);
  font-size: 1.38rem; font-weight: bold;
}
.cookie-modal label {
  font-weight: 500;
  font-size: 1.08rem;
  margin-bottom: 3px;
}
.cookie-modal .category {
  margin-bottom: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 0;
}
.cookie-modal input[type='checkbox'] {
  width: 22px;
  height: 22px;
  accent-color: var(--brand-accent);
  accent-color: var(--gold);
}
.cookie-modal .always-on {
  color: #bbb;
  font-size: .92em;
}
.cookie-modal__actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 12px;
}
.cookie-modal__actions button {
  padding: 10px 20px;
  border-radius: 20px;
  font-family: 'Montserrat';
  font-weight: 600;
  border: none;
  background: var(--brand-primary);
  color: #fff;
  transition: background 0.17s;
}
.cookie-modal__actions .cancel {
  background: #E5EAF2;
  color: var(--brand-primary);
}
.cookie-modal__actions .cancel:hover {
  color: #fff; background: var(--gold);
}
.cookie-modal__actions .save {
  background: var(--gold);
  color: #fff;
}
.cookie-modal__actions .save:hover {
  background: var(--brand-accent);
}

/* RESPONSIVE DESIGN -------------------------- */
@media (max-width: 1200px) {
  .container { max-width: 1000px; }
  .service-card, .service-block, .article-preview, .testimonial-card { max-width: 90vw; }
}
@media (max-width: 991px) {
  header .container, footer .container {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
  .main-navigation {
    gap: 19px;
  }
  .card-container, .service-cards, .service-grid, .article-preview-grid, .testimonials, .feature-list, .value-list, .benefit-list {
    gap: 14px;
  }
  footer .container {
    gap: 24px;
  }
}
@media (max-width: 768px) {
  html { font-size: 15px; }
  .container { max-width: 95vw; padding: 0 8px; }
  .main-navigation { display: none; }
  .cta-button { margin-left: 0; }
  .mobile-menu-toggle { display: block; }
  header .container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 0;
    min-height: 58px;
  }
  .feature-list, .value-list, .benefit-list, .newsletter-benefits {
    flex-direction: column;
    gap: 17px;
  }
  .card-container, .service-cards, .service-grid, .article-preview-grid, .testimonials {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 17px;
  }
  .content-grid { flex-direction: column; gap: 14px; }
  .text-image-section { flex-direction: column; gap: 14px; }
  .steps-timeline { flex-direction: column; gap: 14px; }
  .footer-nav, .footer-contact, .footer-brand { min-width: unset; }
  .section { margin-bottom: 36px; padding: 30px 10px; }
  .text-section { padding: 18px 8px; }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 9px 18px 11px;
    gap: 17px;
  }
  .cookie-banner__actions {
    gap: 10px;
  }
}
@media (max-width: 450px) {
  html { font-size: 14px; }
  .footer-brand img { height: 28px; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.35rem; }
}

/* UTILS -------------------------------------- */
.gap8 { gap: 8px!important; }
.gap16 { gap: 16px!important; }
.gap24 { gap: 24px!important; }
.mt20 { margin-top: 20px !important; }
.mt32 { margin-top: 32px !important; }
.mb20 { margin-bottom: 20px !important; }
.mb40 { margin-bottom: 40px !important; }
.text-center { text-align: center !important; }
.flex-between { justify-content: space-between !important; }
.flex-center { justify-content: center !important; align-items: center !important; }

/* INTERACTIVE: focus-visible outline --------- */
a, .cta-button, button, input, textarea, select {
  outline: none;
}
a:focus-visible, .cta-button:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 1.5px;
}

/* ANIMATIONS, MICRO-INTERACTIONS ------------ */
.cta-button, .service-card, .service-block, .testimonial-card, .article-preview, .faq-item {
  transition: box-shadow .18s, border .18s, transform .14s, background .17s, color .16s;
}
.cta-button:active { transform: translateY(1px) scale(0.99); }

/* Z-INDEX LAYERS ----------------------------- */
.mobile-menu { z-index: 1100; }
.mobile-menu-toggle { z-index: 1101; }
.cookie-banner { z-index: 1200; }
.cookie-modal-overlay { z-index: 2000; }

/* NO GRID! Only Flex everywhere! ------------ */
/* (NO display: grid, grid-template-columns, grid-area, columns, gap IS FLEX ONLY) */
