/* Reset base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Arial', sans-serif;
}

/* Header */
.header {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 40px;
}
.logo img {
  height: 100px;
  padding-right: 20px; /* spazio tra linea e testo */
  border-right: 2px solid #01155d; /* linea blu */
}

.slogan p {
  font-size: 24px;
  line-height: 1.3;
  color: #01155d;
}

/* Banner titolo */
.banner {
display: flex;
justify-content: center;
margin: 10px 30px auto;
width: 96%;               /* largo quasi tutta la pagina */
}

.banner h1 {
background-color: #f3f4f4;   /* sfondo grigio chiaro */
color: #01155d;
font-size: 24px;
font-weight: 700;
padding: 20px 30px;
border-radius: 12px;         /* bordi arrotondati */
box-shadow: 0px 2px 6px rgba(0,0,0,0.1);
width: 100%;                 /* prende tutta la larghezza del banner */
text-align: left;            /* testo allineato a sinistra */
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(2, 300px); /* due colonne larghe 300px */
  gap: 60px 100px; /* 60px verticali, 100px orizzontali */
  justify-content: center; /* centrate orizzontalmente */
  align-content: center;   /* centrate verticalmente */
  min-height: 70vh;        /* occupano almeno 70% dell’altezza viewport */
  padding: 20px 20px;
}

@media (max-width: 768px) {
  .cards {
    grid-template-columns: 1fr;
  }
}

.card {
  background-color: #fff;
  border-radius: 16px;
  padding: 30px 20px;
  box-shadow: 0px 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.2s, border 0.2s;
  text-align: left;
  border: 2px solid transparent; /* bordo trasparente di base */
}

.card:hover {
  transform: translateY(-5px);
  border: 1px solid #DEDEDE; /* bordo blu all'hover */
}

.card .icon img {
  width: 36px;
  height: 36px;
  margin-bottom: 15px;
}

.card h2 {
  font-size: 26px;
  font-weight: 700;
  color: #01155d;
  margin-bottom: 8px;
}

/* Link dentro gli H2: sempre blu */
.card h2 a {
  color: #01155d !important;   /* blu fisso */
  font-weight: 700;
}

.card h2 a:hover {
  color: #1f85f8 !important;   /* resta blu anche al passaggio */
}

.card p {
  margin-top: 5px;
}

.card .desc {
  font-size: 15px;
  color: #5A5F6C;
}

.card .subdesc {
  font-size: 13px;
  color: #5A5F6C;
  margin-bottom: 6px;
  margin-left: 5px;
}

.card .boldlink {
  font-size: 15px;
  font-weight: bold;
  color: #1F85F8;
  margin-top: 5px;
}

.card .boldlink a {
  color: #1F85F8;
  font-weight: bold;
  text-decoration: none;
}

.card .boldlink a:hover {
  color: #50A2FF;
  text-decoration: none;
}

.card .highlight {
  font-weight: 600;
  background: linear-gradient(
    90.73deg,
    #37A7E7 25%,   /* mantieni blu fino al 25% */
    #8793FF 45%,   /* poi sfuma nel viola */
    #FF66C4 80%    /* e infine nel rosa */
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}

/* Floating actions container */
.floating-actions-container {
  position: fixed;
  right: 20px;
  bottom: 20px;
  background: #f3f4f4;
  border-radius: 16px;
  padding: 12px 16px;
  box-shadow: 0px 4px 12px rgba(0,0,0,0.15);
}

/* Floating actions */
.floating-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}
.floating-actions button {
  background: #fff;
  border: none;
  padding: 8px;
  border-radius: 10px;
  box-shadow: 0px 2px 4px rgba(0,0,0,0.08);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.floating-actions button:hover {
  transform: scale(1.05);
  box-shadow: 0px 3px 6px rgba(0,0,0,0.12);
}
.floating-actions img {
  width: 18px;
  height: 18px;
}

/* Link */
a {
  color: #5A5F6C;              /* grigio di base */
  text-decoration: none;    /* niente underline */
}

a:hover {
  color: #1f85f8;           /* blu al passaggio del mouse */
  text-decoration: none;    /* sempre senza underline */
}

/* LOGIN */
.login-box-container{
  display: flex;
  flex-direction: column;   /* forza disposizione verticale */
  justify-content: center;
  align-items: center;
  height: 60vh;
  background: #fff;
}

.login-box {
  display: flex;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 50px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.login-box input {
  border: none;
  outline: none;
  padding: 12px 20px;
  font-size: 16px;
  border-radius: 50px 0 0 50px;
  flex: 1;
  transition: background 0.3s ease;
}

.login-box button {
  background: #1a73e8;
  border: none;
  color: #fff;
  padding: 12px 25px;
  font-size: 16px;
  border-radius: 50px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.login-box button:hover {
  background: #50a2ff;
  transform: scale(1.05);
}

/* Effetto hover/focus sul contenitore */
.login-box:hover,
.login-box:focus-within {
  border: 1px solid #1a73e8;
  background: #f5f7fa;
}

.login-error {
  margin-top: 30px;          /* spazio sopra */
  color: red;
  font-weight: bold;
}
