/* RESET GLOBALE */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    font-family: 'Poppins', sans-serif;
    background: #1f1c60;
    color: #333;
    width: 100%;
    overflow-x: hidden;
}

/* HEADER */
header {
    background: #1f1c60;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    max-width: 150px;
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #FF0000;
}

/* HERO */
.hero {
    text-align: center;
    background: #000;
    color: white;
    padding: 40px 20px;
}

.hero h1 {
    font-size: 32px;
}

.hero p {
    font-size: 18px;
    margin-top: 10px;
}

.hero h1 span {
    display: block;
}

/* Desktop titolo su più righe controllate */
@media (min-width:768px){
    .hero h1 .line1,
    .hero h1 .line2 {
        display:inline;
    }

    .hero h1 .line2::after{
        content:"\A";
        white-space:pre;
    }
}

/* MAIN */
main{
    display:flex;
    flex-direction:column;
    align-items:center;
    padding:20px;
    width:100%;
}

/* GRIGLIA BLOG */
.blog-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
    gap:30px;
    width:100%;
    max-width:1200px;
    margin:0 auto;
}

/* CARD ARTICOLI */
article{
    background:white !important;
    padding:20px;
    border-radius:10px;
    box-shadow:0 4px 8px rgba(0,0,0,0.2);
    transition:.3s;
    text-align:center;
    min-height:320px;

    display:flex;
    flex-direction:column;
    justify-content:space-between;
}

article:hover{
    transform:translateY(-5px);
}

article img{
    width:100%;
    height:auto;
    border-radius:10px;
    display:block;
}

/* PAGINA ARTICOLO */
.article-container{
    width:90%;
    max-width:800px;
    margin:20px auto;
    background:white;
    padding:20px;
    border-radius:10px;
    box-shadow:0 4px 8px rgba(0,0,0,0.2);
    line-height:1.6;
}

.article-img{
    width:100%;
    border-radius:10px;
    margin-bottom:20px;
}

.article-container p{
    margin-bottom:15px;
    text-align:justify;
}

.titolo{
    text-align:center;
    max-width:600px;
    margin:0 auto;
    line-height:1.2;
}

/* BOTTONE */
.back-btn{
    display:inline-block;
    background:#000;
    color:#FFD700;
    padding:10px 20px;
    text-decoration:none;
    font-weight:bold;
    border-radius:5px;
    transition:.3s;
}

.back-btn:hover{
    background:#FFD700;
    color:#000;
}

/* FOOTER */
footer{
    background:#000;
    color:white;
    text-align:center;
    padding:15px;
    margin-top:20px;
    width:100%;
}

.footer .logo img{
    max-width:100%;
    height:auto;
}

/* MOBILE */
@media (max-width:768px){

    nav ul li{
        margin-left:10px;
    }

    article{
        padding:15px;
    }

    .hero h1{
        font-size:26px;
    }

    .hero p{
        font-size:16px;
    }
}

/* BOX FACEBOOK */
.cta-facebook-container{
    max-width:500px;
    margin:30px auto;
    padding:15px;
    background:#f3f3f3;
    text-align:center;
    border-radius:8px;
    border:1px solid #ddd;
}

.cta-facebook-container p{
    font-size:16px;
    margin-bottom:10px;
    line-height:1.5;
}

.cta-facebook{
    display:inline-block;
    background:#1877F2;
    color:white;
    padding:10px 15px;
    font-size:14px;
    font-weight:bold;
    text-decoration:none;
    border-radius:5px;
    transition:.3s;
}

.cta-facebook:hover{
    background:#0e5aab;
}