/* =================================================
   NAVIGAZIONE IN INCOGNITO
   CSS UNICO PER TUTTE LE PAGINE
   ================================================= */

/* ---------- Variabili ---------- */
:root{
  --bg: #f4f6fa;
  --text: #0f172a;
  --muted: #52607a;

  --navy-1: #102040;
  --navy-2: #103050;
  --cyan: #50c0d0;

  --container: 1100px;
}

/* ---------- Reset ---------- */
*{
  box-sizing: border-box;
}

html, body{
  height: 100%;
}

body{
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);

  /* footer sempre in basso */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---------- Layout ---------- */
.container{
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

main{
  flex: 1;
  padding: 40px 0 60px;
}

/* =================================================
   HEADER + NAVBAR
   ================================================= */

.site-header{
  background: linear-gradient(180deg, var(--navy-1), var(--navy-2));
  color: white;
}

.brandbar{
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 18px 0 16px;
}

.brandbar h1{
  margin: 0;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* Navbar */
.navbar{
  background: rgba(80,192,208,.18);
  border-top: 1px solid rgba(255,255,255,.15);
  border-bottom: 1px solid rgba(0,0,0,.1);
}

.navbar .container{
  display: flex;
  justify-content: center;
  gap: 22px;
  padding: 10px 0;
}

.navbar a{
  color: #eaf6ff;
  text-decoration: none;
  font-weight: 800;
  font-size: 14px;
  padding: 8px 14px;
  border-radius: 999px;
  transition: .2s ease;
}

.navbar a:hover{
  background: rgba(80,192,208,.25);
}

.navbar a.active{
  background: rgba(80,192,208,.45);
}

/* =================================================
   TITOLI
   ================================================= */

.page-title{
  text-align: center;
  font-size: 38px;
  font-weight: 900;
  margin: 0 0 6px;
  color: var(--navy-1);
}

.page-subtitle{
  text-align: center;
  color: var(--muted);
  margin: 0 0 36px;
}

.section-title{
  text-align: center;
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 14px;
  color: var(--navy-2);
}

/* =================================================
   HOME
   ================================================= */

.hero{
  display: grid;
  place-items: center;
  text-align: center;
  gap: 14px;
}

.logo{
  width: 130px;
  height: 130px;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.25));
}

.hero h2{
  font-size: 42px;
  margin: 0;
  color: var(--navy-1);
}

.hero p{
  max-width: 700px;
  margin: 0;
  color: var(--muted);
}

/* Bottoni */
.btn-row{
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.btn{
  border: none;
  cursor: pointer;
  padding: 10px 18px;
  border-radius: 12px;
  font-weight: 800;
  transition: .2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary{
  background: linear-gradient(180deg, #50c0d0, #78d8e6);
  color: #06202b;
}

.btn-primary:hover{
  transform: translateY(-1px);
}

.btn-ghost{
  background: transparent;
  border: 1px solid rgba(16,32,64,.2);
  color: var(--navy-1);
}

.btn-ghost:hover{
  background: rgba(16,32,64,.05);
}

/* =================================================
   CONTATTI – IDENTICI ALLA VERSIONE ARANCIONE (FORMATO)
   ================================================= */

.grid{
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, 260px);
  justify-content: center;
  gap: 60px;
}

/* Card invisibile */
.contact-card{
  background: none;
  border: none;
  box-shadow: none;
  padding: 0;
  text-align: center;
}

/* Immagini verticali */
.contact-card img{
  width: 100%;
  height: 340px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 14px 30px rgba(0,0,0,.18);
  margin-bottom: 14px;
}

/* Testi sotto */
.contact-card .info{
  font-size: 14px;
  line-height: 1.6;
  color: #1e293b;
}

.contact-card .info strong{
  display: block;
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 4px;
  color: #0f172a;
}

.contact-card .info a{
  color: #2563eb;
  font-weight: 600;
  text-decoration: underline;
}

.contact-card .info a:hover{
  color: #1d4ed8;
}

/* =================================================
   AREA RISERVATA / FORM GENERICI
   ================================================= */

.login-wrap{
  max-width: 460px;
  margin: 0 auto;
}

.form{
  display: grid;
  gap: 14px;
}

.field{
  display: grid;
  gap: 6px;
}

label{
  font-weight: 800;
  color: var(--navy-2);
  font-size: 13px;
}

input, select{
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(16,32,64,.25);
  font-size: 14px;
  background: #fff;
}

input:focus, select:focus{
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(80,192,208,.25);
}

/* =================================================
   FOOTER (COME FOTO)
   ================================================= */

.site-footer{
  background: linear-gradient(180deg, #0b1624, #09121e);
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 14px 0;
}

.footer-inner{
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,.9);
  font-size: 14px;
  font-weight: 800;
}

.footer-inner .sep{
  opacity: .4;
}

.footer-inner a{
  color: var(--cyan);
  text-decoration: none;
  font-weight: 900;
}

.footer-inner a:hover{
  text-decoration: underline;
}

/* =================================================
   Pagine gestionale: layout centrato come screenshot
   ================================================= */

.admin-wrap{
  display: flex;
  justify-content: center;
}

.admin-stack{
  width: 420px;             /* stessa “colonna” stretta come foto */
  display: grid;
  gap: 18px;
}

.admin-card{
  background: #ffffff;
  border: 1px solid rgba(16,32,64,.12);
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(0,0,0,.12);
  padding: 18px;
}

.admin-title{
  margin: 0 0 10px;
  font-weight: 900;
  color: #102040;
  text-align: left;
}

.notice{
  width: 420px;
  margin: 0 auto 14px;
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 800;
  text-align: center;
}

.notice.ok{
  background: rgba(34,197,94,.12);
  border: 1px solid rgba(34,197,94,.25);
  color: #166534;
}

.notice.err{
  background: rgba(239,68,68,.12);
  border: 1px solid rgba(239,68,68,.25);
  color: #991b1b;
}

/* Bottone torna indietro in basso centrato */
.back-row{
  display: flex;
  justify-content: center;
  margin-top: 14px;
}

.back-row .btn{
  min-width: 160px;
}

/* Tabelle più carine dentro le card */
.table{
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  font-size: 13px;
}

.table th, .table td{
  padding: 8px 10px;
  border-bottom: 1px solid rgba(16,32,64,.10);
  text-align: left;
}

.table th{
  color: #102040;
  font-weight: 900;
}

/* =================================================
   RESPONSIVE
   ================================================= */

@media (max-width: 900px){
  .grid{
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-card img{
    height: 300px;
  }

  .page-title{
    font-size: 32px;
  }

  .hero h2{
    font-size: 34px;
  }

  .admin-stack,
  .notice{
    width: 100%;
  }
}
