:root {
    /* Colors */
    --base-color: #002656;
    --body-color: #fff;
    --base-color-dark: #01243A;
    --text-first-color: rgb(0, 0, 0);
    --text-second-color: #414040;
    --link-color: #fff;
    --light-color: #e9e5db4b;
    --accent-color: #9D774B;
    --gradient-primary: linear-gradient(135deg, #002656 0%, #01243A 100%);
    --gradient-accent: linear-gradient(135deg, #9D774B 0%, #7a5d3a 100%);
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 12px 40px rgba(0, 0, 0, 0.25);
    
    /* Layout */
    --section-padding: 11.81rem;
    --header-height: 4.625rem;
    --border-radius: 12px;
    --border-radius-lg: 20px;
    
    /* Fonts */
    --font-family: 'DM Sans', sans-serif;
    --font-title: 'Poppins', sans-serif;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/*====== RESET STYLES ====== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    list-style-type: none;
}

img {
    width: 100%;
    height: auto;
    display: block;
    max-width: 100%;
}

img[loading="lazy"] {
    opacity: 0;
    transition: opacity var(--transition-normal);
}

img[loading="lazy"].loaded {
    opacity: 1;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 1rem;
    font-size: 100%;
    overflow-x: hidden;
}

body {
    font: 400 1rem var(--font-family);
    color: var(--text-first-color);
    background-color: var(--body-color);
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

main {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
}

/*====== GLOBAL CLASSES ====== */
.title {
    font-family: var(--font-title);
    font-size: 2.5rem;
    padding: 2rem 1rem;
    text-align: center;
    color: var(--base-color-dark);
    font-weight: 700;
    letter-spacing: -0.5px;
    position: relative;
    margin-bottom: 1rem;
}

.title::after {
    content: '';
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient-accent);
    border-radius: 2px;
}

.subtitle {
    color: var(--base-color-dark);
    font-size: 1.5rem;
    text-align: center;
    font-weight: 600;
    margin-bottom: 1rem;
}

.description {
    text-align: center;
    font-size: 1.1rem;
    letter-spacing: 0.3px;
    color: var(--text-second-color);
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.section {
    padding: 3rem 2rem;
    position: relative;
}

/* Remove padding do #home pois ele tem clip-path */
#home.section {
    padding: 0;
}

.subtitle-icon {
    font-size: 1.5rem;
    transition: transform var(--transition-normal);
}

.subtitle-icon:hover {
    opacity: 0.8;
    transform: scale(1.1);
}

/*====== HEADER ====== */
.destaq-home {
    margin-top: var(--header-height);
    height: 3px;
    background: var(--gradient-accent);
    box-shadow: var(--shadow-sm);
    position: relative;
    z-index: 999;
}

#header {
    display: flex;
    width: 100%;
    position: fixed;
    top: 0;
    z-index: 1000;
    background: rgba(0, 2, 33, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
}

#header.scrolled {
    box-shadow: var(--shadow-lg);
    background: rgba(0, 2, 33, 0.98);
}

header .logo a {
    display: flex;
    align-items: center;
    transition: transform var(--transition-normal);
}

header .logo a:hover {
    transform: scale(1.05);
}

header .logo a img {
    display: flex;
    align-items: center;
    width: 7%;
    min-width: 120px;
    margin-left: 2rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

nav {
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

nav ul {
    display: flex;
    justify-content: center;
    padding: 0;
    margin: 0;
    gap: 0.5rem;
}

nav ul li {
    text-align: center;
    position: relative;
}

nav ul li .link {
    color: var(--link-color);
    font-size: 1.1rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all var(--transition-normal);
    display: block;
}

nav ul li .link:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

nav ul li .link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80%;
    height: 2px;
    background: var(--accent-color);
    transition: transform var(--transition-normal);
    border-radius: 2px;
}

nav ul li .link:hover::after,
nav ul li .link.active::after {
    transform: translateX(-50%) scaleX(1);
}

nav.show ul.grid {
    gap: 2rem;
}

nav .menu {
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    top: -20rem;
    transition: all var(--transition-normal);
}

nav .menu ul {
    display: none;
}

nav.show .menu ul {
    display: grid;
}

nav.show .menu {
    opacity: 1;
    visibility: visible;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    height: 100vh;
    width: 100vw;
    position: fixed;
    top: 0;
    left: 0;
    display: grid;
    place-content: center;
}

nav.show .menu ul li .link {
    color: var(--base-color-dark);
    font-size: 1.5rem;
    font-weight: 600;
}

/*====== TOGGLE MENU ====== */
.toggle {
    z-index: 4000;
    color: var(--link-color);
    font-size: 2rem;
    cursor: pointer;
    padding: 1rem;
    transition: all var(--transition-normal);
    border-radius: 50%;
}

.toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

.icon-menu.toggle {
    font-size: 2.5rem;
    padding: 0 1rem;
}

.icon-close {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    top: -1.5rem;
    right: 1.5rem;
    transition: all var(--transition-normal);
}

nav.show .icon-close {
    top: 1rem;
    right: 1.5rem;
    visibility: visible;
    opacity: 1;
    color: var(--base-color);
}

nav.show .icon-menu {
    position: absolute;
    right: -4rem;
    transition: all var(--transition-normal);
}

/*====== HERO WRAPPER ====== */
.hero-wrapper {
    position: relative;
    height: 70vh;
    width: 100%;
}

/*====== HOME ====== */
#home {
    height: 100%;
    margin: 0;
    z-index: 10;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url(../img/bg-hero-teste.jpg);
    clip-path: polygon(20% 0, 100% 0, 100% 100%);
    background-size: cover;
    background-position: right top;
    background-repeat: no-repeat;
}

.hero-img {
    position: absolute;
    bottom: 25%;
    left: 30%;
    transform: translate(-50%, -50%);
    z-index: 5;
    width: auto;
    max-width: 800px;
    display: block;
    visibility: visible;
    opacity: 1;
}

.img-hero {
    z-index: 1000;
    display: block !important;
    width: 100%;
    margin-left: 1rem;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative;
}

.hero-text {
    margin-right: 2rem;
    z-index: 1000;
    color: var(--base-color);
    text-align: center;
    font-weight: 500;
    margin-top: 0;
    margin-left: 4.5rem;
    font-size: 1rem;
    font-weight: 500;
}

/*====== ABOUT ====== */
#about {
    background: linear-gradient(180deg, #f8f9fa 0%, var(--light-color) 100%);
    margin-bottom: 0;
    padding: 3rem 2rem;
}

#about .description {
    font-size: 1.15rem;
    margin-bottom: 1.5rem;
    padding: 0 2rem;
}

