/*
Theme Name: AtelierFrigerioMirva
Author: AlfaPi - Serena
Description: tema per Atelier Frigerio Mirva
Version:1.0
Text    Domain: frigerio-mirva
*/

/* VARIABILI */
:root {
    --font-1: 'Old Standard TT';
    --text-color: #000;
    --menu-color: #000;
    --border: 1px solid var(--text-color);
}

body {
    padding: 0;
    margin: 0;
    overflow-x: hidden;
    font-size: .8rem;
    color: var(--text-color);
    background-color: #fff;
    font-family: var(--font-1);
    font-weight: normal;
    text-transform: uppercase;
    -webkit-text-stroke-width: .1px;
    -webkit-text-stroke-color: white;
}

body,
html {
    height: 100%;
    width: 100%;
    position: relative;
    touch-action: pan-y;
}

a,
a:hover {
    text-decoration: none !important;
    color: var(--text-color);
}

a:not(:has(img))::after {
    content: '';
    display: block;
    width: 100%;
    height: .8px;
    background-color: transparent;
}

a:hover:not(:has(img))::after {
    background-color: #b3b1b1;
}

li.no-hover a::after {
    content: initial;
}

strong {
    font-weight: bold;
}

.container-fluid {
    max-width: 1920px;
    margin: 0 auto;
    width: 90%;
}

@media (max-width:767px) {
    .container-fluid {
        width: initial;
    }
}

/* 01 - VARIE */
h1 {
    font-size: 1.2rem;
    letter-spacing: 2px;
}

h2 {
    font-size: 1rem;
    letter-spacing: 2px;
}

h2 a {
    display: inline-block;
    font-size: 0.875rem;
}

p {
    line-height: 2.2;
    letter-spacing: 2px;
}

.featured-img {
    margin-bottom: 200px;
}

.wp-block-image+p {
    margin-block: 200px !important;
}

img+h2,
a+h2 {
    margin-block: 30px 130px;
}

h1+div {
    margin-bottom: 130px;
}

h1+div,
h2+p:first-of-type {
    margin-block: 90px;
}

@media (max-width:767px) {
    h1+div,
    h2+p {
        margin-block: 50px !important;
    }

    .wp-block-image:first-of-type {
        margin-top: 95px;
    }

    .wp-block-image+p {
        margin-block: 95px !important;
    }
}

/* 02 - MAIN MENU */
.navbar {
    z-index: 1000;
}

.navbar-nav {
    position: static;
}

.fixed {
    top: 0 !important;
    left: 0;
    right: 0;
    position: fixed !important;
    box-shadow: rgb(0 0 0 / 10%) 1px 18px 15px -4px;
    z-index: 1001;
}

.bg-main-menu {
    background-color: #fff !important;
    height: 50px;
}

.navbar-brand {
    padding: 0;
}

.navbar-brand {
    width: 100%;
    max-width: 250px;
    height: auto;
}

.nav-link {
    color: var(--menu-color);
    font-size: .75rem;
    letter-spacing: 3.9px;
    margin: 0 5px;
}

.nav-link.active::after {
    background-color: grey;
}

#menu-main-menu {
    padding-top: 3px;
}

@media (max-width:1399px) {
    .navbar-brand {
        width: 75%;
        max-width: 220px;
        margin:  15px;
        padding: 0;
    }

    #main-menu {
        height: 100vh;
        height: 100svh;
        background: #fff;
    }

    .main-menu {
        margin-top: 50px;
    }

    .bg-main-menu .container-fluid {
        width: 100%;
        padding-inline: 0;
    }

    .nav-item {
        padding: 15px 0;
        text-align: center;
        margin-inline: 0;
    }

    .nav-link {
        margin: 0 auto;
        display: inline-block;
        font-size: 1rem;
    }

    .navbar-toggler:focus {
        box-shadow: none;
    }

    .nav-link:focus {
        outline: 2px solid var(--menu-color);
        outline-offset: 4px;
    }

    .navbar-toggler {
        border: none;
        border-radius: initial;
        overflow: hidden;
        width: fit-content;
        top: 0;
        background-color: #fff !important;
        color: var(--text-color) !important;        position: fixed;
        right: 15px;
        top: 10px;
    }

    .navbar-toggler span span {
        background-color: var(--text-color);
        height: 2px;
        margin-block: 8px;
        display: block;
        width: 30px;
    }

    
.close-icon {
  position: relative;
  width: 24px;
  height: 24px;
  cursor: pointer;
}

.close-icon .line {
  position: absolute;
  top: 0;
  left: 50%;
  width: 100%;
  height: 2px;
  background-color: #000;
  transform-origin: center;
}

.close-icon .line:first-child {
  transform: translate(-50%, -50%) rotate(45deg);
}

.close-icon .line:last-child {
  transform: translate(-50%, -50%) rotate(-45deg);
}


    /*#navbar-close i {
        font-size: 2.4rem;
        -webkit-text-stroke-width: 2px;
    -webkit-text-stroke-color:#ffffff;
    }*/
}

