/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Nunito', sans-serif;
  color: #111;
  line-height: 1.5;
}

img {
  max-width: 100%;
  display: block;
   height: auto;
}

h1 {
  font-size: 48px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 38px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.01em;
}

p {
  line-height: 1.6;
}

/* LAYOUT */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section.alt {
  background-color: #f0f6ff;
}

.nav-links a:hover,
.footer__col a:hover,
.footer__legal a:hover {
  text-shadow: 0 0 0 currentColor;
}



/* NAV */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
}

.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: #1765b3;
  font-weight: 500;
}
@media (max-width: 900px) {
  .nav {
    flex-direction: column;
    gap: 16px;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 560px) {
  .grid-4 {
    grid-template-columns: 1fr;
  }
}



/* HERO */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
  padding: 60px 0;
}

.hero h1 {
  font-size: 48px;
  font-weight: 800;
}

.hero p {
  margin-top: 16px;
  font-size: 18px;
  font-weight: 300;
}

.hero-cta {
  margin-top: 24px;
  display: flex;
  gap: 16px;
}


/* BOTTONI */
.btn {
  display: inline-block;
  padding: 14px 22px;
  border-radius: 16px;
  text-decoration: none;
  font-weight: 500;
    transition: 0.2s;

}

.btn.primary {
  background-color: #1766b3;
  color: white;
}

.btn.secondary {
  border: 2px solid #1766b3;
  color: #1766b3;
}

.btn.primary:hover {
  background: #22B7B6;
}

.btn.secondary:hover {
  border: 2px solid #22B7B6;
  color: #22B7B6;
}

.btn:focus-visible {
  outline: 3px solid rgba(23, 102, 179, 0.35);
  outline-offset: 2px;
}

/* GRIGLIE */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}


/* LISTE */
.feature-list {
  margin: 20px 0;
  padding-left: 20px;
}


/* CARD */
.card {
  padding: 24px;
  border-radius: 20px;
  background: white;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.card span {
  font-weight: bold;
}


/* CONTACTS */
.contacts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.contact-card {
  background: white;
  padding: 24px;
  border-radius: 20px;
}

.contact-card a {
  color: #1765b3;
  text-decoration: none;
}


/* FOOTER */
.footer {
  background: #1765b3;
  color: white;
  padding: 60px 0;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 40px;
}

.footer-links {
  display: flex;
  gap: 40px;
}

.footer a {
  color: white;
  text-decoration: none;
  display: block;
  margin-top: 6px;
}

.footer-bottom {
  margin-top: 40px;
  display: flex;
  justify-content: space-between;
}

.legal a {
  margin-left: 16px;
}


/* RESPONSIVE */
@media (max-width: 900px) {

  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }

  .grid-4 {
    grid-template-columns: 1fr 1fr;
  }

  .contacts {
    grid-template-columns: 1fr;
  }

  .footer-top {
    flex-direction: column;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
  }
}


/* ========== BLOCCO 1: CHI È INSIEME.COOP (about) ========== */

/* griglia 2 colonne desktop */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

/* colonna sinistra: linea superiore come in figma */
.about__content {
  padding-top: 48px;
}

/* tipografia */
.about__title {
  font-size: 38px;
  line-height: 1.15;
  font-weight: 800;
  margin-bottom: 18px;
}

.about__lead {
  font-size: 16px;
  font-weight: 300;
  max-width: 520px;
  margin-bottom: 26px;
}

/* lista stile figma */
.about__list {
  list-style: none;
  padding: 0;
  margin: 0 0 26px 0;
  border-top: 1px solid #e9e9e9;
}

.about__item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid #e9e9e9;
  align-items: center;
}

.about__num {
font-family: inherit;
  color: #1765b3;
  line-height: 1;
}

.about__text {
  font-size: 13px;
  line-height: 1.5;
  color: #111;
}

/* frase finale */
.about__note {
  font-size: 13px;
  font-weight: 300;
  max-width: 520px;
}

/* colonna destra: placeholder immagine */
.about__visual {
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: start;
}

.about__img {
  width: 75%;
  max-width: 560px;
  aspect-ratio: 1 / 1.S5;          /* mantiene ingombro “quadrato” realistico */
  object-fit: cover;
  border-radius: 24px;
  background: #eef3fb;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .about__grid {
    gap: 48px;
  }
}

@media (max-width: 900px) {
  .about__grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .about__visual {
    order: 2;
  }

  .about__content {
    padding-top: 32px;
  }

  .about__title {
    font-size: 32px;
    
  }
}
/* ========== BLOCCO LOGHI ========== */
.logos {
  background:transparent;
  padding: 60px 0 100px 0; /* fascia ariosa come in Figma */
}

.logos__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 72px;        /* spaziatura ampia tra i 3 loghi */
  flex-wrap: wrap;  /* fondamentale per tablet */
}
.logos__title {
  text-align: center;
  font-size: 18px;
  font-weight: 500;
  color: #1765b3;
  margin-bottom: 40px;
  letter-spacing: 0.05em;
}


