﻿@charset "UTF-8";

html, body {
    height: 100%;
}

body {
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container{
  max-width:1200px;
  margin:0 auto;
  padding:0 18px;
}

.site-header {
    background-color: #e0e0e0;
    border-bottom: 1px solid #808080;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: center;   /* centra il blocco titolo */
    position: relative;        /* serve per il logo */
    min-height: 80px;
    padding: 6px 12px;
}

/* Logo a sinistra */
.logo {
    position: absolute;
    left: 20px;
}

.logo img {
    max-height: 80px;
}

/* Titoli centrati */
.header-titles {
    text-align: center;
    font-family: Arial, sans-serif;
}

.header-titles h1 {
    font-size: 24px;
    margin: 5px 0;
    font-weight: bold;
}

.header-titles h2 {
    font-size: 18px;
    margin: 0;
    font-weight: bold;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  text-decoration:none;
  color:inherit;
  min-width:260px;
}

.brand-mark{
  width:40px;
  height:40px;
}

.brand-text{display:flex; flex-direction:column}
.brand-name{
  font-weight:900;
  font-size:20px;
  letter-spacing:.2px;
}
.brand-subtitle{
  font-size:13px;
  margin-top:-2px;
}

.user-bar {
    background-color: #102C6B;
    border-top: 1px solid #000;
    border-bottom: 1px solid #000;
}

.user-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 6px;
    color: white;
    font-size: 14px;
}

/* Evita che vada a capo */
.welcome,
.logout {
    white-space: nowrap;
}

    /* Link logout */
    .logout a {
        color: white;
        text-decoration: none;
        font-weight: bold;
    }

        .logout a:hover {
            text-decoration: underline;
        }



.page-layout{
  display:flex;
  gap:18px;
  padding:18px 0 28px;
  align-items:flex-start;
}

.site-main {
    flex: 1 0 auto;
}

.site-footer {
    background-color: #e0e0e0;
    border-top: 1px solid #c0c0c0;
    border-bottom: 1px solid #c0c0c0;
}

.footer-content {
    text-align: center;
    padding: 4px 10px;
    min-height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: Arial, sans-serif;
    font-size: 13px;
    color: #333;
}

.footer-row{
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding:16px 0;
  font-size:13px;
}
.footer-title{ color:#0f1320}
.footer-sub{margin-top:2px}
.footer-links{
  display:flex;
  gap:12px;
  align-items:center;
}
.footer-links a{
  text-decoration:none;
  font-weight:800;
}

.footer-legal {
    display: block;
    padding: 16px 0;
    font-size: 13px;
    line-height: 1.45;
}

    .footer-legal a {
        text-decoration: none;
        font-weight: 800;
    }

        .footer-legal a:hover {
            text-decoration: underline;
        }




body {
    margin: 0;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

/* ===== NAVBAR ===== */
.main-nav {
    background-color: #e5e5e5;
    border-bottom: 1px solid #ccc;
}

/* MENU PRINCIPALE ORIZZONTALE */
.menu {
    list-style: none;
    margin: 0;
    padding: 0 10px;
    display: flex;              /* ORIZZONTALE */
    gap: 10px;
}

/* ITEM PRINCIPALI */
.menu > li {
    position: relative;         /* necessario per submenu assoluto */
}

/* LINK PRINCIPALI */
.menu > li > a {
    display: block;
    padding: 6px 8px;
    text-decoration: none;
    color: #000;
    border-radius: 4px;
    transition: background 0.2s ease;
}

/* HOVER PRINCIPALE */
.menu > li > a:hover {
    background-color: #999;
    color: #fff;
}

/* ===== SUBMENU ===== */
.submenu {
    display: none;              /* nascosto di default */
    position: absolute;
    top: 100%;
    left: 0;

    list-style: none;
    margin: 0;
    padding: 6px 0;

    background-color: #f7f7f7;
    border: 1px solid #808080;
    border-radius: 6px;

    min-width: 220px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);

    flex-direction: column;     /* FORZA VERTICALE */
}

/* IMPORTANTE: nessun flex sui LI */
.submenu li {
    display: block;
}

/* LINK SUBMENU */
.submenu a {
    display: block;
    padding: 3px 6px;
    text-decoration: none;
    color: #000;
    white-space: normal;        /* PERMETTE TESTI LUNGHI */
    line-height: 1.4;
}

/* HOVER SUBMENU */
.submenu a:hover {
    background-color: #999;
    color: #fff;
}

/* MOSTRA SUBMENU */
.menu > li:hover > .submenu {
    display: block;
}

