﻿/* -----------------------------------------------------------
   RESET & BASE TYPOGRAPHY
------------------------------------------------------------*/

html, body {
  margin: 0;
  padding: 0; /* deve restare */
  font-family: "Segoe UI", Tahoma, sans-serif;
  background-color: #e5d7b6;
  color: #2f2f2f;
}

/* -----------------------------------------------------------
 NAVBAR comune a tutti i siti 
------------------------------------------------------------*/

.navbar {
  background-color: #394a73 !important;
  border-bottom: none;                 /* ✔ nessun bordo */
  box-shadow: none;                    /* ✔ niente ombre */
}

/* Colore dei link nella navbar */
.navbar .nav-link,
.navbar .navbar-brand,
.navbar .dropdown-toggle {
  color: #ffffff !important;
  font-weight: 600;
}

.navbar .nav-link:hover,
.navbar .dropdown-item:hover {
  opacity: 0.8;
}

/* Dropdown menu */
.navbar .dropdown-menu {
  background-color: #394a73;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.navbar .dropdown-item {
  color: #ffffff !important;
}

.navbar .dropdown-item:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Logo della navbar – dimensione uniforme per tutti i siti */
.navbar-brand img {
  height: 40px;      /* era 40px in Moeda e Marengo */
  width: auto;
  margin-right: 8px;
  vertical-align: middle;
  object-fit: contain;
}

/* ---------------------------------------------------
   HERO – base comune per tutti i siti
--------------------------------------------------- */

.hero-section {
    padding-top: 100px;      /* spazio per la navbar fissa */
    padding-bottom: 3rem;    /* spazio sotto */
    padding-left: 1rem;
    padding-right: 1rem;

    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    overflow: hidden; /* fondamentale per tagliare il gradiente */

    min-height: 220px;       /* sempre visibile */
    text-align: center;

    display: flex;
    flex-direction: column;
    justify-content: center;

    color: #fff;             /* testo sempre leggibile */
}

/* Titolo e sottotitolo hero */
.hero-section h1 {
    font-size: 2.4rem;
    font-weight: 700;
}

.hero-section h2 {
    font-size: 1.2rem;
    margin-top: .5rem;
}

/* -----------------------------------------------------------
   CARD COMPONENTS (comuni a tutti i siti)
------------------------------------------------------------*/

.site-card-grid {
  display: grid;
  gap: 2.5rem;
  justify-content: center;
  margin: 0 auto 3rem auto;
}

.site-card {
  background-color: #324d80;
  color: #fff;
  text-align: center;
  padding: 1.8rem 1.5rem;
  border-radius: 22px;
  box-shadow: 0 10px 22px rgba(0,0,0,0.28);
  transition: transform 0.2s ease;
  max-width: 340px;
}

.site-card:hover {
  transform: translateY(-6px);
}

.site-card-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.site-card-img-wrapper {
  display: inline-block;
  padding: 6px;
  border: 2px solid #fff;
  border-radius: 10px;
  margin-bottom: 1rem;
}

.site-card-img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  background: #000;
  border-radius: 4px;
}

.site-card-text {
  font-size: 0.95rem;
  margin-bottom: 1.2rem;
}

.site-card-btn {
  display: inline-block;
  background-color: #e6cf8b;
  padding: 0.55rem 1.6rem;
  border-radius: 18px;
  font-weight: 600;
  color: #2f2f2f;
  text-decoration: none;
}

/* -----------------------------------------------------------
   FOOTER (base)
------------------------------------------------------------*/

footer {
  background-color: #324d80;
  color: #fff;
  padding: 2rem 1rem 2.5rem 1rem;
  margin-top: 4rem;

  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  overflow: hidden; /* taglia eventuali child con sfondo */
}

footer a {
  color: #fff;
  text-decoration: underline;
}