/*====== ATUATION ====== */
#atuation {
    background: var(--gradient-primary);
    padding: 3rem 2rem;
    position: relative;
    overflow: hidden;
}

#atuation::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url(../img/bg-madeira.png);
    opacity: 0.1;
    z-index: 0;
}

#atuation .title {
    color: var(--link-color);
    position: relative;
    z-index: 1;
}

#atuation .title::after {
    background: var(--accent-color);
}

.cards {
    padding: 2rem 1rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.card {
    min-height: 280px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all var(--transition-normal);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.card:hover::before {
    left: 100%;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.card .card-icon {
    font-size: 3.5rem;
    color: #fff;
    margin-bottom: 1.5rem;
    transition: transform var(--transition-normal);
}

.card:hover .card-icon {
    transform: scale(1.2) rotate(5deg);
}

.card .subtitle {
    letter-spacing: 1px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.card .description {
    text-align: center;
    color: rgba(255, 255, 255, 0.95);
    font-size: 1rem;
    line-height: 1.7;
}

/*====== NOTÍCIAS SECTION ====== */
#news {
    background: linear-gradient(180deg, var(--light-color) 0%, #fff 100%);
    padding: 3rem 2rem;
}

#news .title {
    color: var(--base-color-dark);
    margin-bottom: 1rem;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.news-card {
    background: #fff;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.05);
    opacity: 1;
    transform: translateY(0);
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.news-card-image {
    width: 100% !important;
    height: 250px !important;
    min-height: 250px !important;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    position: relative;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.news-card-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.1) 100%);
    opacity: 0;
    transition: opacity var(--transition-normal);
    z-index: 1;
    pointer-events: none;
}

.news-card:hover .news-card-image::after {
    opacity: 1;
}

.news-card-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    transition: transform var(--transition-slow);
    max-width: 100%;
    max-height: 400px;
    display: block !important;
    position: relative;
    z-index: 0;
    opacity: 1 !important;
    visibility: visible !important;
}

.news-card:hover .news-card-image img {
    transform: scale(1.1);
}

.news-card-body {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-card-date {
    color: var(--accent-color);
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.news-card-title {
    color: var(--base-color-dark);
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.3;
    font-family: var(--font-title);
}

.news-card-description {
    color: var(--text-second-color);
    font-size: 1rem;
    line-height: 1.7;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-link {
    display: inline-block;
    color: var(--base-color);
    font-weight: 600;
    text-decoration: none;
    margin-top: 0.5rem;
    transition: all var(--transition-normal);
    font-size: 0.9rem;
}

.news-card-link:hover {
    color: var(--base-color-dark);
    transform: translateX(5px);
}

.news-loading,
.news-empty,
.news-error {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-second-color);
    font-size: 1.2rem;
    grid-column: 1 / -1;
}

.news-error {
    color: #dc3545;
}

/*====== NEWS MODAL ====== */
.news-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 2rem;
}

.news-modal.active {
    opacity: 1;
    visibility: visible;
}

.news-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.news-modal-content {
    position: relative;
    background: #fff;
    border-radius: var(--border-radius-lg);
    max-width: 800px;
    max-height: 90vh;
    width: 100%;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
    z-index: 10001;
}

.news-modal.active .news-modal-content {
    transform: scale(1) translateY(0);
}

.news-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10002;
    transition: all var(--transition-normal);
    color: var(--text-first-color);
}

.news-modal-close:hover {
    background: rgba(0, 0, 0, 0.2);
    transform: rotate(90deg);
}

.news-modal-close ion-icon {
    font-size: 24px;
}

.news-modal-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
}

.news-modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-modal-body {
    padding: 2.5rem;
}

.news-modal-date {
    color: var(--accent-color);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.news-modal-title {
    color: var(--base-color-dark);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
    font-family: var(--font-title);
}

.news-modal-text {
    color: var(--text-second-color);
    font-size: 1.1rem;
    line-height: 1.8;
    white-space: pre-wrap;
    margin-bottom: 2rem;
}

.news-modal-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--base-color);
    font-weight: 600;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--base-color);
    border-radius: var(--border-radius);
    transition: all var(--transition-normal);
}

