@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;600;700&family=Inter:wght@400;500&display=swap');

/* ── BASE ── */
body {
    font-family: 'Inter', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: #f4f6fa;
    color: #1a1a1a;
    transition: background 0.3s, color 0.3s;
}

/* ── HEADER FIXED ── */
header {
    position: sticky;
    top: 0;
    z-index: 1000;

    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
    padding: 0 20px;
    box-sizing: border-box;
    background: #ffffff;
    border-bottom: 2px solid #003366;
    transition: background 0.3s, border-color 0.3s;
}

/* ── LOGO IMAGE ── */
header a img {
    height: 40px;
    width: auto;
    display: block;
}

/* ── NAV ── */
nav {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
    margin: 0;
    align-items: center;
}

nav a {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: #003366;
    text-decoration: none;
    line-height: 1;
    margin: 0;
    transition: color 0.2s;
}

nav a:hover {
    color: #cc1a2e;
    cursor: pointer;
}

/* ── HERO ── */
.hero {
    background-image: url('../photo/Sfondo_header.jpg');
    color: #ffffff;
    text-align: center;
    padding: 100px;
    transition: filter 0.3s;
}

.hero h1 {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 48px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0;
}

/* ── SECTION ── */
section {
    padding: 40px 20px;
}

/* ── FOOTER ── */
footer {
    background: #222;
    color: #fff;
    text-align: center;
    padding: 20px;
    border-top: 2px solid #333;
}

.site-footer {
    position: relative;
    background: #0f0f0f;
    color: #e0e0e0;
    padding: 40px 20px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1100px;
    margin: auto;
}

.footer-center {
    text-align: center;
}

.footer-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin: 0;
}

.footer-copy {
    font-size: 13px;
    color: #888;
    margin-top: 5px;
}

.footer-left {
    position: absolute;
    bottom: 15px;
    left: 20px;
    text-align: left;
}

.footer-left p {
    margin: 6px 0;
    font-size: 14px;

}

.footer-right {
    position: absolute;
    top: 15px;
    right: 20px;
    text-align: right;
}

.footer-right p {
    margin: 6px 0;
    font-size: 14px;
}

.footer-right a {
    color: #e0e0e0;
    text-decoration: none;
}

.footer-right a:hover {
    opacity: 0.8;
}

.hidden-link{
    opacity: 0;
}

/* ── SCROLLBAR ── */
html {
    scrollbar-gutter: stable;
}

/* ── DARK MODE TOGGLE ── */
#darkModeToggle {
    border: none;
    background: none;
    outline: none;
    box-shadow: none;
    cursor: pointer;
    font-size: 28px;
    padding-bottom: 5px;
    color: #888;
    transition: color 0.25s ease, transform 0.2s ease;
}

#darkModeToggle:hover {
    color: #003366;
    transform: scale(1.15);
}

#darkModeToggle:active {
    transform: scale(0.9);
}

/* ── DARK MODE ── */
body.dark-mode {
    background: #161616;
    color: #f0f0f0;
}

body.dark-mode header {
    background: #1a1a1a;
    border-bottom: 2px solid #333;
}

body.dark-mode nav a {
    color: #f0f0f0;
}

body.dark-mode nav a:hover {
    color: #ff4655;
}

body.dark-mode .hero {
    filter: brightness(0.7);
}

body.dark-mode #darkModeToggle {
    color: #aaa;
}

body.dark-mode #darkModeToggle:hover {
    color: #4a7fff;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    nav {
        gap: 10px;
    }

    nav a {
        font-size: 11px;
        letter-spacing: 0.4px;
    }

    header a img {
        height: 30px;
    }

    .hero {
        padding: 60px 20px;
    }

    .hero h1 {
        font-size: 28px;
    }

    #darkModeToggle {
        font-size: 18px;
    }

    .footer-container {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .footer-right {
        position: static;
        text-align: center;
        margin-top: 15px;
    }

    .footer-title {
        font-size: 16px;
    }

    .footer-copy {
        font-size: 12px;
    }

    .footer-right p {
        font-size: 12px;
    }

    footer {
        font-size: 12px;
    }
}

.switch {
  position: relative;
  width: 56px;
  height: 28px;
  flex-shrink: 0;
  cursor: pointer;
}
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }

.track {
  position: absolute;
  inset: 0;
  border-radius: 28px;
  background: #e2e8f0;
  border: 1px solid #cbd5e1;
  transition: background 0.3s, border-color 0.3s;
}
.switch input:checked + .track {
  background: #1e293b;
  border-color: #334155;
}

.thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  line-height: 1;
  transition: transform 0.3s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}
.thumb::after { content: '☀️'; }
.switch input:checked ~ .thumb {
  transform: translateX(28px);
}
.switch input:checked ~ .thumb::after { content: '🌙'; }

.switch input:focus-visible + .track {
  box-shadow: 0 0 0 3px rgba(0,51,102,0.25);
}

