/* === PARAGRAFO INTRODUTTIVO === */
.intro-text {
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 30px;
    padding: 20px;
    border-left: 5px solid #1e5289;
    border-right: 5px solid #1e5289;
    background-color: #f8f9fa;
    text-align: center;
}

/* === CONTAINER PDF === */
.pdf-container-wrapper {
    display: flex;
    gap: 20px;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.pdf-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.pdf-title {
    margin-top: 0;
    margin-bottom: 20px;
    color: #1e5289;
    text-align: center;
    font-weight: bold;
    font-size: 1.5rem;
}

.pdf-viewer {
    width: 100%;
    height: 85vh;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    background: white;
    position: relative;
}

.pdf-viewer iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Loading indicator */
.pdf-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #1e5289;
    font-size: 1.2rem;
    font-weight: 600;
    z-index: 1;
}

/* === TABLET (768px - 991px) === */
@media (max-width: 991px) {
    .pdf-container-wrapper {
        gap: 15px;
    }
    
    .pdf-viewer {
        height: 75vh;
    }
}

/* === TABLET PICCOLO/PHABLET (577px - 767px) === */
@media (max-width: 767px) {
    .pdf-container-wrapper {
        flex-direction: column;
        gap: 30px;
    }
    
    .pdf-viewer {
        height: 70vh;
        min-height: 500px;
    }
    
    .pdf-title {
        font-size: 1.3rem;
        margin-bottom: 15px;
    }
}

/* === MOBILE (< 576px) === */
@media (max-width: 576px) {
    .intro-text {
        font-size: 1rem;
        padding: 15px;
        margin-bottom: 20px;
        line-height: 1.6;
    }
    
    .pdf-container-wrapper {
        gap: 25px;
    }
    
    .pdf-viewer {
        height: 60vh;
        min-height: 450px;
        border-radius: 8px;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    }
    
    .pdf-title {
        font-size: 1.2rem;
        margin-bottom: 12px;
    }
    
    .pdf-loading {
        font-size: 1rem;
    }
}

/* === MOBILE PICCOLO (< 400px) === */
@media (max-width: 400px) {
    .intro-text {
        font-size: 0.95rem;
        padding: 12px;
        border-left-width: 3px;
        border-right-width: 3px;
    }
    
    .pdf-viewer {
        height: 55vh;
        min-height: 400px;
    }
    
    .pdf-title {
        font-size: 1.1rem;
    }
}

/* === LANDSCAPE MODE (mobile ruotato) === */
@media (max-height: 500px) and (orientation: landscape) {
    .pdf-viewer {
        height: 80vh;
        min-height: 350px;
    }
    
    .pdf-container-wrapper {
        flex-direction: row;
    }
}

/* === DEVICE MOLTO PICCOLI (Galaxy Fold, etc) === */
@media (max-width: 320px) {
    .pdf-viewer {
        height: 50vh;
        min-height: 350px;
        border-radius: 6px;
    }
    
    .pdf-title {
        font-size: 1rem;
        margin-bottom: 10px;
    }
}
