/* =====================================================
   RICCARDO CALBO
   Contemporary Art
===================================================== */

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

html{

scroll-behavior:smooth;

}

body{

background:#F7F4EE;

color:#222;

font-family:'Montserrat',sans-serif;

line-height:1.7;

overflow-x:hidden;

}



/* ---------------- HEADER ---------------- */

header{

position:fixed;

top:0;

left:0;

width:100%;

padding:25px 60px;

display:flex;

justify-content:space-between;

align-items:center;

background:rgba(255,255,255,.70);

backdrop-filter:blur(10px);

z-index:1000;

transition:.4s;

}

.logo h1{

font-family:'Cormorant Garamond',serif;

font-size:42px;

font-weight:600;

letter-spacing:5px;

}

.logo p{

letter-spacing:4px;

font-size:11px;

margin-top:5px;

}

nav{

display:flex;

gap:35px;

}

nav a{

text-decoration:none;

color:#222;

font-size:14px;

letter-spacing:2px;

transition:.3s;

}

nav a:hover{

color:#8c6d3b;

}



/* ---------------- HERO ---------------- */

.hero{

height:100vh;

background-image:url("images/strada.jpg");

background-size:cover;

background-position:center;

display:flex;

justify-content:center;

align-items:center;

position:relative;

}

.overlay{

position:absolute;

width:100%;

height:100%;

background:rgba(0,0,0,.28);

}

.hero-content{

position:relative;

z-index:2;

text-align:center;

color:white;

max-width:700px;

padding:40px;

}

.hero-content h2{

font-family:'Cormorant Garamond',serif;

font-size:80px;

font-weight:500;

line-height:90px;

margin-bottom:30px;

}

.hero-content p{

font-size:18px;

margin-bottom:40px;

letter-spacing:1px;

}

.button{

display:inline-block;

padding:18px 40px;

border:1px solid white;

color:white;

text-decoration:none;

letter-spacing:3px;

transition:.4s;

}

.button:hover{

background:white;

color:black;

}



/* ---------------- SEZIONI ---------------- */

.container{

width:1200px;

max-width:92%;

margin:auto;

}

section{

padding:120px 0;

}

section h2{

font-family:'Cormorant Garamond',serif;

font-size:60px;

font-weight:500;

margin-bottom:20px;

}

.line{

width:90px;

height:2px;

background:#b69563;

margin:30px 0;

}



/* ---------------- GALLERIA ---------------- */

.gallery{

display:grid;

grid-template-columns:repeat(auto-fit,minmax(320px,1fr));

gap:40px;

margin-top:50px;

}

.card{

overflow:hidden;

background:white;

}

.card img{

width:100%;
height:420px;
object-fit:contain;
background:#f5f5f5;
display:block;
transition:.5s;

}

.card:hover img{

transform:scale(1.08);

}

.caption{

padding:25px;

text-align:center;

}

.caption h3{

font-family:'Cormorant Garamond',serif;

font-size:34px;

margin-bottom:10px;

}



/* ---------------- OPERA COLORI ---------------- */

.featured-work{

display:grid;

grid-template-columns:1.2fr .8fr;

gap:70px;

align-items:center;

margin-top:50px;

}

.featured-work img{

width:100%;

box-shadow:0 20px 60px rgba(0,0,0,.15);

}

.featured-text h3{

font-family:'Cormorant Garamond',serif;

font-size:48px;

margin-bottom:20px;

}



/* ---------------- MOSTRE ---------------- */

.mostre-gallery{

display:grid;

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

gap:25px;

margin-top:50px;

}

.mostre-gallery img{

width:100%;

display:block;

}



/* ---------------- CONTATTI ---------------- */

.contact{

background:#ECE7DD;

}

.contact-box{

display:flex;

justify-content:space-around;

margin-top:50px;

text-align:center;

}

.contact-box h3{

font-family:'Cormorant Garamond',serif;

font-size:30px;

margin-bottom:15px;

}



/* ---------------- FOOTER ---------------- */

footer{

background:#222;

color:white;

text-align:center;

padding:40px;

letter-spacing:3px;

}



/* ---------------- RESPONSIVE ---------------- */

@media(max-width:900px){

header{

padding:20px;

flex-direction:column;

}

nav{

margin-top:20px;

gap:18px;

flex-wrap:wrap;

justify-content:center;

}

.hero-content h2{

font-size:50px;

line-height:60px;

}

.gallery{

grid-template-columns:1fr;

}

.featured-work{

grid-template-columns:1fr;

}

.mostre-gallery{

grid-template-columns:1fr;

}

.contact-box{

flex-direction:column;

gap:40px;

}

}
.status{
margin:15px 0;
font-weight:600;
letter-spacing:1px;
}

.available{
color:#2e7d32;
}

.private{
color:#8c6d3b;
}

.sold{
color:#b71c1c;
}

.info-button{

display:inline-block;
margin-top:20px;
padding:12px 25px;
border:1px solid #8c6d3b;
text-decoration:none;
color:#8c6d3b;
transition:.3s;
font-size:13px;
letter-spacing:2px;

}

.info-button:hover{

background:#8c6d3b;
color:white;

}
#artModal{

display:none;

position:fixed;

top:0;

left:0;

width:100%;

height:100%;

background:rgba(0,0,0,.88);

justify-content:center;

align-items:center;

z-index:99999;

padding:40px;

overflow:auto;

}

.modal-content{

background:white;

max-width:950px;

width:100%;

padding:40px;

position:relative;

border-radius:8px;

animation:fade .4s;

}

.modal-content img{

display:block;
max-width:100%;
max-height:75vh;
width:auto;
height:auto;
margin:0 auto 30px auto;
object-fit:contain;

}

.modal-content h2{

font-family:'Cormorant Garamond',serif;

font-size:52px;

margin-bottom:15px;

}

.modal-content p{

margin-bottom:20px;

}

.close{

position:absolute;

right:30px;

top:20px;

font-size:40px;

cursor:pointer;

}

@keyframes fade{

from{

opacity:0;

transform:scale(.95);

}

to{

opacity:1;

transform:scale(1);

}

}