/* Importazione del font clean sans-serif */
@import url('https://googleapis.com');

/*pulsante submit*/
/* Pulsante 3D circolare fisso in alto a destra con posizionamento richiesto */
        .fixed-submit-btn {
            position: fixed;
            top: 20px;
            right: 20px;
            z-index: 9999;
            width: clamp(90px, 13vw, 130px);
            height: clamp(90px, 13vw, 130px);
            background: linear-gradient(145deg, #72c5f5, #52abdf);
            background-color: #62b8e9;
            color: #ffffff;
            border-radius: 50%;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            text-align: center;   /* Testo allineato al centro */
            padding: 0;
            border: none;
            cursor: pointer;
            box-shadow: 0 12px 30px rgba(82, 171, 233, 0.4),
                        inset 0 4px 8px rgba(255, 255, 255, 0.45),
                        inset 0 -4px 8px rgba(0, 0, 0, 0.15);
            transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
            text-decoration: none;
            user-select: none;
        }

        .fixed-submit-btn:hover {
            transform: scale(1.08) translateY(-3px);
            box-shadow: 0 18px 38px rgba(82, 171, 233, 0.55),
                        inset 0 5px 10px rgba(255, 255, 255, 0.6),
                        inset 0 -5px 10px rgba(0, 0, 0, 0.2);
        }

        .fixed-submit-btn:active {
            transform: scale(0.97) translateY(0);
        }

        .btn-row-1 {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 3px;
            font-weight: 700;
            font-size: clamp(0.7rem, 1.6vw, 1.15rem);
            line-height: 1.15;
            letter-spacing: -0.02em;
            text-align: center;

        }

        .btn-row-2, .btn-row-3 {
            font-weight: 700;
            font-size: clamp(0.7rem, 1.6vw, 1.15rem);
            line-height: 1.15;
            letter-spacing: -0.02em;
            text-align: center;
        }

        @media (max-width: 480px) {
            .fixed-submit-btn {
                top: 15px;
                right: 15px;
            }
	}
/* Codice CSS per il pulsante fisso in alto a destra */
.floating-submit-btn {
    position: fixed;
    top: 20px;           /* Distanza dal bordo superiore */
    right: 20px;          /* Distanza dal bordo destro */
    z-index: 9999;        /* Assicura che rimanga sopra tutti gli altri elementi della pagina */
    width: clamp(85px, 12vw, 125px);   /* Dimensione fluida responsive */
    height: clamp(85px, 12vw, 125px);  /* Mantiene il pulsante perfettamente rotondo */
    border-radius: 50%;
    display: block;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); /* Ombra per staccarlo dallo sfondo */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.floating-submit-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

/* Effetto interattivo al passaggio del mouse / tap */
.floating-submit-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Margini leggermente ridotti per schermi mobile molto stretti */
@media (max-width: 480px) {
    .floating-submit-btn {
        top: 15px;
        right: 15px;
    }
}

/* end pulsante submit */



/* ==========================================
 *   STILI GLOBALI E CONDIVISI
 *   ========================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: #d9f5f9;
    color: #2c3e50;
    padding: 40px 20px;
    display: flex;
    justify-content: center;
}

.container {
    max-width: 1200px;
    width: 100%;
}

/* categories menu button */
:root {
    --colore-principale: #62b8e9;    /* Sostituisci con il colore dei tuoi pulsanti */
    --colore-testo: #ffffff;         /* Colore del testo dentro il pulsante  */
    --colore-hover: #2a7ca6;         /* Colore di quando passi sopra il mouse */
}

.nav-menu-container-custom {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    padding: 20px;
    flex-wrap: wrap;
}

.btn-menu-site-color {
    display: inline-block;
    text-decoration: none;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    color: var(--colore-testo);
    background-color: var(--colore-principale);
    border: none;
    border-radius: 8px;
    transition: background-color 0.2s ease, transform 0.2s ease;
    cursor: pointer;
}

.btn-menu-site-color:hover {
    background-color: var(--colore-hover);
    transform: translateY(-1px);
}
/* end categories menu button */


/* Navbar/Header comune ad entrambe le pagine */
.top-navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 50px;
    background: transparent;
}

/* Struttura del Logo con Canale Alfa */
.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: transparent;
    width: fit-content;
    flex-shrink: 0;
}