/* 03 - HP */
.hp h2:first-of-type {
    padding-block: 200px 120px;
    margin-block: initial;
}

.hp h2+p {
    margin-block: 0 200px;
        max-width: 800px;
    margin-inline: auto;
}


/* 04 - COLLECTIONS  */
.container-fluid.box-collections h2.no-specifica {
    margin-bottom: 70px;
}

.container-fluid.box-collections h2+p:first-of-type {
    margin-block: 0;
}

.container-fluid.box-collections p.dimensioni {
    text-transform: initial;
}

.container-fluid.box-collections h2,
.container-fluid.box-collections h2 a {
    font-size: 1rem;
    letter-spacing: 2px;
}

.container-fluid.box-collections p a {
    border: var(--border);
    color: var(--text-color);
    letter-spacing: 2px;
    width: fit-content;
    font-size: .8rem;
    padding: 10px 40px;
}

.container-fluid.box-collections p a::after {
    content: initial;
}

.container-fluid.box-collections p a:hover {
    background-color: var(--text-color);
    color: #fff;
}

.box-collections .gallery {
    margin-block: 175px;
}

@media (max-width:767px) {
    .hp h2:first-of-type {
        padding-block: 50px 10px;
    }
}

@media (max-width:991px) {
    .box-collections .gallery {
        margin-block: 50px;
    }
}

/* 05 - TAX */
.container-fluid.box-tax {
    max-width: 80%;
    margin-block: 130px 230px;
}

.container-fluid.box-tax .col {
    padding-inline: 30px;
    text-align: center;
    justify-content: center;
    display: flex;
}

.container-fluid.box-tax .col a,
.container-fluid.box-tax-cpt h3 a {
    font-size: .9rem;
    letter-spacing: 1px;
    width: fit-content;
}

.container-fluid.box-tax .col.selected a:hover::after,
.container-fluid.box-tax .col a:hover::after {
    content: initial;
}

.container-fluid.box-tax .col a span,
.container-fluid.box-tax .col.selected a span {
    width: fit-content;
    display: inline-block;
    padding-inline: 6px;
}

.container-fluid.box-tax .col a span:last-of-type:after,
.container-fluid.box-tax .col.selected a span::after {
    content: '';
    display: block;
    width: 100%;
    height: 1px;
    background-color: #fff;
    margin-top: 4px;
}

.container-fluid.box-tax .col a:hover span::after,
.container-fluid.box-tax .col.selected a span::after,
.container-fluid.box-tax .col.selected a:hover span::after {
    background-color: grey;
}

@media (max-width:991px) {
    .container-fluid.box-tax {
        margin-block: 75px 115px;
        max-width: initial;
    }

    .container-fluid.box-tax .col {
        padding-inline: 25px;
        margin-block: 20px;
    }
}

/* 06 - FINISHES  */
.box-finishes {
    width: 90%;
}

.box-finishes h2 {
    font-size: 1.2rem;
}

.box-finishes h2+p {
    margin-block: 40px;
}

.box-finishes .gallery {
    margin-block: 190px;
}

.box-tax-cpt .row {
    margin-block: 0 150px;
}

@media (max-width:767px) {
    .box-tax-cpt .row {
        margin-top: 0;
        margin-bottom: 120px
    }



    .box-finishes p.tax {
        margin-top: 50px;
    }

    .box-finishes .gallery {
        margin-block: 85px;
    }

    .box-finishes .gallery div {
        margin-block: 25px;
    }
}

/* 07 - FOOTER */
/* footer>.container {
 padding-block: 200px;
    font-size: 1rem;
    text-transform: none;
}*/

footer a {
    display: inline-block;
    line-height: 110%;
}

footer .bg-credits {
    color: var(--text-color);
}

footer .bg-credits a {
    font-size: 1rem;
    text-transform: initial;
    margin-inline: 10px;
}

footer h2+p {
    margin-block: 0 !important;
}

footer p {
    margin-bottom: 0;
}


footer *:not(h2) {
    font-size: 0.875rem;
}

@media (max-width: 767px) {
    footer {
        font-size: .9rem;

    }
}

/* 08 - BREADCRUMB */
.briciole {
    font-size: .75rem;
    margin: 75px auto;
}

.briciole ol {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0;
    margin: 0;
}

.briciole li {
    display: inline;
}

.briciole li a {
    color: var(--text-color);
}

.briciole li a:hover {
    color: var(--colore-1);
}

.briciole li a::after {
    content: initial;
}

.briciole li::after {
    content: "/";
    margin: 0 0.25em;
}

.briciole li:last-child {
    font-weight: 300;
    opacity: 0.57;
}

.briciole li:last-child::after {
    content: "";
    margin: 0;
}

/* BOX GALLERY */
.box-gallery {
    margin-block: 120px;
}

.img-650,
.img-820 {
    height: 100%;
    width: 100%;
    object-fit: cover;
    display: block;
}

.img-650 {
    aspect-ratio: 1 / 1;
}

.img-820 {
    aspect-ratio: 1.45 / 1;
}