.logos__item {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* gestione dimensioni loghi */
.logos__img {
  width: auto;
  max-height: 72px;  /* “cap” uniforme */
  object-fit: contain;
}

.logos__img.small {
  width: 20%;


}

/* ---------- RESPONSIVE ---------- */

@media (max-width: 900px) {
  .logos {
    padding: 44px 0;
  }

  .logos__inner {
    gap: 40px; /* meno aria su tablet */
  }
}

@media (max-width: 560px) {
  .logos {
    padding: 36px 0;
  }

  .logos__inner {
    gap: 24px;
    flex-direction: column; /* su mobile: 1 logo per riga */
  }

  .logos__img {
    max-height: 68px;
  }
}


@media (max-width: 560px) {
  .logos__img.small {
    width: auto;
    max-width: 220px;
  }
}



/* ========== BLOCCO TERRITORI (pixel-structure + responsive) ========== */
.territories__grid{
  display:grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 80px;
  align-items: start;
}

/* Titolo blu e gerarchia come nel layout */
.territories__title{
  color:#00559F;
  font-size: 47px;
  line-height: 1.15;
  font-weight: 800;
  margin-bottom: 22px;
}

/* paragrafi */
.territories__p{
  font-size: 16px;
  font-weight: 300;
  max-width: 520px;
  margin-bottom: 16px;
}

/* lista numerata stile figma (linee sottili) */
.territories__list{
  list-style:none;
  padding:0;
  margin: 18px 0 22px;
  border-top: 1px solid #e9e9e9;
  max-width: 520px;
}

.territories__item{
  display:grid;
  grid-template-columns: 44px 1fr;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid #e9e9e9;
  align-items:center;
}

.territories__num{
  font-size: 14px;
  color:#1765b3;
  line-height:1;
}

.territories__text{
  font-size: 13px;
  line-height: 1.5;
}

/* blocco highlight sotto lista */
.territories__highlight{
  margin-top: 14px;
  max-width: 520px;
}

.territories__highlightTitle{
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 10px;
}

.territories__highlightText{
  font-size: 13px;
  font-weight: 300;
}

/* CTA impilate come in figma */
.territories__cta{
  margin-top: 24px;
  display:flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}

.territories__btnSecondary{
  font-size: 13px;
  padding: 12px 18px;
}

/* Colonna destra: stack delle 3 mappe */
.territories__maps{
  list-style:none;
  padding:0;
  margin: 0;
  display:flex;
  flex-direction: column;
  gap: 34px;
  align-items: flex-end;
}

.territories__mapItem{
  width: 100%;
  max-width: 250px;
}

.territories__map{
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 14px; /* solo per placeholder, puoi togliere con asset reali */
}

.territories__label{
  margin-top: 10px;
  display:flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-end;
}

.territories__logo{
  width: 210px;
  height: auto;
  object-fit: contain;
}

.territories__region{
  font-size: 10px;
  letter-spacing: 0.06em;
  color:#1765b3;
  font-weight: 600;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px){
  .territories__grid{ gap: 48px; }
  .territories__maps{ align-items: center; }
  .territories__label{ align-items: center; }
}

@media (max-width: 900px){
  .territories__grid{
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .territories__title{
    font-size: 32px;
  }

  .territories__cta{
    align-items: stretch;
  }

  .territories__cta .btn{
    width: 100%;
    text-align: center;
  }

  .territories__maps{
    align-items: center;
  }
}

@media (max-width: 560px){
  .territories__mapItem{
    max-width: 320px;
  }

  .territories__logo{
    width: 190px;
  }
}
/* SEZIONE RESTA AGGIORNATO */

.stay-updated {
  padding: 96px 0;
}

.stay-updated-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
}

.stay-updated-image img {
  width: 100%;
  height: auto;
  display: block;
}

.stay-updated-content h2 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 16px;
}

.stay-updated-content p {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 32px;
  max-width: 420px;
}


.stay-updated .btn.secondary {
  font-weight: 600  ;           /* font diverso */
  font-size: 14px;            /* se serve */
  
font-family: inherit;           /* oppure il font globale */
  background: transparent;        /* rimuove bg ereditati */

}

@media (max-width: 768px) {
  .stay-updated-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .stay-updated-content p {
    margin-left: auto;
    margin-right: auto;
  }
}
/* ========== BLOCCO: COSTRUZIONE PIATTAFORMA (build) ========== */
.build {
  background: #f0f6ff; /* come screenshot */
}

.build__container {
  text-align: center;
}

/* Logo */
.build__brand {
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
}

.build__logo {
  display: block;
  width: min(420px, 80%);
  height: auto;
}

/* Header */
.build__header {
  max-width: 780px;
  margin: 0 auto 48px;
}

