@import url("https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap");

:root {
  --nero: #0e0d0f;
  --nero-2: #17151a;
  --nero-3: #221f26;
  --rosso: #a0102b;
  --rosso-vivo: #e0284b;       /* rosso leggibile su fondo scuro */
  --oro: #d9a93f;
  --oro-chiaro: #f3d68a;
  --testo: #d9d5dc;
  --tenue: #9a94a0;
  --linea: rgba(255, 255, 255, .09);
  --raggio: 10px;
  --titoli: "Bebas Neue", "Candal", Impact, "Arial Narrow", sans-serif;
  --corpo: "Open Sans", Helvetica, Arial, sans-serif;
}

/* ---------- Base ---------- */

html, body,
body.custom-background {
  background: var(--nero) !important;
}
body {
  color: var(--testo);
  font-family: var(--corpo);
  -webkit-font-smoothing: antialiased;
  /* leggera vignettatura da proiezione */
  background-image:
    radial-gradient(ellipse at 50% -10%, rgba(160, 16, 43, .28), transparent 55%) !important;
  background-repeat: no-repeat !important;
}

a { color: var(--oro); transition: color .2s, background-color .2s, border-color .2s, transform .2s; }
a:hover { color: var(--oro-chiaro); }
a:focus-visible { outline: 2px solid var(--oro); outline-offset: 3px; border-radius: 3px; }

::selection { background: var(--rosso); color: #fff; }

/* contenitore Twenty Twelve */
body .site {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  background: transparent;
  box-shadow: none;
}

/* ---------- Testata ---------- */

body .site-header {
  padding: 0;
  margin: 0;
}

#header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 24px;
  padding: 28px 0 22px;
}

/* il logo e' un JPG con fondo chiaro: lo poggiamo su una "locandina" */
#logo {
  float: none;
  margin: 0;
}
#logo a {
  display: inline-block;
  padding: 10px 16px;
  background: #fff;
  border-radius: var(--raggio);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 14px 40px rgba(0, 0, 0, .55);
  line-height: 0;
}
#logo a:hover { transform: translateY(-2px); }
#logo img { max-height: 90px; width: auto; }

#top_right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 14px 18px;
  float: none;
  margin: 0;
}

/* bandiere lingua */
#lang { float: none; margin: 0; }
#qtranslate-chooser {
  display: flex;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
#qtranslate-chooser li { margin: 0; padding: 0; }
#qtranslate-chooser .qtrans_flag {
  width: 24px;
  height: 16px;
  background-size: cover !important;
  background-position: center !important;
  border-radius: 3px;
  opacity: .55;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .15);
}
#qtranslate-chooser li.active .qtrans_flag,
#qtranslate-chooser .qtrans_flag:hover { opacity: 1; }

/* icone social */
#social {
  display: flex;
  gap: 8px;
  float: none;
  margin: 0;
}
#social > div {
  float: none;
  margin: 0;
  line-height: 0;
}
#social img {
  width: 34px;
  height: 34px;
  padding: 6px;
  background: var(--nero-3);
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--linea);
  transition: background .2s, transform .2s;
}
#social img:hover {
  background: var(--rosso);
  transform: translateY(-2px);
}
/* Google+ non esiste piu' */
#social #google { display: none; }

/* ricerca */
#cerca { float: none; margin: 0; }
#searchform {
  display: flex;
  margin: 0;
}
#testo_cerca {
  width: 190px;
  height: 36px;
  padding: 0 14px;
  background: var(--nero-3);
  border: 1px solid var(--linea);
  border-right: 0;
  border-radius: 999px 0 0 999px;
  color: #fff;
  font: 14px var(--corpo);
  box-shadow: none;
}
#testo_cerca:focus {
  outline: 0;
  border-color: var(--oro);
  background: var(--nero-2);
}
#searchsubmit {
  height: 36px;
  padding: 0 16px;
  background: var(--rosso);
  border: 0;
  border-radius: 0 999px 999px 0;
  color: #fff;
  font: 700 12px var(--corpo);
  letter-spacing: .08em;
  text-transform: uppercase;
  box-shadow: none;
  cursor: pointer;
}
#searchsubmit:hover { background: var(--rosso-vivo); }

