* { margin: 0; padding: 0; box-sizing: border-box; font-family: Arial, sans-serif; } header { background-color: #004a99; color: white; padding: 1rem; } nav { display: flex; justify-content: space-between; align-items: center; } nav ul { display: flex; list-style: none; } nav ul li a { margin-left: 20px; } nav ul li a { color: white; text-decoration: none; } .hero { height: 60vh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; background-color: #f4f4f4; } /** * { margin: 0; padding: 0; box-sizing: border-box; } */ .slider { position: relative; width: 100%; height: 100vh; overflow: hidden; } .slide { position: absolute; width: 100%; height: 100%; opacity: 0; transition: opacity 1s ease-in-out; } .slide.active { opacity: 1; } .slide img { width: 100%; height: 100%; object-fit: cover; } /* Overlay escuro */ .overlay { position: absolute; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.55); top: 0; left: 0; } /* Conteúdo */ .content { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -40%); color: white; text-align: center; z-index: 2; opacity: 0; } .slide.active .content { animation: fadeSlide 1s ease forwards; } @keyframes fadeSlide { from { opacity: 0; transform: translate(-50%, -30%); } to { opacity: 1; transform: translate(-50%, -50%); } } .content h1 { font-size: 3rem; } /* Setas */ .prev, .next { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255, 255, 255, 0.2); border: none; color: white; font-size: 2rem; padding: 10px 15px; cursor: pointer; z-index: 3; transition: 0.3s; } .prev:hover, .next:hover { background: rgba(255, 255, 255, 0.4); } .prev { left: 20px; } .next { right: 20px; } /* Bolinhas */ .indicators { position: absolute; bottom: 25px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 3; } .dot { width: 12px; height: 12px; background: rgba(255, 255, 255, 0.5); border-radius: 50%; cursor: pointer; transition: 0.3s; } .dot.active { background: white; }