/*
Theme Name: Inoke Musei
Theme URI: https://inoke.studio
Author: Inoke s.r.l.
Author URI: https://inoke.studio
Description: Tema utilizzabile per i siti PA - Modello Musei.
Version: 1.0.0
License URI: https://www.gnu.org/licenses/gpl-3.0.en.html
Text Domain: inoke-musei
Requires at least: 7.0
Tested up to: 7.1.3
Requires PHP: 8.0
*/

/* ROOT VARIABLES */

:root {
  --lr-padding: 15px;
  --hover-transition: 250ms;
}

/* ALL ELEMENTS */

* {
  box-sizing: border-box;
}

/* HEADINGS */

h1 {
  font-size: clamp(28px, 26.6087px + 0.4348vw, 32px);
  font-weight: 700;
}

h2 {
  font-size: clamp(22.4px, 20.9159px + 0.4638vw, 26.6667px);
  font-weight: 700;
}

h3 {
  font-size: clamp(19.6px, 18.9971px + 0.1884vw, 21.3333px);
  font-weight: 700;
}

h4 {
  font-size: clamp(16.8px, 16.1507px + 0.2029vw, 18.6667px);
  font-weight: 600;
}

h5 {
  font-size: 16px;
  font-weight: 600;
}

h6 {
  font-size: 16px;
  font-weight: 600;
}

/* TEXT FORMATTING */

strong {
  font-weight: 600;
}

/* LINKS */

a {
  color: var(--colore-primario-sito);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* CONTAINER */

.container {
  width: 100%;
  max-width: var(--larghezza-contenuti);
}

/* GRIDS */

.grid {
  display: grid;
  gap: var(--lr-padding);
}

.grid.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

@media screen and (max-width: 960px) {

  .grid.grid-3,
  .grid.grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 540px) {

  .grid.grid-2,
  .grid.grid-3,
  .grid.grid-4 {
    grid-template-columns: repeat(1, 1fr);
  }
}

/* LINKS-BUTTONS */

a.link-button,
a.link-button.inverted {
  border: 1px solid var(--colore-testo-base);
  background: var(--colore-testo-base);
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 600;
  color: white;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  transition: var(--hover-transition);
}

a.link-button:hover {
  border: 1px solid var(--colore-primario-sito);
  background: var(--colore-primario-sito);
}

a.link-button.inverted {
  border: 1px solid var(--colore-testo-base);
  background: var(--colore-sfondo-sito);
  color: var(--colore-testo-base);
}

a.link-button.inverted:hover {
  border: 1px solid var(--colore-primario-sito);
  color: var(--colore-primario-sito);
}

a.link-button.external span::after {
  content: '\2197';
  margin-left: 5px;
}

a.link-button.full-width {
  width: 100%;
}

/* BODY */

body {
  font-family: "Titillium Web", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 16px;
  line-height: 1.5;
  color: var(--colore-testo-base);
  background-color: var(--colore-sfondo-sito) !important;
}

body.lock {
  overflow: hidden;
}

/* HEADER */

header {
  background-color: var(--colore-sfondo-header);
  border-bottom: 1px solid #CCC;
  position: sticky;
  top: 0;
  z-index: 10;
}

header .top,
header .center,
header .bottom {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 6px var(--lr-padding);
}

/* HEADER TOP */

header .top {
  min-height: 48px;
  color: var(--header_top_text);
  background-color: var(--header_top_bg);
}

header .top a {
  color: var(--header_top_text);
  font-size: 18px;
  line-height: 1.5;
  text-decoration: none;
  transition: all var(--hover-transition);
}

header .top a:hover {
  text-decoration: underline;
}

@media screen and (max-width: 960px) {
  header .top a {
    font-size: 16px;
  }
}

/* HEADER CENTER */

header .center {
  padding: 24px var(--lr-padding);
  transition: all 450ms;
}

header.scrolled .center {
  padding: 14px var(--lr-padding);
}

header .center .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
}

header .center .logo {
  display: flex;
  align-items: center;
  gap: 18px;
}

header .center .logo button {
  display: none;
}

header .center .logo a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 32px;
  line-height: 1.25;
  text-decoration: none;
  font-weight: 700;
  color: var(--colore-testo-base);
}

header .center .logo a img {
  width: auto;
  height: 40px;
  transition: all 450ms;
}

header.scrolled .center .logo a img {
  height: 40px;
}

header .center .logo a span.logo-text {
  transition: all 450ms;
}

header.scrolled .center .logo a span.logo-text {
  font-size: 20px;
}

