/*
1. Google Fonts
2. Variabili globali (:root)
3. Fondamenta (html, body)
4. Tipografia (titoli, paragrafi, link)
5. Componenti (navbar, section, bottoni) 
6. Colori e background
7. Sizing
8. Form
9. Altri layout (griglie e contenitori)
10. 10 Animazioni
*/


/* 1) Fonts */
    
@import url("https://use.typekit.net/rsd4jhp.css");
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');

/* 2) Variabili */

:root {
    --primary-color: #232323;
    --background-color: #fff;  
    --background-color-2:#F8F8F8;
    --pop-color: #B5A76E;
    --link-hover-color:#12B0E5;
    
    --custom-radius:70px;
    --btn-radius:70px 70px 70px 70px;
    --btn-padding: 0.75em 2em;
    --section-padding: 120px;    
    --main-font: 'proxima-nova', sans-serif;
    --alt-font: 'Playfair Display', serif;
    --letter-spacing: 0.05em;  
    --pseudo-container-padding: 10rem;
}


/* 3) Fondamenta (html, body) */

html {
    font-size: 16px; /* Base del rem */
    scroll-behavior: smooth;
    color:  var(--primary-color);
    font-family: var(--main-font);
    font-weight: 100;
    font-style: normal;
}

body {
    background-color: var(--background-color); 
    color: #333;
    font-size: 1rem;
    font-family: var(--main-font);
    line-height: 1.6;
    font-family: var(--main-font);
    font-weight: 100;
    font-style: normal;
}


/* 4) Tipografia (titoli, paragrafi, link) */

.alt-font{
    font-family: var(--alt-font);
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    margin-bottom: 1.5rem;
}

h1, h3, h4, h5, h6, .h1, .h3, .h4, .h5, .h6 {
    line-height: 1.2;
    color: var(--primary-color);
}

h1, .h1 {
    font-size: 5rem;
    line-height: 1;
    letter-spacing: --letter-spacing;
}

h2, .h2 {
    font-size: 2.6rem;
    line-height: 1.1;
    color:var(--pop-color);
    font-family: var(--alt-font);
    font-weight:400;
    letter-spacing:var(--letter-spacing);
}

h3, .h3 {
    font-size: 1.5rem;
}

h4, .h4 {
    font-size: 2rem;
    font-family: var(--alt-font);
}

h5, .h5 {
    font-family: var(--alt-font);
}

h6, .h6{
    color:var(--primary-color);
    font-family: var(--main-font);
    font-weight: 700;
    font-style: normal;
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

.text-xl{
    font-size: 3rem;
    line-height: 1.1;
}

.text-lg{
    font-size: 2.3rem;
    line-height: 1.1;
}

.text-md{
    font-size: 1.5rem;
    line-height: 1.4;
}

.semi-bold{
    font-weight: 600;
}

b, strong {
    font-weight: 600;
}

.bold{
    font-weight: 700;
}

.em-pop em{
    font-weight: 500;
    color:var(--pop-color);
}

.text-stroke{
    color: transparent;
    -webkit-text-stroke-width: 1px;
    -webkit-text-stroke-color: var(--pop-color);
}

.text-stroke-white{
    color: transparent;
    -webkit-text-stroke-width: 1px;
    -webkit-text-stroke-color: #fff;
}

.text-shadow{
    color: #fff;
    text-shadow:
        3px 3px 0 var(--pop-color),
        -3px 3px 0 var(--pop-color),
        -3px -3px 0 var(--pop-color),
        3px -3px 0 var(--pop-color);
}

.letter-spacing{
    letter-spacing: var(--letter-spacing); 
}

/* 5) Componenti (bottoni, moduli, ecc.) */

body {
    background-color: var(--background-color);
    color: var(--primary-color);
}

.nav-item{
    padding: 0.5rem 2rem;
}

.nav-link{
    font-size: 13px;
    font-weight: 400;
    text-transform: uppercase;
}

.navbar-container{
    border-bottom: 1px solid color(srgb 1 1 1 / 0.5);
}

.navbar.scrolled .navbar-container{
    border-bottom: transparent;
}

.navbar {
  transition: background-color 0.3s ease-in-out;
}

.navbar-brand{
    font-family: var(--alt-font)!important;
    color: var(--primary-color);
    letter-spacing: var(--letter-spacing);
}

.navbar.scrolled {
  background-color: rgb(255 255 255 / 88%) !important;
}

.navbar-toggler{
    padding: 0;
}

ul.dropdown-menu {
    background-color: transparent;
    border: transparent;
}

.dropdown-menu li{
    background-color: rgba(0, 0, 0, 0.8) !important;
    margin-bottom: 0.1rem;
}

.dropdown-menu li a{
    color:white;
    font-weight:300;
    font-size: 15px;
}

.navbar-toggler, .navbar-toggler:focus, .navbar-toggler:focus-within {
    border: unset;
    box-shadow: none;
}

#footer ul{
    list-style-type: none;
}

