@import url('base.css');

/* CONTENITORE SEZIONI */
.link-sections {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 60px;
    padding: 60px 20px;
    background-color: var(--colore-sfondo);
}

/* CARD ORIZZONTALE */
.link-card-horizontal {
    width: 90%;
    max-width: 1000px;
    background-color: var(--colore-secondario);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 30px 20px;
    overflow: hidden;
}

/* TITOLO CARD */
.link-card-horizontal h2 {
    font-size: 1.8rem;
    color: var(--colore-primario);
    font-variant: small-caps;
    margin-bottom: 20px;
    text-align: center;
}

/* CONTENUTO CARD: TESTO + IMMAGINE */
.card-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

/* COLONNA SINISTRA: TESTO */
.card-text {
    width: 55%;
}

.card-text p {
    font-size: 1.1rem;
    color: var(--text);
    margin-bottom: 20px;
}

/* COLONNA DESTRA: IMMAGINE */
.card-image {
    width: 40%;
    display: flex;
    justify-content: center;
}

.card-image img {
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: opacity 0.3s ease;
}

.card-image img:hover {
    opacity: 0.9;
}

/* BOTTONE */
.cta-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--colore-accento);
    color: var(--colore-sfondo);
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-variant: small-caps;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: var(--colore-primario);
}


/* RESPONSIVE: DISPOSIZIONE VERTICALE */
@media (max-width: 768px) {
    .card-content {
        flex-direction: column;
        text-align: center;
    }

    .card-text,
    .card-image {
        width: 100%;
    }

    .card-image {
        margin-top: 20px;
    }

    .link-card-horizontal h2 {
        font-size: 1.5rem;
    }
}
