/*
Theme Name: crealser
Author: Riccardo Rizzini
Text Domain: crealser
*/


/* Regular */
@font-face {
    font-family: 'Eurostile LT Std';
    src: url(./font/EurostileLTStd.otf) format('opentype');
    font-weight: 400;
    font-style: normal;
}

/* Bold */
@font-face {
    font-family: 'Eurostile LT Std';
    src: url(./font/EurostileLTStd-Bold.otf) format('opentype');
    font-weight: 700;
    font-style: normal;
}

/* Italic */
@font-face {
    font-family: 'Eurostile LT Std';
    src: url(./font/EurostileLTStd-Oblique.otf) format('opentype');
    font-weight: 400;
    font-style: italic;
}

body {
    font-family: 'Eurostile LT Std', sans-serif;
}

:root {
    --color1: 9, 72, 143;
    /* --color2: #09488f; */
    --color2: 227, 6, 19;
    /* --color2: #e30613; */
    --color3: 246, 246, 246;
    /* --color3: #f6f6f6; */
    --bs-bg-opacity: 1
}

@media (max-width:575px) {
    .fs-65{
        font-size: 45px !important;
    }
    .fs-45 {
        font-size: 30px !important;
    }
    .fs-36 {
        font-size: 25px !important;
    }
    .wp-block-media-text__media{
        text-align: center;
    }
    .wp-block-media-text__content{
        margin-top: 20px;
    }
}
@media (max-width:991px) {
    .serviceHover {
        opacity: 1 !important;
    }
}


.color1 {
    color: rgba(var(--color1));
}

.bg-color1 {
    background-color: rgba(var(--color1), var(--bs-bg-opacity)) !important;
}

.color2 {
    color: rgba(var(--color2));
}

.bg-color2 {
    background-color: rgba(var(--color2), var(--bs-bg-opacity)) !important;
}

.color3 {
    color: rgba(var(--color3));
}

.bg-color3 {
    background-color: rgba(var(--color3), var(--bs-bg-opacity)) !important;
}

.color4 {
    color: rgba(var(--color4));
}

.bg-color4 {
    background-color: rgba(var(--color4), var(--bs-bg-opacity)) !important;
}

.bg-color5 {
    background-color: rgba(var(--color5), var(--bs-bg-opacity)) !important;
}

.max-wrapper {
    max-width: 1640px;
    padding-left: 20px;
    padding-right: 20px;
    margin: auto;
}

.wrapper {
    max-width: 1240px;
    padding-left: 20px;
    padding-right: 20px;
    margin: auto;
}

.separator {
    clip-path: polygon(50% 0%, 101% 101%, 50% 101%, 0% 101%);
    height: 100px;
}

.boxed-separator{
    width: 8px;
    height: 180px;
    background: rgba(var(--color2));
    opacity: 1;
}

.customButton {
    border: solid white 2px;
    color: white;
    padding: 10px 40px;
    font-size: 18px;
    font-weight: bold;
}

.customButton.bg-color1:hover {
    background-color: rgba(var(--color2)) !important;
}

.customButton.bg-color2:hover {
    background-color: rgba(var(--color1)) !important;
}

p {
    font-size: 16px
}

.w-fit {
    width: fit-content;
}

.h-fit {
    height: fit-content;
}

.t-none {
    text-decoration: none;
}

.v-center {
    top: 50%;
    transform: translateY(-50%);
}

.fs-65 {
    font-size: 65px;
}
.fs-45 {
    font-size: 45px;
}

.fs-42 {
    font-size: 42px;
}

.fs-36 {
    font-size: 36px;
}
.fs-30 {
    font-size: 30px;
}

.fs-24 {
    font-size: 24px;
}

.fs-22 {
    font-size: 22px;
}

.fs-20 {
    font-size: 20px;
}

.fs-14 {
    font-size: 14px;
}

.fs-12 {
    font-size: 12px;
}

/* HEADER */

