/* Hero Section - Projetos Hero Styles */
.detalhes-de-projeto-hero-section {
    width: 100%;
    min-height: 946px;
    height: 100%;
    top: 0;
    left: 0;
    padding-top: 70px;
    display: flex;
    align-items: center;
}

.detalhes-de-projeto-hero-section .detalhes-de-projeto-hero-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    padding-left: 354px;
    padding-right: 20px;
    align-self: center;
}

.detalhes-de-projeto-hero-section .detalhes-de-projeto-hero-content .detalhes-de-projeto-hero-title {
    font-family: Londrina Solid;
    font-weight: 300;
    font-style: Light;
    font-size: 28px;
    leading-trim: NONE;
    line-height: 120%;
    letter-spacing: 0%;
    text-transform: uppercase;
    color: #52636C;
}

.detalhes-de-projeto-hero-section .detalhes-de-projeto-hero-content .detalhes-de-projeto-subtitle {
    font-family: Londrina Solid;
    font-weight: 400;
    font-style: Regular;
    font-size: 66px;
    leading-trim: NONE;
    line-height: 90%;
    letter-spacing: 2%;
    text-transform: uppercase;
    background: linear-gradient(111.33deg, #F04247 11.06%, #782B90 73.94%);
    max-width: 515px;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
    margin-top: 36px;
}

.detalhes-de-projeto-hero-section .detalhes-de-projeto-hero-content .detalhes-de-projeto-hero-text {
    font-family: Londrina Solid;
    font-weight: 300;
    font-style: Light;
    font-size: 32px;
    leading-trim: NONE;
    line-height: 120%;
    letter-spacing: 1%;
    text-transform: uppercase;
    color: #52636C;
    max-width: 499px;
    margin-top: 36px;
}

.detalhes-de-projeto-hero-image-container {
    width: 50vw;
    max-width: 858px;
    height: 946px;
    position: absolute;
    top: 0;
    right: 0;
    padding-right: 16px;
    z-index: 1;
}

.detalhes-de-projeto-hero-image-container::after{
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to top, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
    z-index: 2;
}

@media (min-width: 1632px) {
    .detalhes-de-projeto-hero-image-container {
        width: 858px;
    }
}

@media (max-width: 1400px) {
    .detalhes-de-projeto-hero-image-container {
        width: 45vw;
        height: 800px;
    }
}

@media (max-width: 1200px) {
    .detalhes-de-projeto-hero-image-container {
        width: 40vw;
        height: 700px;
    }
    
    .detalhes-de-projeto-hero-grid {
        grid-gap: 16px;
    }
}

@media (max-width: 1705px) and (min-width: 1366px) {
    .detalhes-de-projeto-hero-image-container {
        width: 45vw;
        max-width: 650px;
    }
    
    .detalhes-de-projeto-hero-section .detalhes-de-projeto-hero-content {
        padding-left: min(280px, 6vw);
        padding-right: 50px;
    }
}

@media (max-width: 1365px) {
    .detalhes-de-projeto-hero-section .detalhes-de-projeto-hero-content {
        padding-left: min(354px, 8vw);
    }
}

@media (max-width: 1200px) {
    .detalhes-de-projeto-hero-section .detalhes-de-projeto-hero-content {
        padding-left: 40px;
    }
    
    .detalhes-de-projeto-hero-section .detalhes-de-projeto-hero-content .detalhes-de-projeto-subtitle {
        font-size: 72px;
    }
}

@media (max-width: 1085px) {
    .detalhes-de-projeto-hero-image-container {
        display: none;
    }
    
    .detalhes-de-projeto-hero-section .detalhes-de-projeto-hero-content {
        padding-left: 60px;
    }
    
    .detalhes-de-projeto-hero-section .detalhes-de-projeto-hero-content .detalhes-de-projeto-subtitle {
        font-size: 64px;
    }
}

.detalhes-de-projeto-hero-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(5, 1fr);
    grid-gap: 21px;
    width: 100%;
    height: 100%;
}

.detalhes-de-projeto-hero-grid .detalhes-de-projeto-div2 { 
    grid-area: 1 / 1 / 2 / 2; 
    border-bottom-left-radius: 24px;
    border-bottom-right-radius: 24px;
    background: #007DC51A;
}

.detalhes-de-projeto-hero-grid .detalhes-de-projeto-div3 { 
    grid-area: 2 / 1 / 5 / 2; 
    border-radius: 24px;
    background: url(../../assets/images/home/hero-grid-image.png) no-repeat center center;
    background-size: cover;
    position: relative;
}

.detalhes-de-projeto-hero-grid .detalhes-de-projeto-div4 { 
    grid-area: 5 / 1 / 6 / 2; 
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    background: #41AD4933;
}

