:root {
    --primary-color: #d9cb5a;
    --primary-link: #43811D;
    --primary-color-op: rgba(111,177,71,0.2);
    --dark: #454545;
    --dark-1: #404040;
    --bg-dark-1: #131419;
    --white: #FFF;
    --light: rgb(197,197,197);
    --black: #000;
    --background: #15181d;

    --primary-font: 'Inter', sans-serif;
    --secondary-font: 'Manrope', sans-serif;
    --blog: "Montserrat", sans-serif;

    --weight-thiner: 200;
    --weight-thin: 300;
    --weight-mid-thin: 400;
    --weight-normal: 500;
    --weight-medium: 600;
    --weight-semi-bold: 700;
    --weight-bold: 800;

    --size-base: 1rem;
}

a, a:hover, a:focus, a:active, a:visited { text-decoration: none; color: inherit; outline: none; }
nav ul { list-style: none; }
body { font-family: var(--primary-font); background-color: var(--background); color: var(--white); overflow-x: hidden; }
body.no-scroll { overflow-y: hidden; }
body::-webkit-scrollbar { width: 6px; transition: 0.3s; }
body::-webkit-scrollbar-thumb { background-color: #b3b3b3; border-radius: 50px; }

.single a { color: #d9cb5a; }
body.blog main { max-width: 1140px; margin: 0 auto; font-family: var(--blog); font-weight: var(--weight-mid-thin) !important;}
body.blog main#primary { margin-bottom: 100px; display: flex; justify-content: space-between; flex-wrap: wrap;}
body.blog main header h1 { font-family: var(--blog); font-weight: var(--weight-mid-thin) !important; font-size: 4.8rem;}
article { width: 49%; margin-bottom: 1.5rem;}
article .post-thumbnail { display: flex; align-items: end; border-radius: 30px; background-size: cover; position: relative; background-repeat: no-repeat; min-height: 400px; color: var(--white); font-family: var(--blog) !important; background-position: bottom;}
article .post-thumbnail .post-container { display: flex; align-items: end; justify-content: space-between; padding: 5px 25px 20px 15px; }
article .post-thumbnail:before { content: ""; background-color: rgb(0 0 0 / 60%); position: absolute; width: 100%; height: 100%; border-radius: 30px; }
article .post-thumbnail h2 { max-width: 75%; justify-content: space-between; position: relative; font-size: 2.5rem; font-family: var(--blog) !important; font-weight: var(--weight-thiner);}
article .post-thumbnail a { border-radius: 10px; font-weight: 600; padding: 5px 15px; transition: .2s; background-color: var(--primary-link); position: relative; background: linear-gradient(to bottom, #e7f08a 0%, #c4944b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    font-weight: bold;}
article .post-thumbnail a:hover { background-color: var(--white); color: var(--primary-link); transition: .2s; background: linear-gradient(to bottom, #e7f08a 0%, #c4944b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    font-weight: bold;}

.single-container { text-align: center;}
.single-container .entry-title { position: absolute; top: 0;color: #fff; font-family: var(--blog); font-weight: var(--weight-mid-thin); font-size: 3rem; width: 95%; right: 0; left: 0; margin: 15px auto 10px; top: 45%; transform: translateY(-45%);}
.single-container .post-thumbnail { border-radius: 40px; position: relative; }
.single-container .post-thumbnail:before { content:""; border-radius: 40px; display: block; background-color: rgb(0 0 0 / 60%); width: 100%; height: 100%; position: absolute; }
.single-container .post-thumbnail img { border-radius: 40px; display: block; min-width: 100%; max-height: 400px; object-fit: cover;}
.entry-content .share-buttons { border-top: 1px solid; padding-top: 20px; text-align: right; }
.entry-content .share-buttons .share { margin: 0 10px; }
.entry-content .share-buttons svg { width: 2.3rem; height: 2.3rem;}
.entry-content .share-buttons svg path { fill: #fff;}
.single-post .entry-content { padding: 15px 2rem; max-width: 77rem; margin: 68px auto 68px; border-radius: 40px; color: var(--white); font-family: var(--blog); background-color: var(--bg-dark-1);}

/* Stile per la data del post singolo */
.post-meta-date{display:flex;align-items:center;gap:0.5rem;margin-top:1rem;justify-content:center;}
.post-meta-date time{ margin-bottom: 10px; font-style:normal;padding:0.5rem 1rem;background:linear-gradient(45deg,#6FB147,#5a9137);color:white;border-radius:12px;font-size:0.9rem;font-weight:600;letter-spacing:0.5px;box-shadow:0 4px 12px rgba(111,177,71,0.3);}

/* Responsive per mobile */
@media (max-width:768px){.post-meta-date time{padding:0.4rem 0.8rem;font-size:0.8rem;}}

.container { max-width: 77rem; margin: 0 auto; padding: 0 16px; }

.entry-content { margin-top: 10rem;}
.title-sans { margin: 0 0 1.5rem 0; letter-spacing: 0.25em; font-size: 0.875rem; font-family: var(--secondary-font); text-transform: uppercase; font-weight: var(--weight-mid-thin);}
.title-post { margin: 0; line-height: 1.1; font-weight: var(--weight-semi-bold); font-size: 4.25rem;}
#mouse-circle{position:fixed;box-shadow:0 0 0 1px rgba(255, 255, 255, 0.2);z-index:99999;width:20px;height:20px;background-color:rgba(255, 255, 255, 0.2);border-radius:50%;pointer-events:none;transform:translate(-50%,-50%);transition:width 0.2s,height 0.2s;will-change:width,height,transform}

.pointer:hover #mouse-circle,
.close-btn:hover #mouse-circle,
a:hover #mouse-circle { width:100px; height:100px }
.upButton { position: fixed; bottom: 3rem; z-index: 999; right: 3rem; cursor: pointer; opacity: 0; transition: opacity 0.4s ease-in-out; background-color: var(--bg-dark-1); border-radius: 50%; padding: 32px;}
.upButton.visible { opacity: 1; }
.upButton svg { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.upButton svg path { fill: var(--white); }
main#primary:not(.websites):not(.project-page) { margin-top: 6rem; }
main#primary:not(.nofooter) { min-height: calc(100vh - 300px);}
.pointer { cursor: pointer;}

.container-fluid { width: 100%; margin: 0 auto; padding: 0 1.5rem; position: relative; }
a.btn { text-transform: lowercase; letter-spacing: 0.03em; transition: .2s; background-color: transparent; border: 0.0625rem solid #121212; text-align: center; border-radius: 3.75rem; min-width: 8.25rem; padding: 1.125rem 1.875rem; line-height: .8; font-weight: var(--weight-normal);
background: linear-gradient(135deg, #e5d16f 0%, #a46d2a 100%);
    color: #1a1a1a;
    border: none;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0px 4px 15px rgba(196, 148, 75, 0.3);}
a.btn:hover { background: #121212; color: var(--primary-color); box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4); transition: .2s; }
a.btn-dark { border: 0.0625rem solid #121212; background-color: #121212; color: #fff; }
a.btn-dark:hover { background-color: #fff; color: #121212; transition: .2s; }

header.light a { color: var(--white);}
header#masthead { position: absolute; top: 0; left: 0; right: 0; z-index: 2000; height: 6rem; will-change: height, transform, background-color; transition: height 0.4s cubic-bezier(0.77, 0, 0.175, 1) 50ms, transform 0.3s cubic-bezier(0.39, 0.575, 0.565, 1); transition: .2s; }
header#masthead .header-navigation ul { margin: 0; font-weight: var(--weight-bold); color: var(--primary-color); font-size: 20px; display: flex; }
header#masthead .header-navigation ul li { margin-left: 20px; }
/* header#masthead .header-navigation ul a { color: #5e953c; } */
header#masthead .header-navigation ul a { background: linear-gradient(to bottom, #e7f08a 0%, #c4944b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    font-weight: bold; }
header#masthead.scrolled { position: fixed; background-color: #15181df2; box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.08); opacity: 0.98; height: 4.25rem; transition: .2s; }

header#masthead.scrollable.scrolled {background-color: transparent; }
.header__bar { position: absolute; z-index: -1; display: flex; align-items: center; justify-content: space-between; width: 100%; height: 100%; padding: 0 3rem; }
header#masthead .site-branding img { width: 5rem; transition: .2s;}
header#masthead.hide .site-branding img {  width: 3.5rem; transition: 0.5s; }
body:not(.blog):not(.single) header#masthead.hide .site-branding img { opacity: 0; width: 0; transition: 0.5s; }
header#masthead.scrolled .site-branding img { width: 3.5rem; transition: .2s;}
#page { overflow-x: hidden;}

.head_logo { display: flex; justify-content: center;}
.head_logo img { width: 15vw;}

.viewport { position: relative; height: 100vh; display: flex; align-items: center; max-width: 100vw; }
.viewport .container-fluid { z-index: 10; }
.viewport .social_links { position: absolute; z-index: 50; bottom: 3rem; left: 3rem; }
.viewport .social_links svg { height: 16px; }
.viewport .social_links svg:hover path { fill: var(--primary-color); }
.viewport .bottom_btn { position: absolute; overflow: hidden; z-index: 50; bottom: 3rem; left: 50%; transform: translateX(-50%); width: 30px; }
@keyframes slideDown { 0% { transform: translateY(-100%); }  100% { transform: translateY(100%); }  }
.viewport .bottom_btn svg { animation: slideDown 1.5s infinite; display: block; }

.viewport-shapes__item .shape { position: absolute; border-radius: 100%;  z-index: -1; background-color: #1d2026; box-shadow: 0 0 60px rgb(21 24 29 / 80%); }
.viewport-shapes__item.item-1 .shape { width: 78.5vw; height: 78.5vw; top: -15vw; left: -30vw; }
.viewport-shapes__item.item-2 .shape,
.viewport-shapes__item.item-3 .shape { width: 44vw; height: 44vw;  }
.viewport-shapes__item.item-2 .shape { top: -24.25vw; right: -15.0625vw; }
.viewport-shapes__item.item-3 .shape { bottom: -30.9375vw; right: -20.375vw; }

.hero-banner { padding: 4.8vw 16px 0; max-width: 75%; margin: 0 auto;}
.hero-banner .hero-title { line-height: 1.05; font-size: 5.5vw; font-weight: var(--weight-bold); }
/* .hero-banner .hero-title span { color: var(--primary-color); } */
.hero-banner .hero-title .text-color {     background: linear-gradient(to bottom, #f0d08a 0%, #ffc517 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    font-weight: bold; }
.hero-banner .hero-subtitle { color: var(--white); }
.hero-banner .hero-subtitle p { margin: 2.5rem 0 0 3.5rem; max-width: 42rem; font-size: 1.25rem; line-height: 1.6; font-weight: var(--weight-mid-thin); }
.hero-banner .hero-btn { margin: 3rem 0 0 3.5rem; font-size: var(--size-base); font-weight: var(--weight-mid-thin); }
.hero-banner .hero-btn a.btn { display: inline-block; font-size: 1.125rem; padding: 1.1rem 2.75rem; line-height: 1; }
.home-viewport.viewport { height: 88vh; min-height: 560px; }

@keyframes slideInFromBottom{0%{transform:translateY(100%);opacity:0;}100%{transform:translateY(0);opacity:1;}}
.slide-in-text{animation:slideInFromBottom 1s forwards;opacity:0;}

/* 404 */
main#primary .error-404 { position: relative; min-height: calc(100vh - 300px); display: flex; align-items: center; }
main#primary .error-404 a { display: inline-block; }
main#primary .error-404 img { position: absolute; margin: 0; width: 100%; height: 100%; opacity: .15; }
main#primary .error-404 .page-content { z-index: 10; position: relative; max-width: 70%; }

/* GENERIC PAGE */
main.generic { margin: 10rem 0 7rem !important; }
main.generic ul, ol { margin: 0 0 1.5em 1em; }
main.generic .entry-content { margin-top: 2rem; }

/* MEDIA QUERY */

@media only screen 
  and (max-width: 812px) 
  and (orientation: landscape) {
    .viewport .social_links { display: none; }
    .hero-banner { max-width: 100%; }
    .upButton { bottom: 1rem; }
}

@media screen and (max-width: 1230px) {
    .container { max-width: 960px; }
    footer .container { max-width: 70rem; }
  }
  
@media screen and (max-width: 992px) {
    .hero-banner .hero-title { font-size: 8vw; }
    .hero-banner .hero-subtitle p { margin-top: 2rem;}
    .contact-page .container { padding: 0 5rem !important; }
  }
  
@media screen and (max-width: 821px) {
  .container { max-width: 760px; }
  .wp-block-columns { flex-wrap: wrap!important; }
  .wp-block-columns:not(.is-not-stacked-on-mobile)>.wp-block-column { flex-basis: 100%; }
}

@media screen and (max-width: 768px) {
    .hero-banner { max-width: 95%;}
    .hero-banner .hero-title { font-size: 10vw; }
    .hero-banner .hero-btn,
    .hero-banner .hero-subtitle p { margin-left: 0;}
    #mouse-circle { display: none;}

    .contact-page .container { max-width: 100%;}

    main.generic .container { max-width: 90%; }

    .single-container {max-width: 100%; padding: 0; margin: 0;}
    .single-container .post-thumbnail,
    .single-container .post-thumbnail:before,
    .single-container .post-thumbnail img { border-radius: 0;}
    .single-container .entry-title { font-size: 2.5rem; line-height: 1.2;}
    .single-post .entry-content { padding: 15px 0.5rem; margin: 0px auto 68px; border-radius: 0; }
  }

@media screen and (max-width: 576px) {

    .upButton { display: none;}

    #inter-menu { padding: 2rem; }
    /* #inter-menu .right-side { display: none; } */

    .viewport {overflow: hidden;}

    .hero-banner { max-width: 100%; }
    .head_logo img { width: 30vw; }

    main.generic .container { max-width: 95%; }
    main.generic ul, ol { margin: 0 0 1.5em 0.1em; }
  }

  @media screen and (max-width: 415px) {
    .viewport-shapes__item.item-1 .shape { top: -36vw;}
    .viewport .container-fluid { top: -45px}
    

    .container:not(.single-container) { padding: 0 1.5rem; }
    .title-post { font-size: 2.3rem;}

    #header-project .website-caption .website_metadata { margin-top: 4.75rem; }

    .single-container .entry-title { font-size: 1.8rem; line-height: 1.2; top: 15%; transform: translateY(-15%); }
  }