:root {
    font-size: 0.875em;
    font-family: 'Clash Display', sans-serif;
    font-weight: normal;
    --text-primary: white;
    --text-secondary: #313131;
    --bg-primary: rgb(14, 14, 14);
    --bg-secondary: #fff;
}

body {
    color: var(--text-primary);
    background-color: var(--bg-primary);
    margin: 0 1em;
    padding: 0;
    min-height: 100vh;
    object-fit: fill;
}

* {
    box-sizing: border-box;
}

h1 {
    padding: 40px 0;
    font-size: 22vw;
    width: 100%;
    /* titolo largo quanto il viewport */
    margin: 0;
    background-image: url('../media/hero.jpg');
    background-size: contain;
    color: transparent;
    -webkit-background-clip: text;

}

h3 {
    font-weight: 200;
    padding-bottom: 2em;
}

h2 {
    font-weight: 400;
    font-size: 24Px;
    margin: 0;
}

h4 {
    margin: 0;
}

h5 {
    font-size: .9em;
    margin-bottom: 0;
}

a {
    color: var(--text-primary);
    text-decoration: none;
}

a:hover {
    color: #ea6703e6;
}

svg {
    width: 32px;
    height: 32px;
}

.container-fluid {
    display: grid;
    gap: 0;
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr auto;
    height: 100%;
    margin: 0;

}

/*---------------Header--------------*/

/*-------NAV-------*/
.navbar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 2.5em 2em;
    border-bottom: solid 1px var(--text-secondary);
}

.navbar img {
    visibility: hidden;
}

.navbar svg {
    transition: transform .7s ease-in-out;
}

.navbar svg:hover {
    transform: rotate(180deg);
}

.navbar> :first-child {
    justify-self: start;
}

.navbar> :nth-child(2) {
    justify-self: center;
}

.navbar> :last-child {
    justify-self: end;
}

.contactButton {
    visibility: hidden;
    border: solid 1px var(--text-primary);
    border-radius: 100px;
    padding: .7em 2em;
    font-weight: bold;
    position: relative;
    overflow: hidden;
    transition: color .3s ease;
    z-index: 0;
}

/* Aggiungi questo selettore per il testo */
.contactButton span {
    position: relative;
    z-index: 1;
}

/* “vernice” che si espande da sinistra e copre anche il bordo */
.contactButton::before {
    content: '';
    position: absolute;
    inset: -1px;
    /* -1px così prende pure il bordo reale */
    background: #fff;
    border: 1px solid #fff;
    border-radius: inherit;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .5s ease;
}

.contactButton:hover {
    color: #000;
}

.contactButton:hover::before {
    transform: scaleX(1);
    /* wipe da sinistra → destra */
}

/*-------HERO-------*/

.hero {
    text-align: center;
}

.heroSubtitile svg {
    color: #cc7a3be6;
    width: 24px;
    height: 24px;

}

.heroSubtitile p {
    color: #8f582f;
    padding-bottom: 40px;
    font-size: .7em;
}

.hero-video {
    object-fit: cover;
    width: 90vw;
    height: 70vh;
    border-radius: 10px;
}

#myVideo {
    filter: saturate(2) sepia(0.4);
}

.hero-video-tint-wrapper {
    position: relative;
    display: inline-block;
}

.hero-video+.tint-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 140, 0, 0.116);
    /* Tinta magenta */
    pointer-events: none;
    border-radius: 10px;
}

/*-------CHI SIAMO-------*/


.history-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 4em 0 8em 0;
}

.history-section h2 {
    font-size: 6.5vw;
    font-weight: bold;
    padding: 50px 0 30px 0;
    color: #cc7a3be6;
}

.history-section p {
    text-align: center;
    padding: 0 40px;
}

/*-------SERVIZI-------*/

.services {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 40px;
}


.service-container {
    margin-top: 2em;
    display: grid;
    row-gap: 2em;
    grid-template-columns: auto;
}

/* Tutti gli item devono avere stessa struttura per funzionare */
.service-container>div {
    display: flex;
    flex-direction: column;
}

.service-container p {
    font-size: .9em;
}

/* Stile per tutte le immagini */
.service-container img {
    width: 100%;
    height: 200px;
    object-fit: cover;

}

/*-------LAVORI-------*/

.work {
    padding: 8em 40px;
    min-height: 100vh;
    display: grid;
    row-gap: 3em;
    grid-template-columns: auto auto;
    grid-template-rows: auto auto;
}

.work h2 {
    grid-column: 1 / span 2;
    font-size: 6.5vw;
    font-weight: bold;
    color: #cc7a3be6;
}

.work-container .item {
    display: flex;
    align-items: center;
    padding-bottom: 2em;
}

.work-container .item h2 {
    text-align: end;
    margin: 20px 0px;
    margin-right: 20px;
}


/*-------BLOG-------*/

.blog h2 {
    font-size: 6.5vw;
    font-weight: bold;
    color: #cc7a3be6;
    padding: 2em 0;
}


.blog {
    display: flex;
    flex-direction: column;
    padding: 0 10px;
}

.blog-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 1em;
    row-gap: 2em;
}

.blog h5 {
    padding: 0;
    margin: 0;
}


/*-------CONTATTO-------*/
.contact {
    padding: 8em 20px;

}

.contact h2 {
    font-size: 6.5vw;
    font-weight: bold;
    color: #cc7a3be6;
    padding: 0 0 1em;
}

input {
    width: 100%;
    padding: 10px;
    margin: 8px 0;
    border-radius: 4px;
    background-color: #252525;
    border: none;
    color: #ccc;
}


textarea {
    width: 100%;
    margin: 8px 0;
    height: 150px;
    padding: 10px;
    border-radius: 4px;
    border: none;
    background-color: #252525;
    resize: none;
    color: #ccc;
}


.form-button {
    border: solid 1px var(--text-primary);
    border-radius: 4px;
    padding: .7em 2em;
    font-weight: bold;
    margin-top: 20px;
    width: 100%;
}

.form-button:active {
    background-color: #ef7b23e6;
    border: none;
}

/*--------FOOTER--------*/
footer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 20px;
    text-align: center;
    border-top: 1px solid #888888;
    border-bottom: 1px solid #888888;

}

footer p {
    margin: 0;
    line-height: 0;

}

footer p {
    font-size: .8em;
}

footer h2 {
    padding: 10px 0;
}

footer h4 {
    font-weight: normal;
}

.footer-info {
    display: flex;
    justify-content: space-between;
    padding: 10px 0 20px;
}

.time-info {
    text-align: end;
}

.contact-info {
    text-align: left;
}


ul {
    display: flex;
    padding: 5px 0;
    justify-content: space-between;

}

ul li {
    list-style: none;
    border-top: 1px solid var(--text-primary);
    border-bottom: 1px solid var(--text-primary);
    width: 25px;
    text-align: center;
    padding: 5px;

}

ul li a {
    font-size: 20px;
}


/* .blog-item3 {
  grid-column: 1 / span 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.blog-item4 {
  grid-column: 1 / span 2;
  display: flex;
  flex-direction: column;
  align-items: end;
}

.blog-item2 {
  display: flex;
  flex-direction: column;
  align-items: end;
  justify-content: flex-end;
}

.blog-item1 > div {
  width: 90%;
}
.blog-item2 > div {
  width: 60%;
}
.blog-item3 > div {
  width: 50%;
}
.blog-item4 > div {
  width: 30%;
}

.blog h2 {
  grid-column: 1 / span 2;
  font-size: 5vw;
  font-weight: bold;
} */