.detalhes-de-projeto-hero-grid .detalhes-de-projeto-div5 { 
    grid-area: 1 / 2 / 3 / 3;
    border-bottom-left-radius: 24px;
    border-bottom-right-radius: 24px;
    background: linear-gradient(180deg, #F04544 0%, #EE1874 100%);
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.detalhes-de-projeto-hero-grid .detalhes-de-projeto-div5 .detalhes-de-projeto-div5-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url(../../assets/images/home/hero-gradiente-div2.png) no-repeat center center;
    background-size: cover;
}

.detalhes-de-projeto-hero-grid .detalhes-de-projeto-div6 { 
    grid-area: 3 / 2 / 6 / 3;
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    background: #F8F4DF;
    position: relative;
    overflow: hidden;
}

.detalhes-de-projeto-hero-grid .detalhes-de-projeto-div6 .detalhes-de-projeto-div6-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url(../../assets/images/home/hero-grid-div-6.png) no-repeat center center;
    background-size: cover;
}

/* Project Section Styles (for carousel)
.project-section {
    width: 100%;
    background-color: #F8F4DF;
    margin-top: 133px;
    padding: 64px 0;
}

.project-section-container {
    max-width: 1216px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

.project-section-container-header {
    margin-bottom: 64px;
}

.project-title {
    font-family: Londrina Solid;
    font-weight: 300;
    font-style: Light;
    font-size: 28px;
    line-height: 120%;
    letter-spacing: 0%;
    text-transform: uppercase;
    background: linear-gradient(111.33deg, #F04247 11.06%, #782B90 73.94%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
}

.project-subtitle {
    font-family: Londrina Solid;
    font-weight: 400;
    font-style: Regular;
    font-size: 64px;
    line-height: 100%;
    letter-spacing: 0%;
    text-transform: uppercase;
    color: #071F2C;
    margin-top: 16px;
    max-width: 500px;
}

.project-carousel {
    margin-top: 64px;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

.project-carousel .project-item {
    padding: 30px 20px;
    outline: none;
    height: auto;
    margin: 0 15px;
    background-color: #FF7887;
    border-radius: 24px;
}

.project-carousel .project-image {
    width: 178px;
    height: 154px;
    object-fit: cover;
    border-radius: 24px;
    margin-bottom: 24px;
}

.project-carousel .project-name {
    font-family: Londrina Solid;
    font-weight: 400;
    font-style: Regular;
    font-size: 32px;
    line-height: 120%;
    letter-spacing: 0%;
    text-transform: uppercase;
    color: #fff;
    margin: 0;
    margin-bottom: 24px;
}

.project-carousel .project-description {
    font-family: Londrina Solid;
    font-weight: 300;
    font-style: Light;
    font-size: 20px;
    line-height: 120%;
    letter-spacing: 1%;
    text-transform: uppercase;
    color: #fff;
    max-width: 193px;
}

.project-carousel .bottom-content {
    margin-top: 50px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.project-carousel .program-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    text-decoration: none;
}
 */

/* Project Info Box */
.detalhes-project-info {
    margin-top: 36px;
}

.project-info-box {
    background-color: #fff;
    border: 1.65px solid #52636C4D;
    border-radius: 13px;
    padding: 26px;
    max-width: 585px;
}

.project-info-institution {
    font-family: Londrina Solid;
    font-weight: 300;
    font-style: Regular;
    font-size: 26px;
    line-height: 120%;
    letter-spacing: 0%;
    text-transform: uppercase;
    color: #071F2C;
    margin: 0 0 8px 0;
}

.project-info-location {
    font-family: Londrina Solid;
    font-weight: 300;
    font-style: Light;
    font-size: 23px;
    line-height: 120%;
    letter-spacing: 0%;
    text-transform: uppercase;
    color: #52636C;
    margin: 0;
}

.project-info-period,
.project-info-coordinator,
.project-info-status {
    font-family: Inter;
    font-weight: 400;
    font-size: 16px;
    line-height: 140%;
    color: #52636C;
    margin: 8px 0 0 0;
}

.project-info-coordinator strong,
.project-info-status strong {
    color: #071F2C;
}

/* Related Projects Meta */
.project-meta {
    margin-bottom: 12px;
}

.project-institution-small {
    font-family: Londrina Solid;
    font-weight: 400;
    font-size: 12px;
    line-height: 120%;
    text-transform: uppercase;
    color: #F04247;
    margin: 0 0 4px 0;
}

.project-location-small {
    font-family: Londrina Solid;
    font-weight: 300;
    font-size: 11px;
    line-height: 120%;
    text-transform: uppercase;
    color: #52636C;
    margin: 0;
}

