/* Hero Feature Container - Safari Compatible */
.hero-feature-container {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    max-width: 1142px;
    margin: auto;
    margin-top: 60px;
    margin-bottom: 60px;
    padding: 0 20px;
    width: 100%;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

/* Espaçamento entre itens - Safari compatível */
.hero-feature-container > * {
    margin-bottom: 40px;
}

.hero-feature-container > *:last-child {
    margin-bottom: 0;
}

/* Desktop Layout - Flexbox para Safari */
@media (min-width: 1024px) {
    .hero-feature-container {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-orient: horizontal;
        -webkit-box-direction: normal;
        -ms-flex-direction: row;
        flex-direction: row;
        -webkit-box-align: stretch;
        -ms-flex-align: stretch;
        align-items: stretch;
    }
    
    .hero-feature-container > * {
        margin-bottom: 0;
        margin-right: 40px;
    }
    
    .hero-feature-container > *:last-child {
        margin-right: 0;
    }
    
    .hero-feature-main {
        -webkit-box-flex: 0;
        -ms-flex: 0 0 42%;
        flex: 0 0 42%;
        max-width: 42%;
    }
    
    .hero-feature-list {
        -webkit-box-flex: 1;
        -ms-flex: 1;
        flex: 1;
        max-width: 58%;
    }
}

/* LADO ESQUERDO - Item Principal */
.hero-feature-main {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    width: 100%;
}

.hero-main-card {
    height: 100%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    min-height: 400px;
}

.hero-main-link {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    height: 100%;
    min-height: 400px;
    text-decoration: none;
    color: inherit;
}

.hero-main-media {
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    margin-bottom: 1rem;
    overflow: hidden;
    border-radius: 20px;
    -webkit-border-radius: 20px;
    -moz-border-radius: 20px;
    position: relative;
    min-height: 250px;
}

.hero-main-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
    -o-object-position: top;
    object-position: top;
    border-radius: 20px;
    -webkit-border-radius: 20px;
    -moz-border-radius: 20px;
    -webkit-transition: -webkit-transform 0.3s ease;
    transition: -webkit-transform 0.3s ease;
    -o-transition: transform 0.3s ease;
    transition: transform 0.3s ease;
    transition: transform 0.3s ease, -webkit-transform 0.3s ease;
    display: block;
}

/* Fallback para Safari sem object-fit */
@supports not (object-fit: cover) {
    .hero-main-image {
        background-size: cover;
        background-position: top center;
        background-repeat: no-repeat;
        font-family: 'object-fit: cover;';
    }
}

.hero-main-card:hover .hero-main-image,
.hero-main-link:hover .hero-main-image {
    -webkit-transform: scale(1.2);
    -ms-transform: scale(1.2);
    transform: scale(1.2);
}

.hero-main-content {
    -webkit-box-flex: 0;
    -ms-flex: 0 0 auto;
    flex: 0 0 auto;
}

