﻿/* CONTENITORE PRINCIPALE */
.containerhome {
 display: flex;
 gap: 20px;
 max-width:100%;
 margin: 20px auto;
 padding: 20px;
 flex-wrap: nowrap;
 padding-top: 20px; /* spazio sotto nav */
}

.marginhome {
 margin-top: 0px;
}

/* COLONNE */
.col-left {
 flex: 0 0 70%;
 display: flex;
 flex-direction: column;
 gap: 20px;
}

.col-right {
 flex: 0 0 30%;
 display: flex;
 flex-direction: column;
 gap: 20px;
}

/* CELLE */
.cell {
 background: #fff;
 padding: 20px;
 border-radius: 8px;
 box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* PRIMA CELLA SINISTRA (immagine + testo) */
.cell-left-top {
 display: flex;
 gap: 20px;
 flex-wrap: wrap; /* scaling mobile */
}

 .cell-left-top img {
  max-width: 200px;
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
 }

 .cell-left-top .text {
  flex: 1;
 }

/* TERZA CELLA SINISTRA (testo + due immagini sotto) */
.cell-left-bottom .text-top {
 margin-bottom: 15px;
}

.cell-left-bottom .images-bottom {
 display: flex;
 gap: 10px;
 flex-wrap: wrap;
}

 .cell-left-bottom .images-bottom img {
  flex: 1;
  border-radius: 8px;
  object-fit: cover;
  max-height: 260px;
 }

/* LINK FRECCIA */
.link-freccia {
 margin-top: 15px;
}

 .link-freccia a {
  text-decoration: none;
  font-weight: 500;
  color: #0f2c64;
  display: inline-flex;
  align-items: center;
  transition: all 0.3s ease;
 }

  .link-freccia a .freccia {
   display: inline-block;
   margin-left: 5px;
   transition: margin-left 0.3s ease;
  }

  .link-freccia a:hover .freccia {
   margin-left: 10px;
  }

/* RESPONSIVE */
@media (max-width: 768px) {
 .containerhome {
  flex-direction: column;
  flex-wrap: wrap;
 }

 .col-left, .col-right {
  flex: 1 0 100%;
 }

 .cell-left-top {
  flex-direction: column;
 }

  .cell-left-top img {
   max-width: 100%;
  }

 .cell-left-bottom .images-bottom {
  flex-direction: column;
 }
}