header .center .logo a span.logo-text span {
  display: block;
}

header .center .logo a span.logo-text span:nth-child(2) {
  font-size: 16px;
  font-weight: 400;
  transition: all 450ms;
}

header.scrolled .center .logo a span.logo-text span:nth-child(2) {
  font-size: 14px;
}

header .center .tools {
  display: flex;
  align-items: center;
  gap: 80px;
}

header .center .tools .social {
  display: flex;
  align-items: center;
  gap: 16px;
  line-height: 1;
}

header .center .tools .social ul {
  display: flex;
  align-items: center;
  gap: 16px;
  list-style: none;
}

header .center .tools .social ul li a svg {
  fill: var(--colore-testo-base);
  transition: all var(--hover-transition);
}

header .center .tools .social ul li a:hover svg {
  fill: var(--colore-primario-sito);
}

header .center .tools .search button {
  border: none;
  background-color: transparent;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 0;
}

header .center .tools .search button svg {
  width: 40px;
  height: 40px;
}

header .center .tools .search button svg path {
  fill: var(--colore-testo-base);
  transition: all var(--hover-transition);
}

@media screen and (min-width: 961px) {
  header .center .tools .search button:hover svg path {
    fill: var(--colore-primario-sito);
  }
}

@media screen and (max-width: 960px) {

  header .center,
  header.scrolled .center {
    padding: 12px var(--lr-padding);
  }

  header .center .logo button {
    width: 20px;
    height: 14px;
    position: relative;
    border: none;
    background-color: transparent;
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 0;
  }

  header .center .logo button span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--colore-testo-base);
    position: absolute;
    transition: 350ms;
  }

  header .center .logo button span:nth-child(1) {
    top: 0;
  }

  header .center .logo button span:nth-child(2) {
    top: 6px;
  }

  header .center .logo button span:nth-child(3) {
    bottom: 0;
  }

  header .center .logo button.close span:nth-child(1) {
    top: 50%;
    transform: translate(0, -50%) rotate(225deg);
  }

  header .center .logo button.close span:nth-child(3) {
    bottom: 50%;
    transform: translate(0, 50%) rotate(-225deg);
  }

  header .center .logo button.close span:nth-child(2) {
    opacity: 0;
  }

  header .center .logo a {
    font-size: 20px;
  }

  header .center .logo a img,
  header.scrolled .center .logo a img {
    height: 30px;
  }

  header .center .logo a span.logo-text span:nth-child(2) {
    display: none;
  }

  header .center .tools .social {
    display: none;
  }

  header .center .tools .search button {
    border-radius: 50%;
    background: var(--colore-testo-base);
  }

  header .center .tools .search button span {
    display: none;
  }

  header .center .tools .search button svg path {
    fill: var(--colore-sfondo-header);
    transform: scale(1.1) translate(-5%, -5%);
  }
}

/* HEADER BOTTOM */

header .bottom {
  padding: 16px var(--lr-padding);
  transition: all 450ms;
}

header.scrolled .bottom {
  padding: 0px var(--lr-padding) 5px var(--lr-padding);
}

header .bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
}

header .bottom .container .ticket-link {
  display: none;
}

header .bottom .container .ticket-link a {
  display: block;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  background-color: var(--colore-primario-sito);
  color: white;
  padding: 12px 16px;
  transition: all var(--hover-transition);
}

header .bottom .container .ticket-link a:hover {
  display: block;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  background-color: var(--colore-testo-base);
  color: white;
  padding: 12px 16px;
  border-radius: 4px;
}

header .bottom nav ul {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

header .bottom nav ul li a {
  display: block;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-decoration: none;
  text-underline-offset: 9px;
  color: var(--colore-testo-base);
  transition: all var(--hover-transition);
}

header .bottom nav ul li a:hover {
  text-decoration: underline;
  text-underline-offset: 9px;
}

header .bottom nav ul li.current-menu-item a {
  text-decoration: underline;
  text-underline-offset: 9px;
  text-decoration-thickness: 3px;
}

@media screen and (max-width: 960px) {
  header .bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: calc(100% - 113px);
    z-index: 10;
    background: var(--colore-sfondo-sito);
    display: flex;
    align-items: start;
    pointer-events: none;
    transform: translate(0, 100%);
    transition: 350ms;
  }

  header .bottom.show {
    opacity: 1;
    pointer-events: all;
    transform: translate(0, 0);
  }

  header .bottom .container {
    width: 100%;
  }

  header .bottom nav {
    width: 100%;
  }

  header .bottom nav ul {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 20px;
  }

  header .bottom nav ul li {
    width: 100%;
    border-bottom: 1px solid #ccc;
    padding-bottom: 20px;
  }

  header .bottom nav ul li a {
    padding-left: 37px;
  }
}