/* Project Details Section */
.projeto-details-section {
    width: 100%;
    padding: 0 20px;
}

@media (max-width: 600px) {
    .projeto-details-section {
        margin-top:50px;
    }
}

.projeto-details-container {
    max-width: 1216px;
    width: 100%;
    margin: 0 auto;
}

.projeto-details-content {
    width: 100%;
    margin-top: 30px;
}

.projeto-details-content h2 {
    font-family: Londrina Solid;
    font-weight: 300;
    font-style: Light;
    font-size: 28px;
    line-height: 120%;
    letter-spacing: 0%;
    text-transform: uppercase;
    background: linear-gradient(156.33deg, #F04247 6.06%, #782B90 14.94%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
}

.projeto-details-content h1, .projeto-details-title {
    font-family: Londrina Solid;
    font-weight: 400;
    font-style: Regular;
    font-size: 64px;
    line-height: 100%;
    letter-spacing: 0%;
    text-transform: uppercase;
    color: #071F2C;
    margin: 16px 0;
}

@media (max-width: 1050px){
    .projeto-details-content h1, .projeto-details-title {
        font-size: 40px;
    }
}

@media (max-width: 450px){
    .projeto-details-content h1, .projeto-details-title {
        font-size: 32px;
    }
}

.pprojeto-details-content h3, .projeto-details-subtitle {
    font-family: Londrina Solid;
    font-weight: 300;
    font-style: Light;
    font-size: 32px;
    line-height: 120%;
    letter-spacing: 1%;
    text-transform: uppercase;
    color: #52636C;
    margin: 0 0 32px 0;
}

.projeto-details-text {
    margin-bottom: 64px;
}

.projeto-details-text p {
    font-family: Inter;
    font-weight: 300;
    font-style: Regular;
    font-size: 20px;
    line-height: 160%;
    letter-spacing: 0%;
    color: #52636C;
    margin-bottom: 24px;
}

/* Gallery Section */
.projeto-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 24px;
    margin-bottom: 120px;
}

.gallery-item {
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 4/3;
    position: relative;
    cursor: pointer;
}

.gallery-item img {
    object-fit: cover;
    transition: transform 0.3s ease;
    width: 396px;
    height: 391px;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Image Modal Styles */
.image-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    margin: auto;
    padding: 20px;
    width: 90%;
    max-width: 1200px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-image {
    max-width: calc(100% - 160px);
    max-height: 95vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.modal-image.changing {
    opacity: 0.3;
    transform: scale(0.95);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    cursor: pointer;
    z-index: 10000;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.3);
}

.modal-close:hover {
    color: #F25D2B;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-close svg {
    width: 24px;
    height: 24px;
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 40px;
    pointer-events: none;
}

.modal-prev,
.modal-next {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    font-size: 24px;
    font-weight: bold;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    pointer-events: auto;
}

.modal-prev img,
.modal-next img {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
    transition: transform 0.3s ease;
}

.modal-prev img {
    transform: rotate(180deg);
}

.modal-next img {
    transform: rotate(360deg);
}

.modal-prev:hover,
.modal-next:hover {
    background: rgba(242, 93, 43, 0.8);
    border-color: #F25D2B;
    transform: scale(1.1);
}

.modal-prev:disabled,
.modal-next:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.modal-prev:disabled:hover,
.modal-next:disabled:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    transform: none;
}

