html{
    background: url("./public/bg.webp") center left / cover no-repeat;
    min-height: 100%;
}

body{
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
    padding: 3.5%;
    color: white;
    font-family: "Iceberg", sans-serif;
}


#loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background-color: #000;
    display: grid;
    place-items: center;
    transition: opacity 0.5s ease;
}

#loader.hidden {
    opacity: 0;
    pointer-events: none;
}


.spinner {
  --color-1: rgba(187, 187, 187, 0.3);
  --color-2: #ff3d00;
  --size: 1.5px;

  position: relative;
  width: calc(100 * var(--size));
  height: calc(100 * var(--size));
}

.spinner:before,
.spinner:after {
  content: '';
  border-radius: 50%;
  position: absolute;
  inset: 0;
  box-shadow: 0 0 calc(10 * var(--size)) calc(2 * var(--size)) var(--color-1) inset;
}
.spinner:after {
  box-shadow: 0 calc(2 * var(--size)) 0 var(--color-2) inset;
  animation: rotate 2s linear infinite;
}
@keyframes rotate {
  0% {
    transform: rotate(0);
  }
  100% {
    transform: rotate(360deg);
  }
}


.titolo{
    display: flex;
    flex-direction: row;
    width: 100%;
    justify-content: center;
    align-items: top;
    margin-bottom: 2vh;
}

.primo{
    display: flex;
    flex-direction: column;
    width: 20%;
    justify-content: center;
    align-items: top;
    margin-bottom: 10vh;
    min-width: 80px;
}

.logo a {
    text-decoration: none;
    border: none;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: start;
    margin-bottom: 4vh;
}

.logo img{
    display: block;
    width: clamp(80px, 13vw, 200px);
    max-width: 60%;
    height: auto;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.logo img:hover{
    transform: scale(1.1);
}

.contatti{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 35px;
    font-weight: bold;
    position: relative;
}

.txt-contatti{
    transition: transform 0.5s ease;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-radius: 50px;
    border: none;
    box-shadow: 0 0 20px  rgba(0, 0, 0, 0.4);
    padding: 2.5% 5%;
    color: #ff7d00;
}

.txt-contatti:hover{
    transform: scale(1.1);
}

.contatti:hover .dropdown,
.contatti:focus-within .dropdown {
    display: flex;
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding-top: 1vw;
    display: none;
    white-space: nowrap;    
}


.dropdown img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    transition: transform 0.2s ease;
    margin: 0 10px;
}

.dropdown img:hover {
    transform: scale(1.1);}


.testo{
    display: flex;
    flex-direction: column;
    justify-content: start;
    width: 80%;
    color: black;
    font-weight: bold;
}

.t1{
    font-size: 70px;
    justify-content: center;
    width: 95%;
    margin-bottom: 2vh;
}

.t2{
    font-size: 45px;
    justify-content: center;
    text-align: right;
    width: 95%;
}




.corpo{
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
}





.pulsanti{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 80%;
    font-size: 2.7vw;
    font-weight: bold;
    margin-bottom: 10vh;
}

.p{
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2%;
    width: 55%;
    height: 20vh;
    text-align: center;
    background: rgba(255, 120, 0, 0.30);
    backdrop-filter: blur(13px);
    -webkit-backdrop-filter: blur(13px);
    border-radius: 30px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 0 30px 10px rgba(0, 0, 0, 0.4);
    transition: transform 0.8s ease,  scale 0.8s ease;
}

.p:hover{
    transform: scale(1.1) translateY(-6px);
}




.crediti{
    display: flex;
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 5.5%;
    justify-content: center;
    align-items: center;
    background-color: rgb(68, 68, 68);
    font-size: 1.4vh;
    border-top: 0.3vh solid #ff7d00; 
    font-weight: bold;
}

a:link, a:visited, a:active{
    color: #ff7d00;
    text-decoration: none;
}

a:hover{
    color: #ff7d00;
    text-decoration: underline;
}
