/* ==================================================
   PROFESSIONI — SCHEDA ACCORDION
   Sistema modulare Scrittura
================================================== */

.sw-prof {
    padding: 25px 0 60px;
    animation: profFadeIn 0.35s ease;
}

/* animazione apertura scheda */
@keyframes profFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================= HERO ================= */

/* COMBINATO: Forza l'annullamento della griglia quando entrambe le classi sono presenti */
.sw-prof-hero.sw-prof-textonly {
    display: block !important;
    width: 100% !important;
    padding: 25px;
}

/* Forza la titlebox e gli elementi interni a occupare tutto lo spazio disponibile */
.sw-prof-hero.sw-prof-textonly .sw-prof-titlebox {
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
}

/* Applica il colore giallo/dorato al titolo */
.sw-prof-hero.sw-prof-textonly .sw-prof-titlebox h2 {
    color: var(--accent) !important;
    width: 100%;
    margin-bottom: 12px;
}

/* Distribuisce il sottotitolo in modo fluido e naturale a tutta larghezza */
.sw-prof-hero.sw-prof-textonly .sw-prof-subtitle {
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
    line-height: 1.6;
    opacity: 0.9;
    text-align: left;
}
.sw-prof-hero {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 25px;

    align-items: center;

    padding: 20px;

    border-radius: 16px;

    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);

    margin-bottom: 35px;
}

.sw-prof-img img {
    width: 100%;
    height: 180px;
    object-fit: cover;

    border-radius: 12px;
}

.sw-prof-titlebox h2 {
    font-family: var(--font1);
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.sw-prof-subtitle {
    opacity: 0.8;
    line-height: 1.6;
}



/* ================= BLOCCHI ================= */

.sw-prof-block {
    margin-bottom: 35px;

    padding: 22px;

    border-radius: 14px;

    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);

    transition: 0.25s ease;
}

.sw-prof-block h3 {
    margin-bottom: 14px;
    color: var(--accent);
    font-size: 1.2rem;
}

.sw-prof-block p {
    line-height: 1.8;
    opacity: 0.9;
    margin-bottom: 12px;
}

/* ================= TIMELINE ================= */

.sw-timeline {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.sw-timeline-item {
    padding-left: 14px;
    border-left: 2px solid rgba(200,169,110,0.35);
}

.sw-timeline-item .year {
    font-weight: bold;
    color: var(--accent);
    display: block;
    margin-bottom: 6px;
}

/* ================= TAGS ================= */

.sw-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.sw-tags span {
    padding: 6px 12px;

    border-radius: 20px;

    font-size: 0.85rem;

    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);

    transition: 0.2s ease;
}

.sw-tags span:hover {
    border-color: var(--accent);
    background: rgba(200,169,110,0.1);
}

/* ================= MASTER ================= */

.sw-prof-master {
    margin-bottom: 35px;
}

.sw-master-box {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 25px;

    padding: 22px;

    border-radius: 16px;

    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
}

.sw-master-img img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 12px;
}

.sw-master-content h4 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.sw-master-content blockquote {
    font-style: italic;
    opacity: 0.85;

    border-left: 2px solid var(--accent);
    padding-left: 12px;

    margin: 10px 0 15px;
}

.sw-master-content p {
    line-height: 1.8;
    opacity: 0.9;
    margin-bottom: 10px;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 768px) {

    .sw-prof-hero {
        grid-template-columns: 1fr;
    }

    .sw-master-box {
        grid-template-columns: 1fr;
    }

    .sw-prof-titlebox h2 {
        font-size: 1.8rem;
    }
}