.news-modal-link:hover {
    background: var(--base-color);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.news-modal-link ion-icon {
    font-size: 20px;
}

/*====== CONTACT ====== */
#contact {
    background: linear-gradient(135deg, #f7953f13 0%, #fff 100%);
    padding: 3rem 2rem;
}

#contact .title {
    margin-bottom: 1.5rem;
}

#contact .img-icons {
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
}

#contact .img-icons a {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-first-color);
    transition: all var(--transition-normal);
    padding: 0.75rem;
    border-radius: var(--border-radius);
    width: 100%;
}

#contact .img-icons a:hover {
    color: var(--base-color);
    background: rgba(0, 38, 86, 0.05);
    transform: translateX(10px);
}

#contact .img-icons .subtitle-icon {
    color: var(--base-color);
    font-size: 2rem;
    min-width: 40px;
}

#contact .contact {
    margin-top: 3rem;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
    gap: 3rem;
}

#contact .contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
}

#map {
    width: 100%;
    max-width: 500px;
    height: 400px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 3px solid #fff;
}

/*====== FORMULÁRIO DE CONTATO ====== */
.contact-form {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 2.5rem;
    background: #fff;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.75rem;
    color: var(--base-color-dark);
    font-weight: 600;
    font-size: 1rem;
}

.form-group .required {
    color: #e74c3c;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: var(--font-family);
    font-size: 1rem;
    transition: all var(--transition-normal);
    background: #fff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--base-color);
    box-shadow: 0 0 0 4px rgba(0, 38, 86, 0.1);
    transform: translateY(-2px);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: #e74c3c;
    box-shadow: 0 0 0 4px rgba(231, 76, 60, 0.1);
}

.form-group input.success,
.form-group select.success,
.form-group textarea.success {
    border-color: #27ae60;
}

.form-group textarea {
    resize: vertical;
    min-height: 140px;
}

.error-message {
    display: block;
    color: #e74c3c;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    min-height: 1.2rem;
}

.submit-button {
    width: 100%;
    padding: 1.25rem 2rem;
    background: var(--gradient-primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-family);
    box-shadow: var(--shadow-md);
}

.submit-button:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
    background: var(--base-color-dark);
}

.submit-button:active:not(:disabled) {
    transform: translateY(-1px);
}