/* Modal Responsive Styles */
@media (max-width: 768px) {
    .modal-image {
        max-width: calc(100% - 120px);
        max-height: 90vh;
    }
    
    .modal-nav {
        padding: 0 20px;
    }
    
    .modal-prev,
    .modal-next {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .modal-prev img,
    .modal-next img {
        width: 16px;
        height: 16px;
    }
    
    .modal-close {
        top: 15px;
        right: 20px;
        width: 32px;
        height: 32px;
    }
    
    .modal-close svg {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .modal-image {
        max-width: calc(100% - 100px);
        max-height: 85vh;
    }
    
    .modal-nav {
        padding: 0 15px;
    }
    
    .modal-prev,
    .modal-next {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    .modal-prev img,
    .modal-next img {
        width: 14px;
        height: 14px;
    }
    
    .modal-content {
        padding: 10px;
    }
}

@media (max-width: 600px) {
    .gallery-item img {
        max-width: 100%;
        width: 100%;
        border-radius: 8px;
        background-color: red;
    }
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Materials Section */
.materials-section {
    width: 100%;
    background-color: #fff;
    padding: 80px 20px;
}

.materials-container {
    max-width: 1216px;
    width: 100%;
    margin: 0 auto;
}

.materials-label {
    font-family: Londrina Solid;
    font-weight: 300;
    font-style: Light;
    font-size: 28px;
    line-height: 120%;
    letter-spacing: 0%;
    text-transform: uppercase;
    background: linear-gradient(144.33deg, #F04247 8.06%, #782B90 18.94%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
}

.materials-title {
    font-family: Londrina Solid;
    font-weight: 400;
    font-style: Regular;
    font-size: 64px;
    line-height: 100%;
    letter-spacing: 0%;
    text-transform: uppercase;
    color: #071F2C;
    margin: 16px 0 64px 0;
}

.materials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 32px;
}

.material-item {
    background-color: #FF7887;
    border-radius: 24px;
    padding: 30px 20px;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 241px;
    transition: transform 0.3s ease;
}

.material-item:hover {
    transform: translateY(-5px);
}

.material-icon {
    align-self: flex-start;
}

.material-title {
    font-family: Londrina Solid;
    font-weight: 400;
    font-style: Regular;
    font-size: 32px;
    line-height: 120%;
    letter-spacing: 0%;
    text-transform: uppercase;
    color: #071F2C;
}

.material-download {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.download-text {
    font-family: Londrina Solid;
    font-weight: 300;
    font-style: Regular;
    font-size: 24px;
    line-height: 120%;
    letter-spacing: 0%;
    text-transform: uppercase;
    color: #fff;
}

.material-download:hover {
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .projeto-details-title {
        font-size: 48px;
    }
    
    .materials-title {
        font-size: 48px;
    }
    
    .projeto-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .materials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .detalhes-de-projeto-hero-section {
        padding-top: 41px;
        min-height: auto;
    }
    
    .detalhes-de-projeto-hero-section .detalhes-de-projeto-hero-content {
        flex-direction: column;
        padding-left: 20px;
        padding-right: 20px;
        text-align: left;
        gap: 0px;
    }
    
    .detalhes-de-projeto-hero-section .detalhes-de-projeto-hero-content .detalhes-de-projeto-hero-title {
        font-size: 24px;
    }
    
    .detalhes-de-projeto-hero-section .detalhes-de-projeto-hero-content .detalhes-de-projeto-subtitle {
        font-size: 48px;
        max-width: none;
        margin-top: 20px;
    }
    
    .detalhes-de-projeto-hero-section .detalhes-de-projeto-hero-content .detalhes-de-projeto-hero-text {
        font-size: 20px;
        max-width: 100%;
    }
    
    .project-info-box {
        max-width: none;
        margin: 24px auto 0;
    }
    
    .project-section-container {
        padding: 0 16px;
    }
    
    .projeto-details-section {
        padding: 0 16px;
    }
    
    .materials-section {
        padding: 80px 16px;
    }
    
    .projeto-details-title {
        font-size: 36px;
    }
    
    .materials-title {
        font-size: 36px;
    }
    
    .projeto-gallery {
        grid-template-columns: 1fr;
        grid-gap: 16px;
    }
    
    .materials-grid {
        grid-template-columns: 1fr;
        grid-gap: 24px;
    }
}

@media (max-width: 480px) {
    .detalhes-de-projeto-hero-section {
        padding-top: 90px;
    }
    
    .detalhes-de-projeto-hero-section .detalhes-de-projeto-hero-content {
        gap: 32px;
    }
    
    .detalhes-de-projeto-hero-section .detalhes-de-projeto-hero-content .detalhes-de-projeto-hero-title {
        font-size: 24px;
    }
    
    .detalhes-de-projeto-hero-section .detalhes-de-projeto-hero-content .detalhes-de-projeto-subtitle {
        font-size: 40px;
    }
    
    .detalhes-de-projeto-hero-section .detalhes-de-projeto-hero-content .detalhes-de-projeto-hero-text {
        font-size: 20px;
    }
    
    .project-info-institution {
        font-size: 20px;
    }
    
    .project-info-location {
        font-size: 18px;
    }
    
    .project-section-container {
        padding: 0 16px;
    }
    
    .projeto-details-section {
        padding: 0 16px;
    }
    
    .materials-section {
        padding: 80px 16px;
    }
    
    .projeto-details-label,
    .materials-label {
        font-size: 20px;
    }
    
    .projeto-details-title {
        font-size: 28px;
    }
    
    .materials-title {
        font-size: 28px;
    }
    
    .projeto-details-subtitle {
        font-size: 24px;
    }
}

/* Responsive padding for containers with max-width 1216px */
@media (max-width: 1216px) {
    .project-section-container,
    .projeto-details-container,
    .materials-container {
        padding-left: 16px;
        padding-right: 16px;
    }
}