

* {
   box-sizing: border-box;
  font-family: "Poiret One", sans-serif;
  font-weight: 400;
 
    
}


html,
body {
    width: 100%;
    height: 100%;
}

body {
    margin: 0;
    background: #000;
    overflow-x: hidden;
}


/* contenitore slideshow */

.hero-slideshow{
  position:fixed;
  inset:0;
  overflow:hidden;
  z-index:0;
}

/* slide */

.slide{
  position:absolute;
  inset:0;

  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;

  opacity:0;
  transform:scale(1);

  animation:
    fade 24s infinite,
    zoom 24s infinite;
}

/* immagini */

.s1{
  background-image:url("../photo/0x0/01.jpg");
  animation-delay:0s;
}

.s2{
  background-image:url("../photo/0x0/02.jpg");
  animation-delay:8s;
}

.s3{
  background-image:url("../photo/0x0/03.jpg");
  animation-delay:16s;
}

/* fading */

@keyframes fade{

  0%   {opacity:0;}
  8%   {opacity:1;}
  30%  {opacity:1;}
  38%  {opacity:0;}
  100% {opacity:0;}

}

/* zoom lento */

@keyframes zoom{

  0%   {transform:scale(1);}
  100% {transform:scale(1.15);}

}

/* overlay scuro */

.slide::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(
    rgba(0,0,0,0.5),
    rgba(0,0,0,0.1)
  );
}

/* contenuto sopra */

.hero-content {

    position: relative;
    z-index: 1;
    min-height: 100vh;
    /*height: 100vh; */
    display: flex;
    align-items: center;
    justify-content: flex-start;
    color: white;
    font-size: 1rem;
}

.poiret-one-regular {
  font-family: "Poiret One", sans-serif;
  font-weight: 400;
  font-style: normal;
}



/* HAMBURGER */
/* HAMBURGER */

#menu-toggle {
    position: fixed;
    top: 44px;
    left: 44px;

    width: 46px;
    height: 46px;

    border: 0;
    border-radius: 50%;
    background: rgba(41,48,26,.80);

    cursor: pointer;
    z-index: 20;
}

#menu-toggle span {
    display: block;
    width: 32px;
    height: 2px;

    margin: 5px auto;

    background: #fff;
    border-radius: 2px;

    transition: .3s;
}


/* MENU LATERALE */

#menu {
    position: fixed;

    top: 0px;
    left: 0;

    width: 260px;
    height: 100vh;

    padding: 100px 30px 30px 30px;

    background: rgba(41,48,26,.94);

    transform: translateX(-100%);
    transition: transform .35s ease;

    z-index: 15;
}

#menu.open {
    transform: translateX(0);
}

#menu a {
    display: block;

    margin-bottom: 18px;

    color: #fff;
    text-decoration: none;

    font-family: "Nunito Sans", sans-serif;
    
    font-size: clamp(1.15rem, 5vw, 1.55rem);
    letter-spacing: .03em;
}


.submenu {
    display: none;

    margin-top: -5px;
    margin-bottom: 18px;
    padding-left: 18px;

    border-left: 1px solid rgba(255,255,255,.3);
}

.submenu.open {
    display: block;
}

.submenu a {
    font-size: .9em;
    opacity: .8;
    margin-bottom: 10px;
}

.submenu a:hover {
    opacity: 1;
}

.submenu-arrow {
    display: inline-block;
    margin-left: 6px;
    transition: transform .25s ease;
}

.submenu-toggle.open .submenu-arrow {
    transform: rotate(90deg);
}


#menu-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

#menu-toggle.open span:nth-child(2) {
    opacity: 0;
}

#menu-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}



/* TESTO PAGINA */

#page-content {
    position: absolute;

    top: 22vh;
    left: 14vw;

    width: 620px;
    max-width: calc(100vw - 180px);

    color: #fff;

    text-shadow: 0 2px 8px rgba(0,0,0,.7);
     
     
    padding: 25px 30px;

    background: rgba(0,0,0,.28);

    box-shadow:
        0 12px 30px rgba(0,0,0,.45);

    border-radius: 8px;
     
}
  
#page-content h1 {
    margin: 0 0 20px 0;

    font-size: clamp(2.4rem, 5vw, 4.8rem);
    font-weight: 400;
}

#page-content p {
    margin: 0;

    font-size: 1.5rem;
    line-height: 1.75;
}