.submit-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.button-loader ion-icon {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.form-message {
    margin-top: 1.5rem;
    padding: 1.25rem;
    border-radius: 8px;
    display: none;
    font-weight: 500;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 2px solid #c3e6cb;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 2px solid #f5c6cb;
}

/*====== FOOTER ====== */
#footer {
    background: var(--gradient-primary);
    display: flex;
    padding: 2rem 2rem;
    min-height: auto;
    align-items: center;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 3rem;
    position: relative;
}

#footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-accent);
}

#footer .logo {
    display: none;
}

#footer .footer-menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
}

#footer .footer-menu a p {
    color: var(--link-color);
    font-size: 1rem;
    letter-spacing: 0.5px;
    font-weight: 500;
    transition: all var(--transition-normal);
    padding: 0.5rem 1rem;
    border-radius: 6px;
}

#footer .footer-menu a p:hover {
    opacity: 0.9;
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

#footer .footer-icons {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

#footer .footer-icons a {
    color: var(--link-color);
    transition: all var(--transition-normal);
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

#footer .footer-icons a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.15) rotate(5deg);
}

#footer .subtitle-icon {
    color: var(--link-color);
    cursor: pointer;
    font-size: 1.5rem;
}

/*====== ÍCONE DE WHATSAPP FIXO ====== */
.link-whatsapp-fixed {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border-radius: 50%;
    box-shadow: var(--shadow-lg);
    padding: 15px;
    transition: all var(--transition-normal);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 30px rgba(37, 211, 102, 0.6);
    }
}

.link-whatsapp-fixed:hover {
    transform: scale(1.15);
    box-shadow: var(--shadow-xl);
}

.whatsapp-fixed {
    font-size: 32px;
    color: #fff;
}

.link-instagram-fixed {
    position: fixed;
    bottom: 100px;
    right: 25px;
    background: linear-gradient(135deg, #E4405F 0%, #C13584 50%, #833AB4 100%);
    border-radius: 50%;
    box-shadow: var(--shadow-lg);
    padding: 15px;
    transition: all var(--transition-normal);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    animation: pulse-instagram 2s infinite;
    animation-delay: 1s;
}

@keyframes pulse-instagram {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(228, 64, 95, 0.4);
    }
    50% {
        box-shadow: 0 4px 30px rgba(228, 64, 95, 0.6);
    }
}

.link-instagram-fixed:hover {
    transform: scale(1.15);
    box-shadow: var(--shadow-xl);
}

.instagram-fixed {
    font-size: 32px;
    color: #fff;
}

/*====== MEDIA QUERY - MOBILE ====== */
@media (max-width: 768px) {
    :root {
        font-size: 95%;
    }
    
    .title {
        font-size: 2rem;
        padding: 1.5rem 1rem;
    }
    
    .title::after {
        width: 40px;
        height: 3px;
    }
    
    #header {
        padding: 0.5rem 0;
    }
    
    header .logo a img {
        width: 100px;
        margin-left: 1rem;
    }
    
    #header .toggle {
        display: flex;
    }
    
    nav ul {
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
    }
    
    nav ul li {
        margin: 0;
    }
    
    nav.show .menu ul li .link {
        font-size: 1.8rem;
    }
    
    .hero-wrapper {
        height: 70vh;
    }
    
    .hero-text {
        font-size: 1rem;
        margin-left: 1rem;
    }

    .img-hero {
        width: 90%;
    }
    
    .hero-img {
        max-width: 500px;
    }
    
    .section {
        padding: 3rem 1.5rem;
    }
    
    .description {
        font-size: 1rem;
        padding: 0;
    }
    
    .cards {
        gap: 1.5rem;
        padding: 1rem;
    }
    
    .card {
        min-height: auto;
        padding: 2rem 1.5rem;
    }
    
    .card .card-icon {
        font-size: 2.5rem;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .news-modal {
        padding: 1rem;
    }
    
    .news-modal-content {
        max-height: 95vh;
    }
    
    .news-modal-body {
        padding: 1.5rem;
    }
    
    .news-modal-title {
        font-size: 1.5rem;
    }
    
    .news-modal-text {
        font-size: 1rem;
    }
    
    .news-modal-image {
        height: 200px;
    }
    
    #contact .contact {
        flex-direction: column;
        gap: 2rem;
    }
    
    #map {
        width: 100%;
        max-width: 100%;
        height: 300px;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .link-whatsapp-fixed {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
        padding: 12px;
    }
    
    .link-instagram-fixed {
        bottom: 85px;
        right: 20px;
        width: 55px;
        height: 55px;
        padding: 12px;
    }
    
    .whatsapp-fixed,
    .instagram-fixed {
        font-size: 28px;
    }
    
    #footer {
        flex-direction: column;
        padding: 2rem 1.5rem;
        gap: 2rem;
        text-align: center;
    }
}