.logo-icon {
    position: relative;
    width: 140px;
    height: 120px;
    margin-bottom: 12px;
}

.circle {
    position: absolute;
    border-radius: 50%;
}

.circle-white {
    width: 65px;
    height: 65px;
    background-color: #ffffff;
    top: 20px;
    left: 10px;
    z-index: 3;
    box-shadow: 0 4px 10px rgba(0,0,0,0.04);
}

.circle-lightblue {
    width: 75px;
    height: 75px;
    background-color: #2a7ca6;
    top: 0px;
    right: 15px;
    z-index: 1;
}

.circle-blue {
    width: 45px;
    height: 45px;
    background-color: #62b8e9;
    bottom: 5px;
    left: 52%;
    transform: translateX(-50%);
    z-index: 2;
}

.logo-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.text-top {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2a7ca6;
    line-height: 1.1;
    letter-spacing: -0.3px;
}

.text-bottom {
    font-size: 1.3rem;
    font-weight: 500;
    color: #62b8e9;
    margin-top: 2px;
    letter-spacing: -0.2px;
}

/* Spazio Banner Google AdSense */
.google-ad-block {
    flex-grow: 1;
    max-width: 728px;
    min-height: 90px;
    margin-left: 40px;
    background-color: rgba(98, 184, 233, 0.05);
    border: 1px dashed rgba(98, 184, 233, 0.5);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.ad-placeholder-text {
    font-size: 0.8rem;
    color: #62b8e9;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Elemento Pulsante Comune */
.btn-read-more, .btn-back {
    text-align: center;
    text-decoration: none;
    transition: all 0.2s ease;
    font-weight: 500;
}

/* Responsive generale per l'header */
@media (max-width: 992px) {
    .top-navbar {
        flex-direction: column;
        gap: 30px;
    }
    .google-ad-block {
        margin-left: 0;
        width: 100%;
        max-width: 468px;
        min-height: 60px;
    }
}

@media (max-width: 600px) {
    .google-ad-block {
        max-width: 320px;
        min-height: 50px;
    }
    body {
        padding: 30px 16px;
    }
}

/* ==========================================
 *   PAGINA GENERALE (index.html) - Griglia Storie
 *   ========================================== */
.stories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.story-card {
    background-color: #ffffff;
    border: 1px solid rgba(98, 184, 233, 0.3);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.story-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(42, 124, 166, 0.1);
}

.story-image {
    width: 100%;
    height: 210px;
    object-fit: cover;
    background-color: #eef7f9;
}

.story-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.story-title {
    color: #2a7ca6;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: -0.2px;
}

.story-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #5a6578;
    margin-bottom: 24px;
    flex-grow: 1;
}

.btn-read-more {
    display: block;
    background-color: transparent;
    color: #62b8e9;
    border: 1.5px solid #62b8e9;
    padding: 11px 20px;
    border-radius: 6px;
    font-size: 0.9rem;
}

.btn-read-more:hover {
    background-color: #62b8e9;
    color: #ffffff;
}

@media (max-width: 992px) {
    .stories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (max-width: 600px) {
    .stories-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
 *   PAGINA DETTAGLIO (story-detail.html) - Articolo
 *   ========================================== */
.detail-container {
    max-width: 760px; /* Misura ottimale focalizzata sulla lettura del testo */
    margin: 0 auto;
}

.btn-back {
    display: inline-block;
    color: #62b8e9;
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.btn-back:hover {
    color: #2a7ca6;
}

.story-article {
    background-color: #ffffff;
    border: 1px solid rgba(98, 184, 233, 0.3);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.03);
}

.article-image {
    width: 100%;
    height: 380px;
    object-fit: cover;
}

.article-body {
    padding: 40px 50px;
}

.article-title {
    color: #2a7ca6;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.article-meta {
    font-size: 0.85rem;
    color: #8a94a6;
    margin-bottom: 32px;
}

.article-text {
    font-size: 1.05rem;
    line-height: 1.75;
    color: #3e4857;
}

.article-text p {
    margin-bottom: 24px;
}

@media (max-width: 600px) {
    .article-image {
        height: 240px;
    }
    .article-body {
        padding: 24px 20px;
    }
    .article-title {
        font-size: 1.7rem;
    }
}
