/* ================================================================
   HEADER.CSS – Variabili globali e stile base della pagina iniziale
=================================================================== */

/* VARIABILI GLOBALI */
:root {
    --main-font: 'Inter', sans-serif;
    --main-color: #7d3718; /* Rosso acceso */
    --hover-color: #b44618;
    --background-light: #f9f9f9;
    --text-color: #000000;
    --box-shadow-light: 0 4px 6px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
    --transition-speed: 0.3s;
    --footer-bg: #0f1724;        /* sfondo scuro */
    --footer-text: #e6eef8;      /* testo chiaro */
    --accent: #f6c543;           /* accento (se vuoi link o highlight) */
    --footer-padding: 1.25rem;
    --max-width: 1200px;
    --radius: 10px;
}

/* BODY BASE */
body {
    font-family: var(--main-font);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: var(--background-light);
    color: var(--text-color);
    overflow-x: hidden;
}

/* ANIMAZIONI */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}


.container {
    max-width: 90%;
    height: auto;
    margin: 40px auto;
    padding: 10px;
    background: linear-gradient(135deg, #ffffff, #f6f6f9);
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out forwards;
    overflow: hidden;
}

/* CONTENITORE PRINCIPALE (BACKGROUND CON IMMAGINE) */
.containerHome {
    background: url('../immagini/bgmain.jpg') center/cover no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 90%;
    min-height: 70vh;
    margin: 40px auto;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-light);
    animation: fadeInUp 0.8s ease-out forwards;
    position: relative;
}

/* SOVRAPPOSIZIONE LEGGERA PER LEGGIBILITÀ */
.containerHome::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.45);
    border-radius: var(--border-radius);
    z-index: 1;
}

/* CONTENITORE INTERNO */
.minicontainer {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    font-weight: bold;
    background-color: rgba(255, 255, 255, 0.85);
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(6px);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.minicontainer:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.25);
}

/* LINK E BOTTONI */
a {
    text-decoration: none;
    color: var(--main-color);
    font-weight: bold;
    padding: 8px 14px;
    transition: background-color var(--transition-speed), color var(--transition-speed);
}

/* BOTTONI */
.btnCss {
    width: 220px;
    padding: 12px;
    background-color: var(--main-color);
    border: none;
    border-radius: var(--border-radius);
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    transition: all var(--transition-speed) ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btnCss:hover {
    background-color: var(--hover-color);
    transform: scale(1.03) translateY(-3px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

/* TOGGLE PASSWORD */
.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #555;
    font-size: 16px;
}

/* TRANSIZIONI DI PAGINA */
.fade-out {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.fade-in {
    opacity: 1;
    transition: opacity 0.5s ease;
}


p {
    font-size: 18px;
    color: #555;
}

strong {
    color: #000;
}


/* Base */
.site-footer{
  background: linear-gradient(180deg, rgba(15,23,36,0.98), var(--footer-bg));
  color: var(--footer-text);
  padding: var(--footer-padding) 1rem;
  box-sizing: border-box;
  font-family: var(--main-font);
  font-size: 0.95rem;
  line-height: 1.4;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.03);
  backdrop-filter: blur(4px);
}

/* Container centrato e limite larghezza */
.site-footer p{
  margin: 0 auto;
  max-width: var(--max-width);
  padding: 0.3rem;
  border-radius: var(--radius);
}

/* Link styling (se aggiungi link) */
.site-footer a{
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px dashed rgba(246,197,67,0.35);
}
.site-footer a:focus,
.site-footer a:hover{
  text-decoration: underline;
  outline: none;
}

/* Sticky footer semplice (attivabile aggiungendo .sticky al footer) */
.site-footer.sticky{
  position: sticky;
  bottom: 0;
  width: 100%;
  z-index: 50;
}

/* Mobile: più leggibile, va a capo */
@media (max-width: 600px){
  :root{ --footer-padding: 1rem; }
  .site-footer p br{ display: block; } /* su mobile vai a capo */
  .site-footer p::after{ content: ""; } /* rimuove duplicato su mobile */
  .site-footer{ font-size: 0.9rem; padding: 0.9rem 0.8rem; }
}

/* Stampa: non mostrare il footer (di solito evita ingombri) */
@media print{
  .site-footer{ display: none; }
}