*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:Arial, sans-serif;
}

body{
    cursor:none;
    line-height:1.5;
}

#cursor{
    width:12px;
    height:12px;
    background:black;
    border-radius:50%;
    position:fixed;
    pointer-events:none;
    z-index:9999;
}

/* NAV */
#nav{
    position:fixed;
    width:100%;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:20px 40px;
    background:white;
    z-index:10000;
}

#logo{
    font-size:22px;
}

#nav-links{
    display:flex;
    gap:30px;
}

#nav a{
    text-decoration:none;
    color:black;
    position:relative;
}

#nav a::after{
    content:"";
    position:absolute;
    bottom:-6px;
    left:0;
    width:0%;
    height:3px;
    background:black;
    transform:rotate(-3deg);
    transition:0.3s;
}

#nav a:hover::after{
    width:100%;
}

/* MENU MOBILE */
#menu-btn{
    display:none;
    width:30px;
    height:20px;
    position:relative;
}

#menu-btn span{
    position:absolute;
    width:100%;
    height:2px;
    background:black;
}

#menu-btn span:nth-child(1){top:0;}
#menu-btn span:nth-child(2){top:9px;}
#menu-btn span:nth-child(3){bottom:0;}

#menu-btn.active span:nth-child(1){
    transform:rotate(45deg);
    top:9px;
}

#menu-btn.active span:nth-child(2){
    opacity:0;
}

#menu-btn.active span:nth-child(3){
    transform:rotate(-45deg);
    bottom:9px;
}

#mobile-menu{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:white;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    gap:30px;
    transform:translateY(-100%);
    transition:0.5s;
    z-index:10001;
    pointer-events:none;
}

#mobile-menu.active{
    transform:translateY(0);
    pointer-events:auto;
}

#mobile-menu a{
    font-size:30px;
    text-decoration:none;
    color:black;
    position:relative;
}

/* underline animata */
#mobile-menu a::after{
    content:"";
    position:absolute;
    left:0;
    bottom:-6px;
    width:0%;
    height:3px;
    background:black;
    transform:rotate(-3deg);
    transition:0.3s;
}

#mobile-menu a:hover::after{
    width:100%;
}

#mobile-menu a{
    transition:0.3s;
}

#mobile-menu a:hover{
    transform:scale(1.1);
}

/* BUTTONS */
a.btn{
    display:inline-block;
    padding:15px 30px;
    background:black;
    color:white;
    text-decoration:none;
    transition:0.3s;
}

a.btn:hover{
    background:#333;
    transform:scale(1.05);
}

/* SECTIONS */
section{
    padding:120px 10%;
}

h1{
    font-size:70px;
}

h2{
    font-size:40px;
    margin-bottom:20px;
}

p{
    color:#666;
}

.micro{
    font-size:12px;
    color:#777;
    margin-top:15px;
}

/* SERVICES */
#services-preview{
    display:flex;
    justify-content:space-between;
}

.service-card{
    width:30%;
    transition:0.3s;
}

.service-card:hover{
    transform:translateY(-10px);
}

/* WORK */
.work-item{
    padding:40px 0;
    border-bottom:1px solid #ddd;
    transition:0.3s;
}

.work-item:hover{
    transform:translateX(30px);
}

/* TESTIMONIAL */
.testimonial{
    display:none;
    text-align:center;
}

.testimonial.active{
    display:block;
}

/* FOOTER */
#footer{
    padding:80px 10%;
    border-top:1px solid #eee;
    text-align:center;
}

.footer-logo{
    font-size:20px;
}

/* ANIMAZIONI */
.reveal{
    opacity:0;
    transform:translateY(60px);
    transition:0.8s;
}

.reveal.active{
    opacity:1;
    transform:translateY(0);
}

/* MOBILE */
@media(max-width:768px){

    #nav-links{
        display:none;
    }

    #menu-btn{
        display:block;
    }

    h1{
        font-size:34px;
    }

    section{
        padding:80px 20px;
    }

    #services-preview{
        flex-direction:column;
        gap:30px;
    }

    .service-card{
        width:100%;
    }
}

#logo{
    height:30px;
    width:auto;
}

#footer-logo{
    height:30px;
    width:auto;
    margin-bottom:10px;
}

a.btn{
    display:inline-block;
    padding:15px 30px;
    background:black !important;
    color:white !important;
    text-decoration:none !important;
    font-size:14px;
    transition:0.3s;
    border: none;
}

a.btn:hover{
    background:#333 !important;
    transform:scale(1.05);
}

#contact-section{
    display:flex;
    gap:100px;
}

.contact-left{
    width:40%;
}

#contact-form{
    width:50%;
    display:flex;
    flex-direction:column;
    gap:40px;
}

/* INPUT */
.input-group{
    position:relative;
}

.input-group input,
.input-group textarea{
    width:100%;
    padding:15px 0;
    border:none;
    border-bottom:1px solid #aaa;
    background:transparent;
    outline:none;
}

/* LABEL */
.input-group label{
    position:absolute;
    top:15px;
    left:0;
    color:#777;
    transition:0.3s;
}

/* ANIMAZIONE */
.input-group input:focus + label,
.input-group input:valid + label,
.input-group textarea:focus + label,
.input-group textarea:valid + label{
    top:-10px;
    font-size:12px;
    color:black;
}

/* BUTTON */
#contact-form button{
    padding:15px;
    background:black;
    color:white;
    border:none;
    cursor:none;
}

.contact-email{
    text-align:center;
    color:black;
    font-size:18px;
    margin-top:40px;
}

h1{
    font-size:70px;
    line-height:1.1;
    max-width:800px;
}

p{
    max-width:600px;
}

html, body{
    width:100%;
    overflow-x:hidden;
}

#close-menu{
    position:absolute;
    top:30px;
    right:40px;
    font-size:30px;
    cursor:none;
    transition:0.3s;
}

#close-menu:hover{
    transform:scale(1.2);
}

button{
    position:relative;
    z-index:10;
}

.footer-socials{
    margin-top:20px;
    display:flex;
    justify-content:center;
    gap:20px;
}

.footer-socials a{
    text-decoration:none;
    color:black;
    font-size:14px;
    position:relative;
}

.footer-socials a::after{
    content:"";
    position:absolute;
    bottom:-4px;
    left:0;
    width:0%;
    height:2px;
    background:black;
    transition:0.3s;
}

.footer-socials a:hover::after{
    width:100%;
}

.footer-cta{
    margin-top:20px;
}

body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
}

/* NAVBAR */
.navbar {
  padding: 20px;
  background: inherit;
}

/* FORM PAGE */
.form-page {
  padding: 40px 20px;
  max-width: 500px;
  margin: auto;
}

.form-page h2 {
  margin-bottom: 20px;
}

/* ogni blocco form */
.form-page form {
  display: flex;
  flex-direction: column;
}

/* spaziatura tra elementi */
.form-page form > * {
  margin-bottom: 15px;
}

/* label più pulite */
.form-page label {
  font-size: 14px;
  margin-bottom: 5px;
}

/* input ordinati */
.form-page input,
.form-page select,
.form-page textarea {
  padding: 12px;
  border: 1px solid #ccc;
  font-size: 14px;
  width: 100%;
  box-sizing: border-box;
}

/* textarea */
.form-page textarea {
  min-height: 120px;
}

/* bottone */
.form-page button {
  padding: 12px;
  background: black;
  color: white;
  border: none;
  cursor: pointer;
  font-weight: 500;
}

/* FOOTER */
footer {
  text-align: center;
  padding: 30px;
}

.form-page {
  margin-top: 100px;
}