.build__title {
  font-size: 32px;
  line-height: 1.2;
  font-weight: 800;
  color: #1765b3;
  margin-bottom: 14px;
  margin-top: 40px;
}

.build__lead {
  font-size: 16px;
  font-weight: 300;
  color: #111;
}

/* Steps grid */
.build__steps {
  margin: 52px auto 70px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 44px;
  text-align: left;
}

.build__step {
  min-width: 0;
}

.build__num {
  font-size: 44px;           /* numero grande */
  line-height: 1;
  font-weight: 300;
  color: #1765b3;
  margin-bottom: 18px;
}

.build__stepTitle {
  font-size: 16px;
  line-height: 1.25;
  font-weight: 600;
  color: #1765b3;
  margin-bottom: 10px;
}

.build__stepText {
  font-size: 14px;
  line-height: 1.45;
  font-weight: 300;
  color: #111;
  max-width: 260px;
}

/* CTA bottom */
.build__cta {
  max-width: 620px;
  margin: 0 auto;
  display: grid;
  gap: 10px;
  justify-items: center;
}

.build__ctaTitle {
  font-size: 22px;
  font-weight: 800;
  color: #111;
  margin-top: 6px;
}

.build__ctaText {
  font-size: 14px;
  font-weight: 300;
  color: #111;
  margin-bottom: 12px;
}

.build__ctaBtn {
  padding: 12px 20px;  /* bottone più compatto come screenshot */
  border-radius: 14px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .build__steps {
    gap: 28px;
  }
}

@media (max-width: 900px) {
  .build__header {
    margin-bottom: 34px;
  }

  .build__steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }

  .build__stepText {
    max-width: none;
  }
}

@media (max-width: 560px) {
  .build__title {
    font-size: 26px;
  }

  .build__steps {
    grid-template-columns: 1fr;
    gap: 22px;
    text-align: left;
  }

  .build__num {
    font-size: 40px;
  }
}
/* ========== BLOCCO CONTATTI (contactus) ========== */
.contactus {
  background: #fff;
}


.contactus__grid {
  display: grid;
  grid-template-columns: minmax(520px, 1fr) 360px;
  gap: 72px;
  align-items: start;
}


/* Titolo + testi */
.contactus__title {
  font-size: 32px;
  line-height: 1.2;
  font-weight: 800;
  margin-bottom: 16px;
  color: #111;
}


.contactus__p {
  font-size: 13px;
  font-weight: 300;
  line-height: 1.55;
  max-width: 560px;
  margin-bottom: 12px;
}

/* Cards: 3 in riga su desktop */
.contactus__cards {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

/* Card stile Figma: top teal + body bianco + shadow */
.contactus__card {
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 18px 45px rgba(23, 102, 179, 0.12);
}

.contactus__cardImg {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}


.contactus__cardTop {
  height: 86px;               /* rettangolo teal alto */
  background: #22b7b6;
}

.contactus__cardBody {
  padding: 18px 18px 20px;
}

.contactus__name {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 4px;
  color: #111;
}


.contactus__role {
  font-size: 14px;
  font-weight: 600;
  color: #1765b3;
  margin-bottom: 10px;
}


.contactus__email {
  font-size: 14px;
  line-height: 1.4;
  color: #1765b3;
  text-decoration: none;
}

.contactus__email:hover {
  opacity: 0.8;
}

/* Illustrazione */
.contactus__right {
  display: flex;
  justify-content: flex-end;
}

.contactus__illustration {
  width: min(360px, 100%);
  height: auto;
  object-fit: contain;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .contactus__grid {
    gap: 40px;
  }
}

@media (max-width: 900px) {
  .contactus__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .contactus__right {
    justify-content: center;
  }

  .contactus__cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .contactus__cards {
    grid-template-columns: 1fr;
  }
}
/* ========== FOOTER FIGMA CORRETTO ========== */
.footer {
  background: #2468a9;
  color: #fff;
  padding: 80px 0 40px;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 60px;
  align-items: start;
}

/* brand */
.footer__logo {
  margin-bottom: 16px;
}

.footer__text {
  font-weight: 600;
  margin-bottom: 10px;
}

.footer__desc {
  font-size: 13px;
  line-height: 1.6;
  max-width: 420px;
  margin-bottom: 20px;
}

.footer__social {
  display: flex;
  gap: 12px;
}

/* colonne */
.footer__col h4 {
  margin-bottom: 14px;
  font-size: 16px;
}

.footer__col a {
  display: block;
  margin-bottom: 8px;
  color: #fff;
  text-decoration: none;
  font-size: 16px;
}

.footer__col a:hover {
  opacity: 0.7;
}

/* bottom */
.footer__bottom {
  margin-top: 60px;
  text-align: center;
  font-size: 14px;
}

.footer__legal {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  gap: 16px;
}

.footer__legal a {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
}