/* Variables */
:root {
    --cor-primaria: #4a5d7c;
    --cor-secundaria: #d4a574;
    --cor-texto: #333;
    --cor-fundo: #f8f9fa;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Crimson Pro', serif;
    color: var(--cor-texto);
    background: var(--cor-fundo);
    line-height: 1.6;
}

/* Header Horizontal */
.site-header {
    background: linear-gradient(135deg, var(--cor-primaria) 0%, #364a63 100%);
    color: white;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.site-header .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo img {
    height: 140px;
}

.logo h1 {
    font-family: 'Philosopher', sans-serif;
    font-size: 2rem;
    margin-bottom: 2px;
}

.logo p {
    font-size: 0.9rem;
    opacity: 0.95;
}

.site-header nav {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    align-items: center;
}

.site-header nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 0;
    position: relative;
    white-space: nowrap;
    transition: color 0.3s;
}

.site-header nav a:hover {
    color: var(--cor-secundaria);
}

.site-header nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--cor-secundaria);
    transition: width 0.3s;
}

.site-header nav a:hover::after {
    width: 100%;
}

/* Hero */
.page-hero {
    background: linear-gradient(135deg, rgba(74, 93, 124, 0.9) 0%, rgba(54, 74, 99, 0.9) 100%);
    color: white;
    padding: 80px 20px;
    text-align: center;
}

.page-hero h1 {
    font-family: 'Philosopher', sans-serif;
    font-size: 3rem;
    margin-bottom: 15px;
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.95;
}

/* Login Page */
.login-container {
    min-height: calc(100vh - 400px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

.login-box {
    background: white;
    padding: 50px 60px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    max-width: 500px;
    width: 100%;
}

.login-box h2 {
    font-family: 'Philosopher', sans-serif;
    color: var(--cor-primaria);
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.2rem;
}

.login-box .form-group {
    margin-bottom: 25px;
}

.login-box label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--cor-primaria);
    font-size: 1rem;
}

.login-box input {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s;
}

.login-box input:focus {
    outline: none;
    border-color: var(--cor-primaria);
    box-shadow: 0 0 0 3px rgba(74, 93, 124, 0.1);
}

.login-box button {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, var(--cor-primaria) 0%, #364a63 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
}

.login-box button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.alert {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 25px;
    text-align: center;
    font-weight: 500;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* Home Page Sections */
.home-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.home-section h2 {
    font-family: 'Philosopher', sans-serif;
    color: var(--cor-primaria);
    font-size: 2rem;
    margin-bottom: 15px;
}

.home-section h3 {
    font-family: 'Philosopher', sans-serif;
    color: var(--cor-primaria);
    font-size: 1.5rem;
    margin: 30px 0 15px;
}

.home-section p {
    line-height: 1.8;
    margin-bottom: 15px;
}

/* Suporte a alinhamento na home */
.home-section .ql-align-center,
.home-section p.ql-align-center {
    text-align: center;
}

.home-section .ql-align-right,
.home-section p.ql-align-right {
    text-align: right;
}

.home-section .ql-align-justify,
.home-section p.ql-align-justify {
    text-align: justify;
}

/* Suporte a tamanhos de fonte na home */
.home-section .ql-size-small,
.home-section span.ql-size-small {
    font-size: 0.75em;
}

.home-section .ql-size-large,
.home-section span.ql-size-large {
    font-size: 1.5em;
}

.home-section .ql-size-huge,
.home-section span.ql-size-huge {
    font-size: 2.5em;
}

/* Suporte a tamanhos customizados em px na home */
.home-section span[style*="font-size"],
.home-section .ql-editor span[style*="font-size"] {
    font-size: inherit !important;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, var(--cor-primaria) 0%, #364a63 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    margin-top: 10px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Content */
.page-content {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.content-card {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.content-card h2 {
    font-family: 'Philosopher', sans-serif;
    color: var(--cor-primaria);
    margin-bottom: 20px;
    font-size: 2rem;
}

.content-card h3 {
    color: var(--cor-primaria);
    margin-top: 25px;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.content-card p {
    margin-bottom: 15px;
    line-height: 1.8;
}

/* Suporte a alinhamento de texto e imagens */
.content-card .ql-align-center,
.content-card p.ql-align-center,
.content-card img.ql-align-center {
    text-align: center;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.content-card .ql-align-right,
.content-card p.ql-align-right,
.content-card img.ql-align-right {
    text-align: right;
    display: block;
    margin-left: auto;
}

.content-card .ql-align-justify,
.content-card p.ql-align-justify {
    text-align: justify;
}

/* Suporte a tamanhos de fonte */
.content-card .ql-size-small,
.content-card span.ql-size-small {
    font-size: 0.75em;
}

.content-card .ql-size-large,
.content-card span.ql-size-large {
    font-size: 1.5em;
}

.content-card .ql-size-huge,
.content-card span.ql-size-huge {
    font-size: 2.5em;
}

/* Suporte a tamanhos customizados em px */
.content-card span[style*="font-size"],
.content-card .ql-editor span[style*="font-size"] {
    font-size: inherit !important;
}

.content-card ul, .content-card ol {
    margin: 15px 0 15px 30px;
}

.content-card li {
    margin-bottom: 10px;
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.card h3 {
    font-family: 'Philosopher', sans-serif;
    color: var(--cor-primaria);
    margin-bottom: 15px;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--cor-primaria);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-family: 'Crimson Pro', serif;
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--cor-primaria);
}

/* Footer */
.site-footer {
    background: var(--cor-primaria);
    color: white;
    padding: 40px 20px 20px;
    margin-top: 60px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3 {
    font-family: 'Philosopher', sans-serif;
    margin-bottom: 15px;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: white;
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 0.3s;
}

.footer-section a:hover {
    opacity: 1;
    color: var(--cor-secundaria);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.2);
}

/* Responsive */
@media (max-width: 1200px) {
    .site-header nav {
        gap: 15px;
    }
    
    .site-header nav a {
        font-size: 0.9rem;
    }
}

@media (max-width: 900px) {
    .site-header .container {
        flex-direction: column;
        gap: 20px;
    }
    
    .site-header nav {
        justify-content: center;
        gap: 12px;
    }
    
    .logo img {
        height: 100px;
    }
}

@media (max-width: 768px) {
    .logo img {
        height: 80px;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .logo p {
        font-size: 0.8rem;
    }
    
    .site-header nav a {
        font-size: 0.85rem;
    }
    
    .page-hero h1 {
        font-size: 2rem;
    }
    
    .content-card {
        padding: 20px;
    }
    
    .login-box {
        padding: 40px 30px;
    }
}