/* ---------- Menu ---------- */

body .main-navigation {
  margin: 0;
  padding: 0 6px;
  background: var(--nero-2);
  border: 1px solid var(--linea);
  border-radius: var(--raggio);
  text-align: left;
}

/* bottone "Menu" su mobile (comportamento Twenty Twelve) */
body .menu-toggle {
  margin: 8px 0;
  padding: 10px 18px;
  background: var(--rosso) !important;
  background-image: none !important;
  border: 0 !important;
  border-radius: 999px;
  color: #fff !important;
  font: 700 13px var(--corpo);
  letter-spacing: .1em;
  text-transform: uppercase;
  box-shadow: none !important;
  text-shadow: none !important;
}

body .main-navigation li {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
}
body .main-navigation li a {
  color: var(--testo);
  font-family: var(--corpo);
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
body .main-navigation li a:hover,
body .main-navigation li a:focus { color: #fff; }

body .main-navigation .current-menu-item > a,
body .main-navigation .current-menu-ancestor > a,
body .main-navigation .current_page_item > a,
body .main-navigation .current_page_ancestor > a {
  color: var(--oro);
  font-weight: 700;
}

/* ---------- Contenuto ---------- */

body .site-content {
  float: none;
  width: auto;
  margin: 0;
}
body #main.wrapper {
  padding: 34px 0 10px;
  border: 0;
  overflow: visible;
}

body .entry-content,
body .entry-summary {
  color: var(--testo);
  font-size: 16px;
  line-height: 1.8;
}
body .entry-content p { margin: 0 0 1.4em; }
body .entry-content strong { color: #fff; }

/* tutti i "rosso #a0102b" inline -> rosso leggibile su scuro */
body .entry-content [style*="a0102b"],
body #secondary [style*="a0102b"] {
  color: var(--rosso-vivo) !important;
}

body .entry-title,
body .entry-content h1,
body .entry-content h2,
body .entry-content h3,
body .widget-title {
  color: #fff;
  font-family: var(--titoli);
  font-weight: 400;
  letter-spacing: .04em;
  line-height: 1.05;
  text-transform: none;
}
body .entry-title { font-size: 52px; margin-bottom: 18px; }
body .entry-content h2 { font-size: 38px; margin: 1.4em 0 .5em; }
body .entry-content h3 { font-size: 28px; margin: 1.2em 0 .5em; }
body .entry-content h4 {
  color: var(--oro);
  font-family: var(--corpo);
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

/* in home il titolo "Home" non serve */
body.template-front-page .entry-header,
body.home .entry-header { display: none; }

body .entry-content img,
body .entry-content iframe { max-width: 100%; }
body .entry-content img { border-radius: 4px; }

body .entry-content blockquote {
  margin: 1.5em 0;
  padding: 6px 0 6px 22px;
  border-left: 3px solid var(--oro);
  color: #fff;
  font-style: italic;
}

body .entry-content table { border-color: var(--linea); }
body .entry-content th,
body .entry-content td { border-color: var(--linea); }
body .entry-content th { color: var(--oro); }

body .entry-content ul li::marker,
body .entry-content ol li::marker { color: var(--rosso-vivo); }

/* ---------- Ticker notizie ---------- */

body .mtphr-dnt {
  position: relative;
  margin: 0 0 34px;
  padding: 0;
  background: var(--rosso);
  border-radius: var(--raggio);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(160, 16, 43, .35);
}
body .mtphr-dnt::before {
  content: "News";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  padding: 0 18px;
  background: var(--nero);
  color: var(--oro);
  font-family: var(--titoli);
  font-size: 22px;
  letter-spacing: .08em;
}
body .mtphr-dnt-wrapper { padding: 12px 0 12px 100px; }
body .mtphr-dnt-tick a {
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
}
body .mtphr-dnt-tick a:hover { color: var(--oro-chiaro); }

/* ---------- Apertura home: le due righe in maiuscolo ---------- */

body.home .entry-content > div[style*="text-align: center"] > strong {
  display: block;
  color: #fff;
  font-family: var(--titoli);
  font-size: 40px;
  font-weight: 400;
  letter-spacing: .05em;
  line-height: 1.05;
}
/* "IN PALIO IL PRESTIGIOSO CERVO D'ORO" */
body.home .entry-content > div[style*="text-align: center"] + div[style*="text-align: center"] > strong {
  margin: 4px 0 18px;
  color: var(--oro);
  font-size: 30px;
  text-shadow: 0 0 24px rgba(217, 169, 63, .35);
}

/* loghi Short Film Central / Cinema Breve */
body.home .entry-content > div[style*="text-align: center"] img {
  margin: 0 8px 28px;
  padding: 6px;
  background: #fff;
  border-radius: 6px;
  vertical-align: middle;
}

/* video: cornice "schermo" */
body .entry-content iframe[src*="youtube"] {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  margin: 10px auto 34px;
  border-radius: var(--raggio);
  box-shadow: 0 0 0 1px var(--linea), 0 30px 70px rgba(0, 0, 0, .7), 0 0 120px rgba(160, 16, 43, .2);
}

/* ---------- Sponsor e partner ---------- */

body .entry-content .sponsor {
  float: none !important;
  clear: none !important;
  display: inline-block;
  width: calc(50% - 12px);
  min-height: 130px;
  margin: 0 8px 16px 0;
  padding: 16px 18px 12px;
  vertical-align: top;
  background: #fff;
  border-radius: var(--raggio);
  text-align: center;
  line-height: 1;
}
body .entry-content .sponsor strong {
  display: block;
  margin-bottom: 12px;
  color: var(--rosso) !important;
  font-size: 11px;
  letter-spacing: .14em;
  line-height: 1.3;
}
body .entry-content .sponsor br { display: none; }
body .entry-content .sponsor img {
  display: inline-block;
  max-height: 48px;
  width: auto;
  margin: 4px 8px;
  border-radius: 0;
  vertical-align: middle;
  filter: grayscale(1);
  opacity: .8;
  transition: filter .25s, opacity .25s;
}
body .entry-content .sponsor img:hover {
  filter: none;
  opacity: 1;
}

/* ---------- Riquadri "Caratteristiche" e "Contattaci" ---------- */

body .entry-content #secondary,
body #secondary {
  float: none;
  clear: both;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  width: auto;
  margin: 18px 0 0;
}
body #secondary aside {
  height: 100%;
  margin: 0;
  padding: 22px 24px;
  background: var(--nero-2);
  border: 1px solid var(--linea);
  border-top: 3px solid var(--rosso);
  border-radius: var(--raggio);
}
body #secondary .widget-title {
  margin: 0 0 12px !important;
  color: var(--oro);
  font-size: 26px !important;
  text-transform: none;
}
body #secondary .textwidget {
  color: var(--testo);
  font-size: 15px;
  line-height: 1.7;
}