/*
.internal-page {
    position: relative;
    z-index: 2;

    width: calc(100% - 80px);
    max-width: 1100px;

    margin: 0 auto;
    padding: 110px 0 80px 0;
}

.internal-page article {
    padding: 50px 60px;

    background: rgba(28, 34, 21, .92);

    color: #fff;

    border-radius: 10px;

    box-shadow: 0 20px 60px rgba(0,0,0,.45);
}

.internal-page h1 {
    margin: 0 0 10px 0;

    font-size: 3rem;
    font-weight: 400;
}

.internal-page h2 {
    margin-top: 50px;
    margin-bottom: 15px;

    font-size: 1.8rem;
    font-weight: 500;
}

.internal-page h3 {
    margin-top: 35px;

    font-size: 1.3rem;
    font-weight: 500;
}

.internal-page p {
    max-width: 850px;

    font-size: 1.05rem;
    line-height: 1.8;
}


.internal-page figure {
    margin: 40px 0;
}

.internal-page figure img {
    display: block;
    width: 100%;
    height: auto;

    border-radius: 6px;
}

.internal-page figcaption {
    margin-top: 8px;

    font-size: .9rem;
    opacity: .7;
}
*/


body.internal {
    margin: 0;
    background: #f6f6f2;
    color: #222;
    font-family: "Nunito Sans", sans-serif;
    padding-bottom: 34px;
}

.internal-header {
    position: sticky;
    top: 0;
    z-index: 10;

    height: 72px;

    background: rgba(255,255,255,.96);
    border-bottom: 1px solid #ddd;
}

/*
.internal-header {
    height: 68px;

    background-image:
        linear-gradient(
            rgba(41,48,26,.35),
            rgba(41,48,26,.35)
        ),
        url("/res/photo/0x0/03.jpg");

    background-size: cover;
    background-position: center 45%;
    
}
*/

.internal-page {
    max-width: 980px;
    margin: 0 auto;
    padding: 70px 40px 100px 40px;
}

.internal-page h1 {
    margin: 0 0 12px 0;

    font-size: 3rem;
    font-weight: 400;
    color: #29301A;
}

.internal-page h2 {
    margin: 55px 0 18px 0;

    font-size: 1.8rem;
    font-weight: 500;
    color: #29301A;
}

.internal-page p {
    max-width: 780px;

    font-size: 1.08rem;
    line-height: 1.85;

    margin-bottom: 22px;
}

.internal-page img {
    display: block;

    max-width: 100%;
    height: auto;

    margin: 35px 0;

    border-radius: 4px;
}

.internal-page hr {
    border: 0;
    height: 1px;
    background: #d9ddd1;

    margin: 50px 0;
}




.photo-row {
    font-size: 0;
}

.photo-row figure {
    display: inline-block;
    width: 49%;
    margin: 0 2% 30px 0;

    vertical-align: top;
    font-size: 1rem;
}

.photo-row figure:nth-child(2n) {
    margin-right: 0;
}

.photo-row img {
    display: block;
    width: 100%;
    height: auto;
}

.photo-row figcaption {
    padding-top: 8px;

    color: #666;
    font-size: .9rem;
    line-height: 1.4;
}

.photo-row .caption {
    display: block;
}

.photo-row .author {
    display: block;
    margin-top: 3px;

    font-size: .82rem;
    color: #888;
}


.photo-row img:first-child {
    margin-right: 2%;
}



#footer {
    position: fixed;
    left: 0;
    bottom: 0;

    width: 100%;
    height: 34px;

    line-height: 34px;

    text-align: center;

    background: rgba(255,255,255,.96);
    border-top: 1px solid #ddd;

    color: #29301A;

    font-size: .85rem;

    z-index: 20;
}


/* TABLET */

@media (max-width: 900px) {

    #page-content {
        top: 20vh;
        left: 10vw;

        width: 70vw;
        max-width: none;
    }

}



@media (max-width: 700px) {

    .internal-page {
        width: auto;
        margin: 0 12px;

        padding-top: 85px;
        padding-bottom: 30px;
    }

    .internal-page article {
        padding: 28px 22px;
        border-radius: 6px;
    }

    .internal-page h1 {
        font-size: 2.1rem;
    }

    .internal-page h2 {
        font-size: 1.5rem;
    }

    .internal-page p {
        font-size: 1rem;
        line-height: 1.65;
    }

}


/* TELEFONO */

@media (max-width: 600px) {

    .slide {
        background-position: center center;
    }


    .s1 {
        background-position: 60% center;
    }

    .s2 {
        background-position: 45% center;
    }
    #menu-toggle {
        top: 16px;
        left: 16px;

        width: 42px;
        height: 42px;
    }

    #menu {
        width: 75vw;
        max-width: 280px;

        padding-top: 85px;
    }

    #page-content {
        position: relative;

        top: auto;
        left: auto;

        width: auto;
        max-width: none;

        margin: 0 24px;
        padding-top: 22vh;
        padding-bottom: 40px;
    }

    #page-content h1 {
        font-size: 2.3rem;
    }

    #page-content p {
        font-size: 1rem;
        line-height: 1.6;
    }

}

@media (max-width: 600px) {

    #page-content {
        position: relative;
        top: auto;
        left: auto;

        margin: 0 24px;
        padding-top: 22vh;
    }
    
    
    .photo-row img {
        display: block;
        width: 100%;
        margin: 0 0 20px 0;
    }
    
    .photo-row figure {
        display: block;

        width: 100%;
        margin: 0 0 25px 0;
    }
    

}