#footer ul li a, #footer, #footer p, #footer a{
    font-size: 13px;
    font-weight:200;
}
#footer .bg-pop a:hover{
    font-size: 13px;
    font-weight:200;
    color: white!important;
}

.bg-dark ul li a, .bg-dark, .bg-dark p, .bg-dark a{
    color: #fff;
}

.bg-dark ul li a:hover, .bg-dark a:hover{
    color: var(--pop-color);
}

hr{
    border-top: 2px solid var(--pop-color);
    opacity: 1;
}

ol, ul {
    padding-left: 1rem;
}

ol li, ul li{
    margin-bottom: 1em;
}


section, .section-padding{
    padding-top:var(--section-padding);
    padding-bottom:var(--section-padding);
}

section.half-section, .half-section{
    padding-top:calc(var(--section-padding)/2);
    padding-bottom:calc(var(--section-padding)/2);
}

.pseudo-container{
    padding-left: calc(var(--pseudo-container-padding)*1);
    padding-right: calc(var(--pseudo-container-padding)*1);
}

.pseudo-container-all{
    padding: calc(var(--pseudo-container-padding)*1);
}

.custom-button, .custom-button-transparent {
    display: inline-flex;
    align-items: center;
    font-size: 0.75rem;
    border-radius: var(--btn-radius);
    cursor: pointer;
    transform: translateY(0);
    transition: all 0.3s ease-in-out;
    padding: var(--btn-padding);
    font-family: var(--main-font);
    font-weight: 600;
    font-style: normal;
}

.custom-button {
    background-color: var(--pop-color);
    color: var(--primary-color);
    border: none;
}

.custom-button-transparent {
    background-color: transparent;
    color: #fff;
    border: 1px solid #fff; 
}

.custom-button i, .custom-button-transparent i, .custom-link i{
    font-size: 1.5rem;
}

.custom-button i{
    color:var(--primary-color);
}

.custom-button-transparent i{
    color:#fff;
}

.custom-button:hover, .custom-button-transparent:hover {
    transform: translateY(0.10rem);
    transition: all 0.3s ease-in-out;
    background-color:var(--primary-color);
    color: white!important;  
    border-color:var(--primary-color);
}

.custom-button:hover i, .custom-button-transparent:hover i {
    color:var(--pop-color);  
}

.custom-link{
    color:var(--pop-color);
    padding: 0.3rem 0.5rem;
    border-bottom: 1px solid var(--primary-color);
}
.custom-link i{
    color:var(--primary-color);
    transform: translateY(0) translateX(0);
    transition: all 0.3s ease-in-out;
}

.custom-link:hover i{
    transform: translateY(-0.10rem) translateX(0.10rem);
    transition: all 0.3s ease-in-out;
}

.custom-contact{
    border-radius: 70px;
    padding: 0.5em 2em;
    box-shadow: inset 0px 3px 6px #00000029;
    border-color: transparent;
    width: 100%;
}

.custom-contact::placeholder {
  color: #4a3d3675!IMPORTANT;
}

.wpcf7-spinner{
    display: none;
}

.custom-button.form-button{
    padding: 0.5em 2em;
    line-height: 1.6;
    font-size: 16px;
    width: 100%;
}

p:has(.custom-button), p:has(.form-button){
    width: 100%;
}

