@charset "utf-8";

/* =========================
   RESET BASE
========================= */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* =========================
   FONT LOCALE POPPINS
========================= */
@font-face {
  font-family: "Poppins";
  src: url("../font/poppins/Poppins-Regular.woff2") format("woff2"),
       url("../font/poppins/Poppins-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* =========================
   BASE TYPOGRAPHY
========================= */
html {
  font-size: 16px;
}

body {
  font-family: "Poppins", Arial, sans-serif;
  color: #000000;
  background-color: #ffffff;
  line-height: 1.5;

  /* SPAZIO PER NAVBAR FISSA */
  padding-top: 100px;   /* altezza navbar */
}

/* =========================
   TITOLI
========================= */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  color: #000000;      /* colore base FEI */
  line-height: 1.2;
  margin-bottom: 0.5em;
}

/* =========================
   PARAGRAFI
========================= */
p {
  font-size: 1rem;
  margin-bottom: 1em;
  color: #333333;
}

/* =========================
   LINK BASE
========================= */
a {
  color: #098d3f;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* =========================
   IMMAGINI RESPONSIVE
========================= */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* =========================
   ALLINEA ZOOM
========================= */
.zoom-row {
  display: inline-flex;
  align-items: center;   /* allineamento verticale */
  gap: 8px;              /* spazio tra icona e testo */
  font-size: 1rem;
}

.zoom-icon {
  width: 100px;           /* dimensione icona */
  height: auto;
  vertical-align: middle;
}

/* =========================
   UTILITY
========================= */

.space-top{
	margin-top:70px;
}

@media (max-width: 767px) {
  .space-top {
    margin-top:0;
  }

}
/* =========================
   HEADER PAGINA
========================= */
.page-header {
  width: 100%;
  height: 400px;                 /* altezza richiesta */
  background-image: url("../images/bg-header.png"); 
  background-size: cover;        /* riempie senza deformare */
  background-position: center;   /* centra il soggetto */
  background-repeat: no-repeat;

  display: flex;
  align-items: center;           /* centro verticale */
  justify-content: center;       /* centro orizzontale */

  text-align: center;
}

/* Titolo header */
.page-header h1 {
  color: #ffffff;
  font-size: 2.5rem;
  font-weight: 600;
  margin: 0;
  padding: 0 1rem;               /* respiro su mobile */
}

.page-header h1#typewriter {
  display: inline-block;
  width: min(90vw, 900px);
}

@media (max-width: 767px) {
  .page-header {
    height: 260px;
  }

  .page-header h1 {
    font-size: 1.8rem;
  }
}

#tw-cursor {
  display: inline-block;
  margin-left: 4px;
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 50%, 100% { opacity: 1; }
  25%, 75% { opacity: 0; }
}


/* =========================
   LOGHI HEADER
========================= */

/* rende il contenitore riferimento per gli assoluti */
.page-header {
  position: relative;
}

/* IMPORTANTISSIMO: forza i loghi fuori dal flow del flex */
.page-header > .header-logo {
  position: absolute !important;
  display: block;
  height: auto;
 
  z-index: 2;
  pointer-events: none; /* opzionale: non “ruba” click */
 filter: drop-shadow(0 2px 6px rgba(0,0,0,0.20))
        drop-shadow(0 8px 20px rgba(0,0,0,0.10));

}

/* titolo sopra eventuali overlay */
.page-header h1 {
  position: relative;
  z-index: 1;
}

/* FEI alto a sinistra */
.page-header > .header-logo.logo-top {
  top: 20px;
  left: 20px;
  right: auto;
  bottom: auto;
   width: clamp(90px, 14vw, 160px)
}

/* Partner basso a sinistra */
.page-header > .header-logo.logo-bottom {
  bottom: 20px;
  right: 20px;
   left:auto ;
  top: auto;
  width: clamp(170px, 26vw, 300px);
}

/* mobile */
@media (max-width: 767px) {
  .page-header > .header-logo.logo-top {
    top: 12px;
    right: 12px;
  }

  .page-header > .header-logo.logo-bottom {
    bottom: 12px;
    left: 12px;
  }
}


/* =========================
   FOOTER
========================= */
.site-footer {
  background-color: #270a0a;
  color: #ffffff;
  text-align: center;

  padding: 2rem 1rem;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

/* Immagine/logo nel footer */
.site-footer img {
  max-width: 100%;   /* si riduce se serve */
  height: auto;      /* mantiene proporzioni */
  width: auto;       /* usa la dimensione originale */
  margin: 0 auto;
  display: block;
}

/* Testo footer */
.site-footer p {
  margin: 0;
  font-size: 0.9rem;
  color: #ffffff;
}

/* Link footer */
.site-footer a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 400;
}

/* Stato visitato */
.site-footer a:visited {
  color: #ffffff;
}

/* Hover: sottolineatura */
.site-footer a:hover {
  text-decoration: underline;
  color: #ffffff;
}

/* =========================
   CONTENITORE CENTRALE
========================= */
.content-wrap {
  max-width: 1400px;
  margin: 3rem auto;         /* centro pagina */
  padding: 0 1rem;

  display: grid;
  grid-template-columns: 70% 30%;
  gap: 2rem;

  align-items: start;        /* ✅ card NON pareggiate in altezza */
}

/* =========================
   CARD BASE
========================= */
.card {
  background: #ffffff;
  border-radius: 8px;
  padding: 1.5rem;

  /* niente height */
  /* altezza = contenuto */
}

.card-side a{
  display: inline-block;
  overflow: hidden;        /* nasconde lo zoom */
  border-radius: 20px;     /* uguale all’immagine */
}

.card-side img{
  display: block;
  margin: 0 auto;

  width: auto;
  height: auto;
  max-width: 100%;

  border-radius: 20px;
  cursor: zoom-in;

  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.card-side a:hover img{
  transform: scale(1.05) translateY(-4px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.25);
}

/* CARD FULL WIDTH */
.card-full {
  grid-column: 1 / -1;   /* prende tutte le colonne */
}

/* CARD 50 / 50 */
.card-half {
  grid-column: span 1;   /* una colonna ciascuna */
}

.content-wrap.half {
  grid-template-columns: 1fr 1fr;
}


/* =========================
   RESPONSIVE
========================= */
@media (max-width: 767.98px) {
  .content-wrap,
  .content-wrap.half {
    grid-template-columns: 1fr;
  }
}