.hero-main-title {
    font-size: 1.75rem;
    color: #2D6A6E;
    margin-bottom: 1rem;
    line-height: 1.09;
    font-weight: 600;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.hero-main-description {
    font-size: 1rem;
    line-height: 1.6;
    color: #4B5563;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.hero-main-link:hover {
    text-decoration: underline;
    color: #2D6A6E;
}

.hero-main-link:hover .hero-main-title {
    color: #2D6A6E;
}

/* LADO DIREITO - Lista de Items */
.hero-feature-list {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: stretch;
    -ms-flex-align: stretch;
    align-items: stretch;
    width: 100%;
}

.hero-feature-list > * + * {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #E5E7EB;
}

.hero-list-item {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: row;
    -webkit-box-align: stretch;
    -ms-flex-align: stretch;
    align-items: stretch;
    overflow: hidden;
    border-radius: 20px;
    -webkit-border-radius: 20px;
    -moz-border-radius: 20px;
    position: relative;
    width: 100%;
}

.hero-list-link {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: row;
    -webkit-box-align: stretch;
    -ms-flex-align: stretch;
    align-items: stretch;
    text-decoration: none;
    color: inherit;
    width: 100%;
    overflow: hidden;
    border-radius: 20px;
    -webkit-border-radius: 20px;
    -moz-border-radius: 20px;
    -webkit-transition: -webkit-transform 0.2s ease;
    transition: -webkit-transform 0.2s ease;
    -o-transition: transform 0.2s ease;
    transition: transform 0.2s ease;
    transition: transform 0.2s ease, -webkit-transform 0.2s ease;
}

.hero-list-link:hover {
    -webkit-transform: translateY(-2px);
    -ms-transform: translateY(-2px);
    transform: translateY(-2px);
}

.hero-list-media {
    -webkit-box-flex: 0;
    -ms-flex: 0 0 auto;
    flex: 0 0 auto;
    width: 120px;
    min-width: 120px;
    max-width: 120px;
    margin-right: 15px;
    margin-bottom: 0;
    overflow: hidden;
    border-radius: 12px;
    -webkit-border-radius: 12px;
    -moz-border-radius: 12px;
    position: relative;
    -ms-flex-item-align: stretch;
    -webkit-align-self: stretch;
    -ms-flex-item-align: stretch;
    align-self: stretch;
    background: #f8f9fa;
    height: auto;
    min-height: 100%;
}

.hero-list-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
    -o-object-position: center;
    object-position: center;
    border-radius: 12px;
    -webkit-border-radius: 12px;
    -moz-border-radius: 12px;
    -webkit-transition: -webkit-transform 0.3s ease;
    transition: -webkit-transform 0.3s ease;
    -o-transition: transform 0.3s ease;
    transition: transform 0.3s ease;
    transition: transform 0.3s ease, -webkit-transform 0.3s ease;
    display: block;
}

/* Fallback para Safari sem object-fit */
@supports not (object-fit: cover) {
    .hero-list-image {
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        font-family: 'object-fit: cover;';
    }
}

.hero-list-item:hover .hero-list-image,
.hero-list-link:hover .hero-list-image {
    -webkit-transform: scale(1.2);
    -ms-transform: scale(1.2);
    transform: scale(1.2);
}

.hero-list-content {
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    min-width: 0;
    padding: 8px 0;
}

.hero-list-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #2D6A6E;
    margin: 0 0 5px 0;
    line-height: 1.2;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.hero-list-description {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #6B7280;
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-list-link:hover {
    text-decoration: underline;
    color: #2D6A6E;
}

.hero-list-link:hover .hero-list-title {
    color: #2D6A6E;
    text-decoration: underline;
}

/* Remove divisores antigos */
.hero-list-item:not(:last-child)::after {
    display: none;
}

.hero-list-item {
    margin-bottom: 0;
}

.hero-list-item:last-child {
    margin-bottom: 0;
}

/* Ajustes para mobile - Safari */
@media (max-width: 768px) {
    .hero-feature-container {
        margin-top: 30px;
        margin-bottom: 30px;
        padding: 0 15px;
    }
    
    .hero-feature-container > * {
        margin-bottom: 30px;
    }
    
    .hero-main-card,
    .hero-main-link {
        min-height: 250px;
    }
    
    .hero-main-media {
        min-height: 180px;
    }
    
    .hero-main-title {
        font-size: 1.4rem;
    }
    
    .hero-feature-list > * + * {
        margin-top: 20px;
        padding-top: 20px;
    }
    
    .hero-list-item,
    .hero-list-link {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        -webkit-box-align: stretch;
        -ms-flex-align: stretch;
        align-items: stretch;
    }
    
    .hero-list-media {
        width: 100%;
        min-width: 100%;
        max-width: 100%;
        height: 160px;
        min-height: 160px;
        max-height: 160px;
        margin-right: 0;
        margin-bottom: 12px;
    }
    
    .hero-list-content {
        padding: 0;
        -webkit-box-pack: start;
        -ms-flex-pack: start;
        justify-content: flex-start;
    }
    
    .hero-list-title {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-list-description {
        font-size: 0.95rem;
        -webkit-line-clamp: none;
        overflow: visible;
        display: block;
    }
}

/* Para telas muito pequenas */
@media (max-width: 480px) {
    .hero-feature-container {
        padding: 0 10px;
    }
    
    .hero-feature-container > * {
        margin-bottom: 25px;
    }
    
    .hero-main-title {
        font-size: 1.25rem;
    }
    
    .hero-list-media {
        height: 140px;
        min-height: 140px;
        max-height: 140px;
    }
}