/* ==========================================================================
   CSS Document — Innovation Agency
   ========================================================================== */

/* ==========================================================================
   2. FONT LOCALI
   ========================================================================== */

@font-face {
  font-display: swap;
  font-family: 'TitleFont';
  font-style: italics;
  font-weight: 700;
  src: url('../fonts/playfair-display-v40-latin-700italic.woff2') format('woff2');
}

@font-face {
    font-family: 'MainFont';
    src: url('../fonts/dm-sans-v17-latin-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'MainFont';
    src: url('../fonts/dm-sans-v17-latin-italic.woff2') format('woff2');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'MainFont';
    src: url('../fonts/dm-sans-v17-latin-700.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'MainFont';
    src: url('../fonts/dm-sans-v17-latin-300.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
  font-title: swap;
  font-family: 'SubTitleFont';
  font-style: normal;
  font-weight: 600;
  src: url('../fonts/lora-v37-latin-600.woff2') format('woff2');
}

@font-face {
  font-title: swap;
  font-family: 'SubTitleFont';
  font-style: italic;
  font-weight: 600;
  src: url('../fonts/lora-v37-latin-600italic.woff2') format('woff2');
}



/* ==========================================================================
   1. RESET & BASE
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Mainfont', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    line-height: 1.7;
    color: #333;
    font-weight: 400;
    background-color: #fafafa;
}

h2.titoletto {
    font-family: 'SubTitleFont', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    line-height: 1.2;
    color: #333;
    font-weight: 600;
	font-style:italic;
	font-size:1.4rem;
    background-color: #fafafa;
	padding-bottom:15px;
}

.custom-link {
    text-decoration: none;
}

.custom-link:hover {
    text-decoration: underline;
}


/* ==========================================================================
   3. LAYOUT — CONTENITORI GENERALI
   ========================================================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}


/* ==========================================================================
   4. HEADER & NAVIGAZIONE
   ========================================================================== */

.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
	font-family: 'TitleFont', ui-serif, Georgia, 'Times New Roman', Times, serif;    
	font-size: 1.5rem;
    font-weight: 600;
    color: #012a60;
    text-decoration: none;
}

.logo img {
    max-height: 40px;
    width: auto;
    display: block;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: #012a60;
    font-weight: 400;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #3498db;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #333;
    transition: 0.3s;
}


/* ==========================================================================
   5. HERO
   ========================================================================== */

.hero {
    text-align: center;
    padding: 4rem 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.hero h1 {
	font-family: 'TitleFont', ui-serif, Georgia, 'Times New Roman', Times, serif;    
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: #012a60;
    margin-bottom: 1rem;
}

.hero p {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: #5a6c7d;
    max-width: 600px;
    margin: 0 auto;
}


/* ==========================================================================
   6. IMMAGINE PRINCIPALE (banner)
   ========================================================================== */

.main-image {
    margin: 0;
}

.main-image img {
    width: 100%;
    height: auto;
    display: block;
}


/* ==========================================================================
   7. SEZIONE CONTENUTI
   ========================================================================== */

.content {
    background: #fff;
    margin: 2rem 0;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.content-block {
    max-width: 920px;
    width: 100%;
    padding: 2.5rem;
    margin-left: auto;
    margin-right: auto;
}

.content-block h2 {
    font-family: 'SubTitleFont', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    font-size: 1.6rem;
    font-weight: 600;
	font-style:italic;
    color: #012a60;
    margin-bottom: 1rem;
}

.content-block p {
    margin-bottom: 1.2rem;
    color: #3a4353;
    font-size: 1.1rem;
    line-height: 1.4;
}

.content-block p.titoletto {
    margin-bottom: 1.2rem;
    color: #3a4353;
    font-size: 0.9rem;
    line-height: 1;
}

/* Immagini dentro il contenuto — si adattano sempre al contenitore */
.content-block p img {
    max-width: 100%;
    width: 100%;
    height: auto;
    display: block;
}

/* Immagine con stile decorativo (bordo, ombra) */
.content-image {
    width: 100%;
    height: auto;
    border-radius: 0 14px 14px 14px;
    margin: 1.5rem 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: block;
}

/* Firma autore */
.nome {
	font-family: 'TitleFont', ui-serif, Georgia, 'Times New Roman', Times, serif;    
    font-size: 1rem;
    font-weight: 300;
    font-style: italic;
    color: #012a60;
    margin-bottom: 1rem;
}


/* ==========================================================================
   8. BIBLIOGRAFIA
   ========================================================================== */

.bibliografia-guidata {
    margin-top: 3rem;
    padding: 2rem;
    background-color: #f8f9fa;
    border-top: 4px solid #dddddd;
    border-radius: 4px;
}

.bibliografia-guidata h3 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: #444;
}

.biblio-item {
    margin-bottom: 1.8rem;
}

.biblio-item:last-child {
    margin-bottom: 0;
}

/* Citazione APA con rientro sporgente */
.content-block .apa-citation {
    padding-left: 2em;
    text-indent: -2em;
    margin: 0 0 0.4rem 0;
    line-height: 1.5;
    color: #111;
    font-size: 1.0rem;
    font-weight: 500;
}

/* Nota descrittiva allineata al testo APA */
.content-block .biblio-note {
    margin: 0 0 0 2em;
    font-size: 0.95rem;
    line-height: 1.4;
    color: #555;
}


/* ==========================================================================
   9. LISTA ARTICOLI (card)
   ========================================================================== */

.article-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 1rem;
}

.article-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1rem;
    background-color: #fff;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.article-card a {
    text-decoration: none;
}

/* Badge "Tipo" — etichetta sopra il titolo */
.article-tipo {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #012a60;
    background-color: #dde6f3;
    padding: 0.1rem 0.55rem;
    border-radius: 4px;
    margin-bottom: 0.6rem;
}

.article-card h2 {
    font-family: 'SubTitleFont', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    font-size: 1.2rem;
	font-style:italic;
    font-weight: 600;
    color: #012a60;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.article-card a:hover h2 {
    color: #3498db;
}

.article-card p {
    color: #3a4353;
    font-size: 1rem;
    line-height: 1.5;
}


/* ==========================================================================
   10. FOOTER
   ========================================================================== */

.footer {
    background: #2c3e50;
    color: #ecf0f1;
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
}

.footer p {
    font-size: 0.95rem;
}


/* ==========================================================================
   11. UTILITIES
   ========================================================================== */

.clearfix::after {
    content: "";
    display: table;
    clear: both;
}


/* ==========================================================================
   12. RESPONSIVE
   ========================================================================== */

/* Tablet e desktop (768px e oltre) */
@media (min-width: 768px) {
    .content-grid {
        grid-template-columns: 1fr 1fr;
    }

    .content-block {
        padding: 3rem;
    }

    .article-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile (fino a 767px) */
@media (max-width: 767px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: #fff;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .content-block {
        padding: 1.2rem;
    }
}

p.riferimenti {
    font-size: 0.95rem;
    line-height: 1.4;
}

p.destinatari {
	font-style:italic;
	padding-top:20px;
	}
	