/* FOOTER */

footer {
  font-size: 14px;
  line-height: 1.75;
}

footer .top,
footer .bottom {
  display: flex;
  justify-content: center;
  padding: calc(var(--lr-padding)*2) var(--lr-padding);
}

footer .top {
  background: var(--footer_sfondo_top);
  color: var(--footer_colore_testo);
}

footer .top a {
  color: var(--footer_colore_testo);
  text-decoration: none;
}

footer .top a:hover {
  text-decoration: underline;
}

footer .top .info-logo img {
  width: auto;
  height: 40px;
}

footer .top .info-name {
  margin-top: 5px;
}

footer .top .info-name .name {
  font-size: 18px;
  font-weight: 700;
}

footer .top .info-name .description {
  font-size: 12px;
}

footer .top .address {
  font-size: 13px;
  margin-top: 15px;
}

footer .top .nav_title {
  font-weight: 700;
  border-bottom: 1px solid color-mix(in srgb, var(--footer_colore_testo) 35%, transparent);
  padding-bottom: 5px;
  margin-bottom: 5px;
}

footer .top .social {
  margin-top: 10px;
}

footer .top .social ul {
  display: flex;
  gap: 10px;
}

footer .top .social ul li a {
  transition: var(--hover-transition);
}

footer .top .social ul li a:hover {
  opacity: .65;
}

footer .top .social ul li a svg path {
  fill: var(--footer_colore_testo);
}


footer .top .partnership {
  border-top: 1px solid color-mix(in srgb, var(--footer_colore_testo) 35%, transparent);
  padding-top: calc(var(--lr-padding)*2);
  margin-top: calc(var(--lr-padding)*2);
}

footer .top .partnership ul {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

footer .top .partnership ul li a {
  display: block;
  width: 135px;
  height: 45px;
  transition: all var(--hover-transition);
}

footer .top .partnership ul li a:hover {
  opacity: .6;
}

footer .bottom {
  background: var(--footer_colore_sfondo_banda_inferiore);
  color: var(--footer_colore_testo);
}

@media screen and (max-width: 960px) {
  footer .top .info-logo img {
    height: 30px;
  }
}

/* HERO */

section#hero {
  min-height: 500px;
  padding: 0 var(--lr-padding);
  background: #CCC;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: end;
}

section#hero .hero_bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

section#hero .container {
  padding: 30px 0;
  z-index: 2;
}

section#hero .container>div {
  max-width: max-content;
  padding: 18px 22px;
  background: white;
}

section#hero .container>div h1 {
  font-size: clamp(28px, 26.6087px + 0.4348vw, 32px);
  line-height: 1.25;
}

section#hero .container>div .hero_btns {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

/* MAIN */

main {
  display: flex;
  justify-content: center;
  padding: 0 var(--lr-padding);
}

/* MAIN - HOME */

body.home main .container>* {
  margin: calc(var(--lr-padding)*3) 0;
}

/* MAIN - PAGE */

body.page main {
  padding: 32px var(--lr-padding);
}

body.page main .container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}

body.page main .container .page-title {
  width: 100%;
  margin-top: 0;
}

body.page main .container article {
  flex: 1 1 0%;
  border-right: 1px solid color-mix(in srgb, var(--colore-testo-base) 20%, transparent);
  padding-right: 30px;
}

body.page main .container article>* {
  margin: clamp(16px, 13.2174px + 0.8696vw, 24px) 0;
}

body.page main .container article img {
  display: block;
  width: 100%;
  height: auto;
}

body.page main .container article ul,
body.page main .container article ol {
  margin-left: 24px;
}

body.page main .container article ul {
  list-style: square;
}

body.page main .container article ol {
  list-style: decimal;
}

body.page main .container article blockquote {
  font-style: italic;
  border-left: 4px solid color-mix(in srgb, var(--colore-testo-base) 35%, transparent);
  padding-left: 15px;
}

body.page main .container aside {
  width: 300px;
}

@media screen and (max-width: 960px) {
  body.page main .container {
    flex-direction: column;
  }

  body.page main .container .page-title {
    order: 1;
  }

  body.page main .container article {
    border-right: 0;
    padding-right: 0;
    order: 3;
  }

  body.page main .container aside {
    order: 2;
  }
}