/*
Theme Name: Portfolio
Theme URI: https://miosito.com
Author: Luca Nicelli
Author URI: https://lucanicelli.com
Description: Il tema del mio portfolio
Version: 1.0
Requires at least: 5.0
Tested up to: 5.4
Requires PHP: 7.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: portfolio
This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.
*/

/* -------------------------------------------------------------------------------- */
/* ! Reset */
/* -------------------------------------------------------------------------------- */

body,
html {
    font-size: 16px;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.m20 {
    margin: 20px 20px 0 20px;
}

.m20-rl {
    margin: 0 20px;
}

*,
*:before,
*:after {
    box-sizing: border-box;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
    margin: 0;
    padding: 0;
}

a,
.td-none {
    text-decoration: none;
}

ol,
ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

img {
    height: auto
}

.mb-1 {
    margin-bottom: 10px;
}

.mb-2 {
    margin-bottom: 20px;
}

.pt-1 {
    padding-top: 60px;
}

.reset {
    margin: 0;
    padding: 0;
}

@media (max-width: 768px) {
    body,
    html {
        font-size: 14px;
    }
}

/* -------------------------------------------------------------------------------- */
/* ! Base */
/* -------------------------------------------------------------------------------- */

body {
    background-color: #f5f5f5;
}

* {
    font-family: 'SuisseIntl', Arial, Helvetica, sans-serif;
    font-weight: 400;
    font-style: normal;
    scroll-behavior: smooth;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
a,
time,
span {
    color: #101010;
}

h1,
span.change {
    font-family: 'SuisseIntl', Arial, Helvetica, sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 10rem;
    line-height: 0.8;
    letter-spacing: -0.50rem;
}

h2,
h3 {
    font-size: 2rem;
    line-height: 1;
}

h6,
p {
    font-size: 1rem;
    line-height: 1.2;
}

.tags {
    opacity: 0.7;
}

@media (max-width: 768px) {
  h1,
  span.change {
      font-size: 4rem;
      letter-spacing: -0.1rem;
      line-height: 0.9;
  }

  h2,
  h3 {
      font-size: 1.5rem;
  }
}

a {
    text-decoration: underline;
}

.row-link a {
    text-decoration: none;
}

/* -------------------------------------------------------------------------------- */
/* ! Hover */
/* -------------------------------------------------------------------------------- */

a:hover {
    opacity: 0.5;
    transition: all 0.2s ease;
}

/* -------------------------------------------------------------------------------- */
/* ! Animation */
/* -------------------------------------------------------------------------------- */

.fade-in {
    opacity: 0;
    transform: translateY(5vh);
    transition: all 0.8s ease;
}

.fade-in.in-page {
    opacity: 1;
    transform: translateY(0vh)
}

/* -------------------------------------------------------------------------------- */
/* ! Header */
/* -------------------------------------------------------------------------------- */

.header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    position: fixed;
    left: 0;
    padding: 20px;
    z-index: 5;
}

.menu ul {
    display: flex;
}

.menu ul li {margin-left: 0.2rem;}

.header a {
    text-decoration: none;
}

[aria-current]:not([aria-current="false"]) {
    opacity: 0.5;
  }
  

/* -------------------------------------------------------------------------------- */
/* ! Footer */
/* -------------------------------------------------------------------------------- */

.pre-footer-page {
    height: 300px;
    background-color: #f5f5f5;
}

.footer {
    width: 100%;
    min-height: 220px;
    background-color: #101010;
    position: fixed;
    left: 0;
    right: 0;
    bottom: -300px;
    z-index: 2;
    padding: 30px 20px 20px 20px;
    /* border-radius: 30px 30px 0 0; */
    transition: all 0.8s ease;
}

.footer h1,
.footer h2,
.footer h3,
.footer h4,
.footer h5,
.footer h6,
.footer p,
.footer a,
.footer span,
.single-content h1,
.single-content h2,
.single-content h3,
.single-content h4,
.single-content h5,
.single-content h6,
.single-content a,
.single-content span {
    color: #f5f5f5;
}

.open {
    bottom: 0;
}

.footer-container {
    display: flex;
    gap: 2em;
}

.footer-box-1 {
    flex-basis: 60%;
    display: flex;
    width: 100%;
}

.footer-box-2 {
    padding-top: 60px;
    flex-basis: 40%;
}

.footer-box-1 h3 {
    width: 100%;
} 

.footer-box-1 span {
    padding-top: 60px;
} 

.credits {
    text-align: right;
    font-size: 12px;
}

.no-click{
    pointer-events: none;
}

.footer-container .arrow-big {
    display: none;
}

@media (max-width: 768px) {
  .footer-container .arrow-big{
      display: none;
  }
}

/* -------------------------------------------------------------------------------- */
/* ! Homepage */
/* -------------------------------------------------------------------------------- */

main .wp-block-group__inner-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 60px 0 60px 0;
}

.arrow-big {
    font-size: 3rem;
    animation-name: arrow;
    animation-duration: 3s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-out;
}

@keyframes arrow {
    0% { transform: translate(0,  0px);
        opacity: 1; }
    50%  { transform: translate(0, 20px);
        opacity: 0.5;}
    100%   { transform: translate(0, -0px);
        opacity: 1;}   
}

.arrow-big a {
    text-decoration: none;
}

.arrow-projects {
    display: flex;
    width: 100%;
}

.arrow-projects a {
    width: 100%;
    text-align: right;
}

.row-link {
    padding: 8px 20px;
    border-top: 1px solid #101010;
}

.end-accordion {
    border-top: 1px solid #101010;
}

.row-first-element {
    width: 60%;
    color: green;
}

@media (max-width: 768px) {
    .row-title{
        flex-basis: 30% !important;
    }

    .row-columns {
        flex-basis: 70% !important;
    }

}