/*====== MEDIA QUERY - TABLET ====== */
@media (min-width: 769px) and (max-width: 1023px) {
    .section {
        padding: 4rem 3rem;
    }
    
    .hero-wrapper {
        height: 70vh;
    }
    
    #home {
        background-image: url(../img/bg-hero-teste.jpg);
        background-size: cover;
        background-repeat: no-repeat;
        background-position: top right;
        clip-path: polygon(100% 0, 10% 0, 100% 100%);
        z-index: 10;
    }

    .hero-img {
        position: absolute;
        top: 55%;
        left: auto;
        bottom: auto;
        transform: translateY(-50%);
        z-index: 5;
        width: auto;
        max-width: 700px;
        display: block;
        visibility: visible;
        opacity: 1;
    }
    
    .img-hero {
        width: 100%;
    }

    .hero-text {
        margin-top: 0;
        margin-left: 4.5rem;
        font-size: 1rem;
        font-weight: 500;
    }
    
    .cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    #contact .contact {
        flex-direction: column;
    }
}

/*====== MEDIA QUERY - DESKTOP ====== */
@media (min-width: 1024px) {
    :root {
        font-size: 1.05rem;
    }
    
    .section {
        padding: 5rem 10rem;
    }
    
    header .logo a img {
        width: 25%;
        max-width: 200px;
        margin-left: 4rem;
    }
    
    nav .menu {
        padding-right: 4rem;
        align-items: center;
        opacity: 1;
        visibility: visible;
        top: 0;
    }
    
    nav .menu ul {
        display: flex;
        gap: 2rem;
    }
    
    nav .icon-menu {
        display: none;
    }
    
    nav .menu ul li .link {
        font-size: 1.1rem;
        letter-spacing: 0.5px;
    }
    
    .hero-wrapper {
        height: 80vh;
    }
    
    #home {
        height: 100%;
        background-image: url(../img/bg-hero-teste.jpg);
        background-size: cover;
        background-repeat: no-repeat;
        background-position: top right;
        clip-path: polygon(5% 0, 100% 0, 100% 100%);
        z-index: 10;
    }

    .hero-img {
        position: absolute;
        top: 55%;
        left: 25%;
        bottom: auto;
        transform: translateY(-50%);
        width: auto;
        max-width: 900px;
        z-index: 5;
        display: block;
        visibility: visible;
        opacity: 1;
    }
    
    .img-hero {
        width: 100%;
    }

    .hero-text {
        margin-top: 0;
        margin-left: 4.5rem;
        font-size: 1.1rem;
        font-weight: 500;
    }
    
    #atuation {
        padding: 6rem 10rem;
    }
    
    #atuation .cards {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
    
    .news-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .news-modal-content {
        max-width: 900px;
    }
    
    .news-modal-body {
        padding: 3rem;
    }
    
    .news-modal-title {
        font-size: 2.5rem;
    }
    
    #contact {
        padding: 6rem 10rem;
    }
    
    #contact .contact {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: flex-start;
        gap: 4rem;
    }
    
    #contact .contact-info {
        flex: 1;
        max-width: 450px;
    }
    
    .contact-form {
        flex: 1;
        max-width: 650px;
    }
    
    #map {
        max-width: 500px;
        height: 450px;
    }
}

/*====== SCROLL ANIMATIONS ====== */
@media (prefers-reduced-motion: no-preference) {
    .card,
    .contact-form {
        opacity: 0;
        transform: translateY(30px);
        transition: all 0.6s ease;
    }
    
    .card.visible,
    .contact-form.visible {
        opacity: 1;
        transform: translateY(0);
    }
    
    /* Cards de notícias sempre visíveis - não precisam de animação */
    .news-card {
        opacity: 1 !important;
        transform: translateY(0) !important;
    }
}

/*====== UTILITY CLASSES ====== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.text-center {
    text-align: center;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