#header {
    position: fixed;
    width: 100%;
    left: 0;
    background-color: transparent;
    z-index: 1000;
    transition: 0.2s;
    color: white;
}

.internal-page-header #menu-menu-pagine-1 {
    color: rgb(var(--color1)) !important;
}
#menu-menu-pagine-1 li:hover, #menu-menu-pagine-1 .current-menu-item{
    background: rgb(var(--color1));
    color: white;
    
}

#logo {
    transition: 0.2s;
}

/* menu header */
.menu-header {
    display: flex;
    width: fit-content;
    padding: 0;
    margin: 0;
}

.menu-header li {
    list-style: none;
    position: relative;
    padding: 0 15px;
}

.menu-header li:has(.sub-menu) a {
    pointer-events: none;
}

.menu-header li .sub-menu a {
    pointer-events: all !important;
}

.menu-header li a {
    color: inherit;
    text-decoration: none;
    font-size: 15px;
}

.menu-header li:hover .sub-menu {
    visibility: visible;
    transition: 0.2s;
}

.menu-header li .sub-menu {
    background: rgba(var(--color1)) !important;
    position: absolute;
    width: 240px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    overflow: hidden;
    margin-top: 10px;
    padding: 0px;
    visibility: hidden;
    transition: 0.2s;
}

.menu-header li .sub-menu li {
    padding: 10px 20px;
}

.menu-header li .sub-menu li:hover {
    background-color: white;
    color: rgba(var(--color1));
    font-weight: bold;
    cursor: pointer;
}

/* menu mobile*/
.sidenav {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 1;
    top: 0;
    left: 0;
    background-color: rgba(var(--color1), var(--bs-bg-opacity));
    overflow-x: hidden;
    transition: 0.5s;
}

.sidenav ul {
    list-style-type: none;
    text-underline-position: under;
    text-decoration: 2px;
    padding-left: 0;
}


.sidenav li a {
    text-decoration: none;
    font-size: 15px;
    color: white;
    display: block;
    padding: 5px;
    transition: 0.2s;
    padding-left: 1rem;
    text-transform: uppercase;
}

.sidenav a {
    font-size: 15px;
    color: white;
    display: block;
    padding-bottom: 0;
    transition: 0.2s;
}

.sidenav .sub-menu {
    padding-left: 35px;
}


/* FINE HEADER */

/* FRONT PAGE */
.front-video {
    min-height: 100vh;
    object-fit: cover;
}

.front-title {
    
    font-weight: bold;
}
.text-shadow{
    text-shadow: 2px 2px 2px rgb(0 0 0 / 65%);
}
.service {
    cursor: pointer;
}

.service-box {
    position: relative;
    overflow: hidden;
}

.serviceBlock {
    transition: transform 0.3s ease-in-out;
    z-index: 1;
}

.serviceHover {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    z-index: 2;
    transform: translateY(100%);
    background: rgba(0, 0, 0, 0.8); /* Sfondo scuro trasparente */
}

.service-box:hover .serviceHover {
    opacity: 1;
    transform: translateY(0);
}

.service-box:hover .serviceBlock {
    transform: translateY(100%);
}



.background2 {
    background-image: url(./images/background2.png);
    background-size: cover;
    background-position: center bottom;
}

/* carosello */

.carousel {
    position: relative;
    width: 75%;
    /* Larghezza del carosello */
    overflow: hidden;
    /* Nasconde l'overflow */
}

.carousel-slides {
    display: flex;
    transition: transform 0.5s ease;
    /* Transizione fluida */
}

.carousel-slide {
    min-width: 100%;
    /* Ogni slide occupa l'intero carosello */
}

.carousel img {
    width: 100%;
    /* L'immagine occupa l'intera larghezza del carosello */
    height: auto;
    /* Mantenere le proporzioni */
}

.carousel-control {
    font-size: 70px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
}


.carousel-control:hover {
    color: rgba(var(--color2)) !important;
    /* Cambia colore al passaggio del mouse */
}

