/* ============================
   MAPPA SEDI
============================ */

/* Titolo visibile e centrato */
.mappa-google h2#mappa-title {
  margin-top: 4rem;
  color: #04211A;
  text-align: center;
  margin-bottom: 1.5rem;
}

/* Visually hidden per accessibilità */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Contenitore responsive per iframe */
.mappa-google > .container > div {
  position: relative;
  width: 100%;
  max-width: 800px; 
  padding-bottom: 35%; 
  height: 0;
  border: 2px solid #084537;
  margin: 2rem auto;
  border-radius: 1rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  overflow: hidden;
}

/* Iframe pieno nel contenitore */
.mappa-google iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  border: 0;
  border-radius: 1rem;
}

/* Mobile: aspect ratio 16:9 orizzontale, full width */
@media (max-width: 600px) {
  .mappa-google > .container > div {
    max-width: 100%;
    padding-bottom: 150%;
    margin: 1.5rem auto;
  }
}

/* ============================
   COSA RICEVI – SEDE FISICA
============================ */
.cosa-ricevi {
  padding: 4rem 0;
  margin-top: 4rem;
  background-color: transparent;
}
.cosa-ricevi .container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
}

.cosa-head {
  text-align: center;
  margin-bottom: 2rem;
}

.cosa-ricevi-title {
  color: #04211A;
  margin-bottom: 1rem;
}

/* Griglia principale */
.cosa-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  list-style: none;
  padding: 0;
  margin: 0;
  justify-items: stretch;
}

/* CARD BASE */
.cosa-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: 1.25rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.cosa-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

/* ICONA */
.cosa-icon {
  margin-bottom: 1rem;
  border-radius: 0;
  padding: 0;
  background: none;
}

.cosa-icon svg {
  width: 45px;
  height: 45px;
  fill: currentColor;
}

/* TITOLO */
.cosa-step-title {
  color: #04211A;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  
}

/* TESTO */
.cosa-content p {
  color: #04211A;
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.5;
}

/* VARIANTI COLORI */
.cosa-item:nth-child(1) {
  background: #ffffff;
  border: 1px solid #04211A;
}
.cosa-item:nth-child(1) .cosa-step-title,
.cosa-item:nth-child(1) p {
  color: #04211A;
}
.cosa-item:nth-child(1) svg {
  fill: #04211A;
}

.cosa-item:nth-child(2) {
  background: #04211A;
}
.cosa-item:nth-child(2) .cosa-step-title,
.cosa-item:nth-child(2) p {
  color: #ffffff;
}
.cosa-item:nth-child(2) svg {
  fill: #c2380c;
}

.cosa-item:nth-child(3) {
  background: #c2380c;
}
.cosa-item:nth-child(3) .cosa-step-title,
.cosa-item:nth-child(3) p {
  color: #ffffff;
}
.cosa-item:nth-child(3) svg {
  fill: #ffffff;
}

.cosa-item:nth-child(4) {
  background: #084537;
}
.cosa-item:nth-child(4) .cosa-step-title,
.cosa-item:nth-child(4) p {
  color: #ffffff;
}
.cosa-item:nth-child(4) svg {
  fill: #ffffff;
}

/* RESPONSIVE */
@media (max-width: 1200px) {
  .cosa-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .cosa-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .cosa-list {
    grid-template-columns: 1fr;
  }
}

/* ==========================
   CTA CARD – Ruben Domenighini
========================== */

.cta-card-rd {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 3rem 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  text-align: center;
  max-width: 800px;
  margin-top: 4rem !important;
  margin-right: auto;
  margin-left: auto;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 3px solid #084537;
}

.cta-card-rd:hover {
  transform: translateY(-4px);
}
.cta-card-rd__heading {
  font-size: 2rem;
  color: #084537;
  margin-bottom: 2rem;
  font-weight: 600;
}

.cta-card-rd__button {
  display: inline-block;
  background-color: #04211A;
  color: #ffffff !important;
  text-decoration: none;
  padding: 0.9rem 2rem;
  font-size: 1rem;
  border-radius: 8px;
  transition: background-color 0.3s ease;
  font-weight: 600;
}

.cta-card-rd__button:hover,
.cta-card-rd__button:focus {
  background-color: #c2380c;
  color: #ffffff !important;
  outline: none;
}

@media (max-width: 600px) {
  .cta-card-rd {
    padding: 2rem 1.5rem;
    width: 90%;
    margin: 0 auto;
  }

  .cta-card-rd__heading {
    font-size: 1.6rem;
  }

  .cta-card-rd__button {
    width: 100%;
    font-size: 1rem;
    padding: 1rem;
  }
}