/* ---------- Moduli (Contact Form 7, commenti) ---------- */

body input[type="text"],
body input[type="email"],
body input[type="url"],
body input[type="tel"],
body textarea {
  padding: 10px 14px;
  background: var(--nero-2);
  border: 1px solid var(--linea);
  border-radius: 8px;
  color: #fff;
  font: 15px var(--corpo);
  box-shadow: none;
}
body input[type="text"]:focus,
body input[type="email"]:focus,
body textarea:focus {
  outline: 0;
  border-color: var(--oro);
  box-shadow: 0 0 0 3px rgba(217, 169, 63, .18);
}
body .wpcf7-form input[type="submit"],
body input[type="submit"]:not(#searchsubmit) {
  padding: 11px 28px;
  background: var(--rosso);
  background-image: none;
  border: 0;
  border-radius: 999px;
  color: #fff;
  font: 700 13px var(--corpo);
  letter-spacing: .1em;
  text-transform: uppercase;
  text-shadow: none;
  box-shadow: 0 8px 20px rgba(160, 16, 43, .35);
  cursor: pointer;
}
body .wpcf7-form input[type="submit"]:hover,
body input[type="submit"]:not(#searchsubmit):hover {
  background: var(--rosso-vivo);
  transform: translateY(-1px);
}
body .wpcf7-response-output {
  border-radius: 8px;
  color: #fff;
}
body .wpcf7-not-valid-tip { color: var(--rosso-vivo); }

