sites / style.css
Reginaldo5966's picture
Upload 19 files
f2f3fd2 verified
Raw History Blame Contribute Delete
3.02 kB
/* Fontes */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Playfair+Display:wght@700&display=swap');
/* Estilos base */
body {
scroll-behavior: smooth;
}
/* Estilos para o slider antes/depois */
.before-after-container {
position: relative;
width: 100%;
max-width: 800px;
margin: 0 auto;
overflow: hidden;
border-radius: 8px;
box-shadow: 0 10px 30px rgba(0,0,0,0.2);
aspect-ratio: 4/3;
}
.before-after-image {
width: 100%;
height: 100%;
object-fit: cover;
display: block;
}
.before-image {
position: absolute;
top: 0;
left: 0;
width: 50%;
height: 100%;
overflow: hidden;
z-index: 2;
}
.slider-handle {
position: absolute;
width: 4px;
height: 100%;
background-color: white;
left: 50%;
top: 0;
transform: translateX(-50%);
cursor: ew-resize;
z-index: 10;
touch-action: none;
}
.slider-handle:after {
content: "";
position: absolute;
width: 40px;
height: 40px;
border-radius: 50%;
background-color: white;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
box-shadow: 0 0 10px rgba(0,0,0,0.3);
}
.slider-handle:before {
content: "\f337";
font-family: "Font Awesome 6 Free";
font-weight: 900;
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%) rotate(90deg);
color: #4b5563;
font-size: 16px;
}
/* Efeitos hover */
.service-card:hover {
transform: translateY(-5px);
box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
}
.testimonial-card:hover {
transform: scale(1.03);
}
.nav-link {
position: relative;
}
.nav-link:after {
content: '';
position: absolute;
width: 0;
height: 2px;
bottom: -2px;
left: 0;
background-color: #3b82f6;
transition: width 0.3s ease;
}
.nav-link:hover:after {
width: 100%;
}
/* Animações */
.animate-fade-in {
animation: fadeIn 0.8s ease-out forwards;
}
.animate-slide-up {
animation: slideUp 0.8s ease-out forwards;
}
@keyframes fadeIn {
from { opacity: 0; }
to { opacity: 1; }
}
@keyframes slideUp {
from {
opacity: 0;
transform: translateY(30px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
/* Tipografia personalizada */
.font-display {
font-family: 'Playfair Display', serif;
}
/* Responsividade */
@media (max-width: 768px) {
.before-after-container {
aspect-ratio: 1/1;
}
}
/* Ajustes para dark mode (opcional) */
@media (prefers-color-scheme: dark) {
body {
background-color: #7cb936;
color: #f3f4f6;
}
.bg-white {
background-color: #1f2937 !important;
color: #f3f4f6;
}
.text-gray-800 {
color: #f3f4f6 !important;
}
.text-gray-600 {
color: #d1d5db !important;
}
.bg-gray-50 {
background-color: #111827 !important;
}
}