/* Importazione dei caratteri */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Playfair+Display:wght@600;700&display=swap');

/* Colori principali del sito */
:root {
    --blu: #121c2c;
    --rosso: #9e230d;
    --avorio: #F7F5F0;
    --testo: #252B34;
    --grigio: #5A6370;
    --line: #E3E0D9;
}

/* Impostazioni generali */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--avorio);
    color: var(--testo);
    font: 16px/1.75 "Inter", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
}

/* Contenitore centrale */
.contenitore {
    width: min(1120px, calc(100% - 36px));
    margin: auto;
}

/* Intestazione */
header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--blu);
    color: white;
    padding: 18px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.testata {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Logo */
.logo {
    text-decoration: none;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: .04em;
}

.logo span {
    color: #e6a092;
}

/* Menu di navigazione */
nav {
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
}

nav a {
    font-size: .9rem;
    font-weight: 500;
    text-decoration: none;
    color: #D9DFE8;
    transition: color .2s ease;
}

nav a:hover {
    color: #ffffff;
}

/* Sezione principale */
.hero {
    background: radial-gradient(circle at 82% 28%, #1d2b42 0%, var(--blu) 62%);
    color: white;
    padding: 58px 0 64px;
}

.soprattitolo {
    color: #e6a092;
    text-transform: uppercase;
    letter-spacing: .14em;
    font-size: .78rem;
    font-weight: 700;
}

/* Titoli */
h1,
h2,
h3 {
    font-family: 'Playfair Display', Georgia, serif;
    line-height: 1.22;
    color: var(--blu);
}

.hero h1 {
    color: white;
    font-size: clamp(2.2rem, 4.8vw, 3.8rem);
    margin: 12px 0 16px;
}

.hero p {
    max-width: 720px;
    margin: 0;
    color: #D9DFE8;
    font-size: 1.06rem;
    line-height: 1.68;
}

/* Corpo della pagina */
.contenuto {
    padding: 56px 0 80px;
}

.layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 40px;
    align-items: start;
}

article {
    background: white;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: clamp(28px, 4vw, 48px);
    box-shadow: 0 10px 30px rgba(18, 28, 44, 0.04);
}

article h2 {
    font-size: clamp(1.45rem, 2.5vw, 1.85rem);
    margin: 34px 0 12px;
}

article h2:first-child {
    margin-top: 0;
}

article p {
    margin: 0 0 16px;
    color: var(--testo);
    font-size: 1.02rem;
    line-height: 1.78;
}

article ul {
    margin: 10px 0 18px;
    padding-left: 22px;
    color: var(--testo);
    font-size: 1.02rem;
    line-height: 1.75;
}

article li {
    margin-bottom: 8px;
}

/* Riquadro di riflessione */
.risalto {
    background: var(--avorio);
    border-left: 4px solid var(--rosso);
    border-radius: 0 8px 8px 0;
    padding: 20px 24px;
    margin: 30px 0 24px;
}

.risalto strong {
    color: var(--blu);
}

/* Menu laterale */
aside {
    background: white;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 24px;
    height: max-content;
    position: sticky;
    top: 88px;
    box-shadow: 0 8px 24px rgba(18, 28, 44, 0.04);
}

aside h3 {
    margin: 0 0 14px;
    font-size: 1.2rem;
}

aside a {
    display: block;
    text-decoration: none;
    padding: 9px 0;
    border-bottom: 1px solid var(--line);
    font-size: .92rem;
    color: var(--grigio);
    transition: color .2s ease, padding-left .2s ease;
}

aside a:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

aside a:hover {
    color: var(--rosso);
    padding-left: 4px;
}

aside a[aria-current="page"] {
    color: var(--rosso);
    font-weight: 700;
}

/* Link per tornare alla homepage */
.torna {
    display: inline-block;
    margin-top: 22px;
    color: var(--rosso);
    font-weight: 700;
    text-decoration: none;
    transition: transform .2s ease;
}

.torna:hover {
    transform: translateX(-3px);
}

/* Footer */
footer {
    background: #101A2A;
    color: #AAB4C3;
    padding: 32px 0;
    font-size: .88rem;
}

/* Adattamento per smartphone e tablet */
@media (max-width: 820px) {
    .layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    aside {
        position: static;
        order: 1;
    }

    .hero {
        padding: 46px 0 50px;
    }

    .contenuto {
        padding: 40px 0 60px;
    }
}