.iubenda-embed:not(.no-brand):not(.iubenda-nostyle) {
    background-image: unset!important;
    background-repeat: no-repeat !important;
    background-size: unset!important;
    background-position: unset!important;
    padding-left: 0px!important;
}

/* 6) Colori e background */

a {
    color: var(--primary-color);
}

a:hover {
    color: var( --pop-color)!important;
}

.border-bottom, .border-top, .border-start, .border-end, .border{
    border-width: 2px!important;
}

.pop-border{
    border-color: var( --pop-color)!important;
}

.color-primary{
    color:var(--primary-color);
}

.color-secondary{
    color:var(--primary-color);
}

.color-pop{
    color:var(--pop-color);
}

.color-white{
    color: #fff;
}

.bg-dark{
    background-color:var(--primary-color);
}

.bg-secondary{
    background-color:var(--background-color-2)!important;
}

.bg-pop{
    background-color:var(--pop-color);
}

.bg-green{
    background-color: var(--custom-green);
}

.bg-transparent{
    background-color: transparent;
}

.alt-bg{
    background-color: var(--background-color-2);
}

.text-bg-dark {
    color: #fff !important;
    background-color: #0B2430 !important;
}

.text-bg-dark .offcanvas-body .navbar-nav .nav-link.active, .navbar-nav .nav-link {
    color: var(--primary-color);
}

.opacity-5{ opacity:0.5}

.mask {
    /* Importante: dare position-relative al contenitore e anche al testo che si vuole vada sopra all'overlay */
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-attachment: fixed;
}

/* 7) Sizing */

.w-20{width: 20%;}

.w-90{width: 90%;}

.h-90{height: 90%;}

.min-vh-30{
    min-height:30vh;
}

.min-vh-50{
    min-height:50vh;
}

.min-vh-100{
    min-height:100vh;
}

.min-vh-75{
    min-height:75vh;
}

.min-vw-30{
    min-width:30vw;
}

.min-vw-50{
    min-width:50vw;
}

.min-vw-100{
    min-width:100vw;
}

.vw-30{
    width:30vw;
}

.vw-50{
    width:50vw;
}

.vw-70{
    width:70vw;
}

.vh-50{
   height:50vh;
}

.vh-80{
    height:80vh;
}

.vh-75{
    height:75vh;
}

.vh-100{
    height:100vh;
}

.vw-100{
    width:100vw;
}


/* 8 Form di contatto */

.custom-form{
    width: 100%;
    border-bottom: 1px solid var(--primary-color);
    margin-bottom:0.75rem;
}

.custom-form input, .custom-form optgroup, .custom-form select, .custom-form textarea {
    margin: 0;
    border: transparent;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    width: 100%;
}

.custom-form input:focus-visible, .custom-form optgroup:focus-visible, .custom-form select:focus-visible, .custom-form textarea:focus-visible {
    outline: unset;
}

.custom-form p{
    border: unset;
}

.wpcf7-list-item {
    margin: 0 0 0 0; 
}


/* 9) Altri layout (contenitori, parti grafiche)*/

.card{
    border-radius: 0 var( --custom-radius) var( --custom-radius) 0;
    min-height: 300px;
    position: relative;
    transform: translateY(0);
    box-shadow: 0 0 0 rgba(0,0,0,0);
    transition: all 0.3s ease-in-out;
}

.card:hover{
    transform: translateY(-0.15rem);
    box-shadow: 0 0.15rem 16px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease-in-out;
}

.card .icon{
    position: absolute;
    height: 50px;
    width:50px;
    object-fit: contain;
    right:10%;
    bottom:10%;
}

.info-card p{
    font-weight: 500;
}

.custom-radius{
    border-radius: var( --custom-radius);
}

.carousel-inner{
    height:100%;
}

.carousel-item{
    height:100%;
}

.carousel-indicators [data-bs-target] {
    height:10px;
    width:10px;
    border-radius: 100%;
}


/* 10) Animazioni */

.text-running-right {
    overflow: hidden;
    width: 100%;
    white-space: nowrap;
    position: relative;
}

.text-running-right p {
    font-size: 5rem;
    font-family: var(--alt-font);
    display: flex;
    gap: 2rem; 
    width: max-content;
    animation: moveText 10s linear infinite;
}

@keyframes moveText {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}