:root {
    --uff-blue: #003366;
    --uff-red: #DA251C;
    --bg-light: #f8f9fa;
    --text-dark: #333;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', sans-serif; }

body { background-color: var(--bg-light); color: var(--text-dark); display: flex; flex-direction: column; min-height: 100vh; }

/* Header */
header { background: var(--uff-blue); color: white; padding: 1.5rem; text-align: center; }
header h1 { margin: 0; font-size: 2rem; }
header p { opacity: 0.9; font-size: 0.9rem; }

/* Container */
.container { max-width: 1200px; margin: 0 auto; padding: 2rem; width: 100%; flex: 1; }

/* Titles */
h2.section-title {
    color: var(--uff-blue);
    border-left: 5px solid var(--uff-red);
    padding-left: 15px;
    margin: 3rem 0 1.5rem 0;
}

/* 1. Banner Slider */
.banner { position: relative; height: 400px; overflow: hidden; border-radius: 8px; margin-bottom: 2rem; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.slide { position: absolute; width: 100%; height: 100%; opacity: 0; transition: opacity 1s; background-size: cover; background-position: center; display: flex; align-items: flex-end; }
.slide.active { opacity: 1; }
.slide-caption { background: rgba(0, 51, 102, 0.8); color: white; width: 100%; padding: 20px; text-align: center; }

/* 2. Important Links */
.links-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; background: white; padding: 2rem; border-radius: 8px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.link-col h3 { color: var(--uff-red); margin-bottom: 1rem; border-bottom: 1px solid #eee; padding-bottom: 0.5rem; }
.link-col ul { list-style: none; }
.link-col li { margin-bottom: 0.5rem; }
.link-col a { text-decoration: none; color: #555; transition: 0.3s; }
.link-col a:hover { color: var(--uff-blue); padding-left: 5px; }

/* 3. Matérias Grid */
.curriculum-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.period-card { background: white; border-top: 4px solid var(--uff-blue); padding: 1.5rem; border-radius: 0 0 8px 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); transition: transform 0.2s; }
.period-card:hover { transform: translateY(-5px); }
.period-card h3 { color: var(--uff-blue); margin-bottom: 1rem; font-size: 1.2rem; }
.period-card ul { list-style: none; }
.period-card li { margin-bottom: 0.8rem; }
.period-card a {
    display: block; padding: 8px; background: #f1f1f1; color: #444; text-decoration: none; border-radius: 4px; font-size: 0.9rem;
}
.period-card a:hover { background: var(--uff-blue); color: white; }

/* Footer */
footer { background: #222; color: #ccc; padding: 3rem 0; margin-top: auto; }
.footer-content { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; padding: 0 2rem; }
.footer-col h4 { color: white; margin-bottom: 1rem; }
.footer-col a { color: #ccc; text-decoration: none; display: block; margin-bottom: 0.5rem; }
.footer-col a:hover { color: var(--uff-red); }
.copy { text-align: center; margin-top: 2rem; border-top: 1px solid #444; padding-top: 1rem; font-size: 0.8rem; }

/* Responsivo */
@media(max-width: 768px) {
    .links-grid { grid-template-columns: 1fr; }
    .banner { height: 250px; }
}