/* fine carosello */

.card-img {
    height: 250px;
    /* aspect-ratio: 1/1; */
    overflow: hidden;
}

.card-img img {
    transition: 0.3s;
}

.card-img:hover img {
    scale: 1.3;
    transition: 0.3s;
}

.card-title, .card-text {
    -webkit-line-clamp: 2;
    line-clamp: 2;
    color: black;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
}

.card-text {
    min-height: calc(16px * 1.5 * 2);
}

/* FINE FRONT PAGE */

/* FOOTER */
#footer {
    background-color: #082a4f;
}

.menu-footer {
    padding-left: 0;
}

.menu-footer li {
    list-style: none;
    margin-bottom: 8px;
}

.menu-footer li a {
    text-decoration: none;
    color: white;
    text-transform: uppercase;
}

.menu-footer .sub-menu {
    display: none;
}

/* FINE FOOTER */

/* PAGE */
#breadcrumbs {
    font-size: 14px;
}

#breadcrumbs a, #breadcrumbs span {
    color: #555555;
    text-decoration: none;
    text-transform: capitalize;
}

.page-thumbnail {
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
}

/* FINE PAGE */
/* SIDEBAR */
#sidebar {
    position: sticky;
    top: 100px;
}

#sidebar ul.wp-block-categories-list {
    padding-left: 0 !important;
}

#sidebar li, .sidebar li {
    list-style: none;

}

#sidebar ul.wp-block-categories-list li a {
    color: grey;
    text-transform: capitalize;
    text-decoration: none;
    pointer-events: none;
    cursor: cell;
}

#sidebar .wp-block-search__input, .sidebar .wp-block-search__input {
    height: max-content;
    padding-top: 2px;
    padding-bottom: 2px;
}

#sidebar .wp-block-search__button, .sidebar .wp-block-search__button {
    margin-left: 0 !important;
    height: min-content;
    padding: 3px 8px;
    font-size: 15px;
    background-color: #f68e00;
}

#sidebar .wp-block-tag-cloud a {
    font-size: 12px !important;
    color: gray;
    font-weight: bold;
    text-transform: uppercase;
    background: #f2f2f2;
    padding: 5px 9px;
    text-decoration: none;
    pointer-events: none;
    cursor: cell;
}

#sidebar .wp-block-latest-posts__post-title {
    font-weight: bold;
    color: black;
    text-decoration: none;
}


/* FINE SIDEBAR */

/* BLOG */
.pagination-separator {
    background: rgba(var(--color1));
    color: transparent;
    height: 3px;
    opacity: 1;
}

.pagination {
    gap: 5px;
}

.pagination .current {
    border: solid rgba(var(--color1));
}

.pagination .page-numbers {

    width: 30px;
    aspect-ratio: 1 / 1;
    text-align: center;
    color: rgba(var(--color1));
    text-decoration: none;
}

/* FINE BLOG */

.wp-block-image img, .wp-block-media-text__media img {
    max-width: 100%;
}
.wp-block-media-text__media img{
    width: auto;
}

 figure.alignright {float:right; margin:0 0 1em 1em}
 figure.alignleft {float:left; margin:0 1em 1em 0}
 figure.aligncenter {display: block; margin-left: auto; margin-right: auto}
a figure.alignright {float:right; margin:0 0 1em 1em}
a figure.alignleft {float:left; margin:0 1em 1em 0}
a figure.aligncenter {display: block; margin-left: auto; margin-right: auto}
.wpcf7-form-control-wrap input:not([type=checkbox]), .wpcf7-form-control-wrap textarea {
    width: 100%;
    border: solid grey 1px;
    border-radius: 4px;
}

.wpcf7-form label {
    color: grey;
}

.wpcf7-spinner {
    float: left;
}

.wpcf7-list-item {
    margin-left: 0 !important;
}

/* modifica classe globale per reppresentate */
.wp-block-group.border.border-light {
    border-color: #e1e1e1 !important;
}