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

body{

font-family:Arial,Helvetica,sans-serif;
background:#e8f6ff;
color:#333;

}

/* HEADER */

header{

text-align:center;
background:white;

}

header img{

width:100%;
height:400px;
object-fit:cover;

}

header h1{

margin:20px;
font-size:42px;
color:#005b96;

}

.welcome-text{

width:80%;
margin:auto;
padding-bottom:30px;
font-size:24px;
line-height:1.6;

}

/* MENU */

nav{

background:#005b96;

}

nav ul{

display:flex;
justify-content:center;
flex-wrap:wrap;
list-style:none;

}

nav li{

flex:1;
min-width:160px;

}

nav a{

display:block;
padding:18px;
color:white;
text-decoration:none;
text-align:center;
transition:.3s;

}

nav a:hover{

background:#008dd2;

}

/* CARD */

main{

width:90%;
max-width:1400px;
margin:50px auto;

}

.preview-container{

display:grid;
grid-template-columns:repeat(3,1fr);
gap:30px;

}

.card{

background:white;
border-radius:15px;
overflow:hidden;
box-shadow:0 5px 15px rgba(0,0,0,.2);
transition:.3s;

}

.card:hover{

transform:translateY(-10px);

box-shadow:0 15px 30px rgba(0,0,0,.3);

}

.card a{

display:block;
text-decoration:none;
color:inherit;

}

.card img{

width:100%;
height:230px;
object-fit:cover;
transition:.4s;

}

.card:hover img{

transform:scale(1.08);

}

.card-content{

padding:20px;

}

.card h2{

color:#005b96;
margin-bottom:15px;

}

.card p{

line-height:1.5;
margin-bottom:20px;

}

/* PULSANTE */

.btn{

display:inline-block;
padding:12px 22px;
background:#0099cc;
color:white;
border-radius:30px;
font-weight:bold;
transition:.3s;

}

.card:hover .btn{

background:#005b96;

}

/* FOOTER */

footer{

background:#005b96;
color:white;
text-align:center;
padding:25px;
margin-top:50px;

}

footer a{

color:white;

}

/* RESPONSIVE */

@media(max-width:900px){

.preview-container{

grid-template-columns:repeat(2,1fr);

}

}

@media(max-width:650px){

.preview-container{

grid-template-columns:1fr;

}

header img{

height:250px;

}

header h1{

font-size:32px;

}

.welcome-text{

width:95%;

}

}