/* -------------------------------------------------------------------------------- */
/* ! About me */
/* -------------------------------------------------------------------------------- */

.width-80 {
    width: 80%;
}

.accordion-preview {
    border-top: 1px solid #101010;
    padding: 8px 20px;
    display: flex;
    flex-wrap: nowrap;
    gap: 2em;
}

.accordion-title {
    flex-basis: 60%;
}

.accordion-columns {
    flex-basis: 40%;
    display: flex;
    align-content: space-between;
    justify-content: space-between;
    height: 100%;
}

.accordion-column-1 {
    flex-basis: 45%;
}

.accordion-column-2 {
    flex-basis: 45%;
}

.accordion-column-3 {
    flex-basis: 1%;
}

.arrow-accordion {
    width: 100%;
    text-align: right;
}

.last-accordion {
    border-bottom: 1px solid #101010;
}

.accordion:hover {
    cursor: pointer;
}

.accordion-content {
    padding: 0px 20px 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in;
}

.accordion-content p {
    width: 60%;
    margin-bottom: 10px;
}

.accordion.active .accordion-content {
    max-height: 300px;
    animation: fade 1s ease-in;
}

.arrow-accordion {
    width: 16px;
    height: 100%;
}

.accordion .arrow-accordion {
    transform: rotate(0);
    transition: transform 0.5s ease-in;
}

.accordion.active .arrow-accordion {
    transform: rotate(180deg);
}

@keyframes fade {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.casella-accordion.active .arrow-accordion {
    transform: rotate(180deg);
    transition: transform 0.3s ease-in;
}

@media (max-width: 768px) {

    .accordion-title{
        flex-basis: 30% !important;
    }

    .accordion-columns {
        flex-basis: 70% !important;
    }

}


/* -------------------------------------------------------------------------------- */
/* ! Single */
/* -------------------------------------------------------------------------------- */  

.single-preview {
    display: block;
    width: 100%;
    /* position: fixed; 
    z-index: -1; */
}

.single-preview a {
    text-decoration: none;
}

.single-intro {
    display: flex;
    height: auto;
    padding: 40px 0 20px 0;
}

.single-intro h2 {
    color: #101010;
    font-family: 'SuisseIntl', Arial, Helvetica, sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 3em;
    line-height: 0.9;
}

.single-intro p {
    font-size: 1.2rem;
}

.arrow-single {
    margin-left: auto;
    margin-top: auto;
    height: 100%;
    font-size: 2rem;
}

.single-intro-info {
    display: block;
    width: 100%;
}

.single-round-info {
    display: flex;
    margin-bottom: 6px;
    margin-left: -6px;
}

.round-info {
    padding: 4px 10px;
    margin: 5px 3px;
    border: 1px solid #101010;
    border-radius: 0.8rem;
    width: fit-content;
    height: 100%;
}

.project-info-title {
    opacity: 0.5;
    height: auto;
}

.opacity-05 {
    opacity: 0.5;
}

.padding-project-img {
    margin-bottom: 0.5em;
}

.padding-project-single {
    margin-bottom: 0.2em;
}

.image-offset-50 {
    padding-top: 50px;
}

.image-offset-100 {
    padding-top: 100px;
}

.image-offset-200 {
    padding-top: 200px;
}

.image-offset-50 {
    padding-top: 50px;
}

.single-cover {
    margin: 0;
    padding: 0;
    height: 75vh;
    width: 100%;
    object-fit: cover;
}

.slide-effect {
    height: 0;
}

.single-content {
    background-color: #f5f5f5;
    padding: 30px 20px 20px 20px;
    /* box-shadow: 10px 10px 30px #101010; */
}

.single-content p {
    width: 60%;
    font-size: 1.2rem;
    color: #101010;
}

.project-end {
    background-color: #f5f5f5;
    padding: 30px 20px 300px 20px;
    /* border-radius: 30px 30px 0 0; */
    width: 100%;
}

.project-info {
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 1%;
    margin-bottom: 10px;
}

.project-nav-buttons {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.open {
    bottom: 0;
}

.project-info div {
    flex-basis: 19%;
    margin-bottom: 15px;
}

@media (max-width: 768px) {
    .project-end {
        min-height: 500px;
    }

    .project-info {
        gap: 2%;
    }

    .project-info div {
        flex-basis: 30%;
    }

    .single-content p {
        width: 100%;
    }

    .wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image) {
        width: 100%;
    }

    .video-responsive video {
        height: 300px;
        object-fit: cover;
    }
  }

/* -------------------------------------------------------------------------------- */
/* ! Progetti */
/* -------------------------------------------------------------------------------- */

.project-container {
    display: flex;
    flex-wrap: wrap;
    margin: 10px 13px;
    height: 100%;
}

.single-project {
    flex-basis: 33.3%;
    padding: 7px;
    height: 100%;
}

.img-res {
    width: 100%;
    height: 60%;
    object-fit: cover;
}

.single-project a {
    text-decoration: none;
}

.category-list {
    margin: 20px;
}

.category-list li,
.category-list li ul {
    display: flex;
}

.category-list a {
    text-decoration: none;
}

.category-list a:first-child {
    padding: 4px 10px;
    margin: 3px 3px;
    border: 1px solid #101010;
    border-radius: 0.8rem;
    width: fit-content;
}

@media (max-width: 768px) {
    .single-project {
        flex-basis: 50%;
    }
}

@media (max-width: 528px) {
    .single-project {
        flex-basis: 100%;
    }
}

/* -------------------------------------------------------------------------------- */
/* ! Cose da togliere dopo */
/* -------------------------------------------------------------------------------- */

/* { box-shadow: 0 0 1px 1px red inset; }