@media (max-width: 640px) {
    .box-gallery {
        width: 100%;
    }
}

@media (max-width: 1900px) {

    .img-650,
    .img-820 {
        max-width: none;
    }
}

/* BLOCCHI */
.block-anteprima h2 {
    padding-block: initial !important;
    margin-block: 30px 130px !important;
    font-size: 0.875rem;
}

.container.projects:first-of-type {
    margin-top: 200px;
}

.container.projects {
    margin-block: 140px;
}

.container.projects:last-of-type {
    margin-bottom: 200px;
}

.container.projects a {
    display: block;
    margin: 0 auto;
    width: fit-content;
    font-size: 0.8rem;
    letter-spacing: 2px;
}

@media (max-width:767px) {
    .container.projects:first-of-type {
        margin-top: 100px;
    }

    .container.projects {
        margin-block: 70px;
    }

    .container.projects:last-of-type {
        margin-bottom: 100px;
    }
}




/* MODULO */
.container-modulo {
    margin-block: 100px 200px;
}

.container.modulo {
    max-width: 640px;
}

.container.modulo h2 {
    text-align: center;
    font-size: 1rem;
    margin-block: 200px 20px;
    letter-spacing: 12px;
}

.container.modulo .row .col-lg-6,
.container.modulo .row .col-12 {
    margin-block: 20px;
}

input[type="text"],
input[type="email"],
textarea {
    padding: 3px 12px;
    padding: 10px 15px;
    width: 100%;
    border: var(--border);
    border: 1px solid rgba(0, 0, 0, .2);
    font-size: 1rem;
    color: var(--text-color);
    width: 100%;
    line-height: normal;
}

input::placeholder,
textarea::placeholder {

    font-size: 0.95rem;
    color: #454545;
}

input[type="number"] {
    width: auto;
    padding-block: 0;
}

textarea {
    height: 285px;
    resize: none;
}

.wpcf7-form label,
.modulo label {
    margin: 0 0 5px 20px;
    font-size: 1rem;
}

input[type="checkbox"] {
    width: 15px;
    height: 15px;
    border: var(--border);
    border-radius: 0;
    position: relative;
    left: -15px;
    top: 2px;
}

.wpcf7-list-item-label {
    position: relative;
    left: -5px;
    font-size: 1rem;
    text-transform: initial;
}

.wpcf7-list-item {
    margin: 0;
}

.wpcf7-acceptance span label {
    display: flex;
}

.wpcf7-list-item-label a {
    border-bottom: 1px solid #b3b1b1;
}
.wpcf7-list-item-label a::after {
    content: initial;
}

.wpcf7-form-control.wpcf7-submit.has-spinner,
button {
    padding: 10px 25px;
    background-color: #fff;
    text-transform: uppercase;
    border: var(--border);
    letter-spacing: 3px;
    width: 100%;
    position: relative;
    top: 12px;
    font-size: 1rem;
    line-height: normal;
    color: var(--text-color);
    font-weight: 400;
}

.wpcf7-form-control.wpcf7-submit.has-spinner:hover,
button:hover {
    background-color: var(--text-color);
    color: #fff;
}

.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output {
    border: none;

    text-align: center;
    color: red;
    max-width: 1320px;
    margin: 0 auto 40px auto;
    font-weight: bold;
}

.wpcf7-spinner {
    display: block;
}

.wpcf7-not-valid-tip {
    color: red;
    font-size: 1rem;
    text-transform: initial;
    font-weight: bold;
    margin-top: 5px;
}

@media (max-width:767px) {
    .container-modulo {
        margin-block: 100px;
    }

    .container.modulo h2 {
        margin-block: 0;
        font-size: 1.25rem;
    }
}

input:focus,
textarea:focus,
button:focus {
    outline: 1px solid rgb(0 0 0 / 20%);
    outline-offset: 0px;
}

/* BOX CONTATTI */
.box-contatti {
    margin-block: 200px 0;
}

.box-contatti .container.modulo h2 {
    margin-block: initial;
}

.box-contatti .container.modulo h2 {
    text-transform: uppercase;
    margin-bottom: 25px;
    font-size: 1.75rem;
}

.box-contatti p {
    letter-spacing: normal;
    line-height: 1.5;
}

.box-contatti p i {
    font-size: 1.5rem;
}

.box-contatti a {
    display: inline-block;
}

/* SKIP LINK */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: transparent;
    color: #fff;
    padding: 8px 16px;
    z-index: 100;
    text-decoration: none;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

/* HP VIDEO */
.header-video {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    left: 0;
    height: calc(100vh - 80px);
}

/* Stile del video */
.header-video video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 1;
}

/* Sovrapposizione opzionale (es. per testo leggibile sopra il video) */
.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 2;
}

@media screen and (max-width: 768px) {
    .header-video {
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .header-video video {
        width: 100%;
        height: auto;
        object-fit: contain;
        transform: none;
        position: static;
    }

    .header-overlay {
        position: relative;
        z-index: 2;
    }
}