/* ---------- Footer ---------- */

body .entry-meta:empty { display: none; }

body #colophon {
  margin-top: 40px;
  padding: 26px 0 34px;
  border-top: 1px solid var(--linea);
  color: var(--tenue);
  font-size: 13px;
  text-align: center;
}
/* striscia "pellicola" sopra il footer */
body #colophon::before {
  content: "";
  display: block;
  height: 14px;
  margin: -27px 0 22px;
  background:
    repeating-linear-gradient(90deg, var(--nero-3) 0 14px, transparent 14px 26px);
  opacity: .9;
}
body #colophon a { color: var(--oro); }

/* ---------- Pulsanti social flottanti (plugin) ---------- */

body #dc-dcssb {
  border-radius: var(--raggio);
  overflow: hidden;
}

/* ---------- Desktop: menu orizzontale con sottomenu ---------- */

@media screen and (min-width: 600px) {
  body .main-navigation ul.nav-menu {
    display: flex;
    flex-wrap: wrap;
    border: 0;
  }
  body .main-navigation li {
    position: relative;
    margin: 0;
  }
  body .main-navigation li a {
    position: relative;
    display: block;
    padding: 16px 16px 15px;
    border: 0;
    line-height: 1.2;
  }
  body .main-navigation > div > ul > li > a::after {
    content: "";
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 9px;
    height: 2px;
    background: var(--oro);
    transform: scaleX(0);
    transition: transform .25s;
  }
  body .main-navigation > div > ul > li:hover > a::after,
  body .main-navigation > div > ul > li.current-menu-item > a::after,
  body .main-navigation > div > ul > li.current-menu-ancestor > a::after {
    transform: scaleX(1);
  }

  /* sottomenu */
  body .main-navigation li ul {
    top: 100%;
    z-index: 100;
    min-width: 230px;
    padding: 8px 0;
    background: var(--nero-2);
    border: 1px solid var(--linea);
    border-top: 3px solid var(--rosso);
    border-radius: 0 0 var(--raggio) var(--raggio);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .55);
  }
  body .main-navigation li ul li a {
    width: auto;
    padding: 9px 18px;
    background: none;
    border: 0;
    color: var(--testo);
    font-size: 12px;
    white-space: nowrap;
  }
  body .main-navigation li ul li a:hover {
    background: var(--nero-3);
    color: var(--oro);
  }
  body .main-navigation li ul ul { top: 0; left: 100%; }
}

@media screen and (min-width: 960px) {
  body .site { padding: 0 24px; }
}

/* ---------- Telefono ---------- */

@media screen and (max-width: 720px) {
  #header { justify-content: center; text-align: center; }
  #top_right { justify-content: center; }
  #testo_cerca { width: 150px; }

  body.home .entry-content > div[style*="text-align: center"] > strong { font-size: 30px; }
  body.home .entry-content > div[style*="text-align: center"] + div[style*="text-align: center"] > strong { font-size: 24px; }

  body .entry-content .sponsor {
    display: block;
    width: auto;
    min-height: 0;
    margin: 0 0 12px;
  }
  body .entry-content #secondary,
  body #secondary { grid-template-columns: 1fr; }

  body .mtphr-dnt::before { font-size: 18px; padding: 0 12px; }
  body .mtphr-dnt-wrapper { padding-left: 76px; }
}

@media screen and (max-width: 599px) {
  /* menu aperto con il pulsante "Menu" */
  body .main-navigation ul.nav-menu.toggled-on {
    padding: 4px 0 10px;
  }
  body .main-navigation ul.nav-menu.toggled-on li a {
    display: block;
    padding: 10px 12px;
    border-bottom: 1px solid var(--linea);
  }
  body .main-navigation ul.nav-menu.toggled-on li ul li a {
    padding-left: 28px;
    color: var(--tenue);
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

@media print {
  html, body { background: #fff !important; color: #000; }
  #top_right, body .main-navigation, body .mtphr-dnt, #dc-dcssb { display: none; }
  body .entry-content strong, body .entry-title { color: #000; }
}