/* ==========================================================================
   Pizzeria San Marco – site stylesheet
   Plain CSS, no build step. Loaded after vendor/materialize/materialize.min.css
   and css/fonts.css, so rules here override the framework.
   (Named site.css, not style.css, because browsers cache the old compiled
   style.css for 7 days; a new name sidesteps that.)
   ========================================================================== */

:root {
  --claudio-red: #500c01;        /* navigation, Materialize "red" classes   */
  --claudio-red-light: #701304;  /* "Ristorante" menu block                 */
  --claudio-grey: #373737;       /* "Pizza-Express" menu block, content box */
  --font-main: "Montserrat", sans-serif;
  --font-accent: "Caveat", cursive;
  --shadow-2: 0 4px 5px 0 rgba(0, 0, 0, .14), 0 1px 10px 0 rgba(0, 0, 0, .12), 0 2px 4px -1px rgba(0, 0, 0, .3);
  --shadow-3: 0 8px 17px 2px rgba(0, 0, 0, .14), 0 3px 14px 2px rgba(0, 0, 0, .12), 0 5px 5px -3px rgba(0, 0, 0, .2);
}

/* --------------------------------------------------------------------------
   Materialize "red" colour classes, re-mapped to the restaurant's dark red.
   (The former SCSS build replaced Materialize's red palette with these values;
   the markup uses e.g. "btn red darken-1".)
   -------------------------------------------------------------------------- */
.red                     { background-color: #500c01 !important; }
.red-text                { color: #500c01 !important; }
.red.lighten-4           { background-color: #fc3f21 !important; }
.red-text.text-lighten-4 { color: #fc3f21 !important; }
.red.lighten-3           { background-color: #e72303 !important; }
.red-text.text-lighten-3 { color: #e72303 !important; }
.red.lighten-2           { background-color: #b51b02 !important; }
.red-text.text-lighten-2 { color: #b51b02 !important; }
.red.lighten-1           { background-color: #821402 !important; }
.red-text.text-lighten-1 { color: #821402 !important; }
.red.darken-1            { background-color: #460a01 !important; }
.red-text.text-darken-1  { color: #460a01 !important; }
.red.darken-2            { background-color: #370801 !important; }
.red-text.text-darken-2  { color: #370801 !important; }
.red.darken-3            { background-color: #280600 !important; }
.red-text.text-darken-3  { color: #280600 !important; }
.red.darken-4            { background-color: #1e0400 !important; }
.red-text.text-darken-4  { color: #1e0400 !important; }
.red.accent-1            { background-color: #701304 !important; }
.red-text.text-accent-1  { color: #701304 !important; }

/* --------------------------------------------------------------------------
   Base typography
   -------------------------------------------------------------------------- */
html,
body {
  margin: 0;
  padding: 0;
  font-family: var(--font-main);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.3;
}

p,
a { font-weight: 400; }

a { color: #fc3f21; }

strong { font-weight: 700; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-accent);
  font-weight: 400;
}

h1.line, h2.line, h3.line, h4.line, h5.line {
  border-bottom: 2px solid #fff;
  padding-bottom: 10px;
  margin-bottom: 10px;
}

.polaroid {
  border: 2px solid rgba(255, 255, 255, .9);
  box-shadow: var(--shadow-2);
}

@media only screen and (max-width: 600px) {
  .col { margin-bottom: 15px; }
}

/* --------------------------------------------------------------------------
   Background slideshow (six images cross-fading, 36 s loop)
   -------------------------------------------------------------------------- */
#background-slideshow { z-index: 1; }

.slideshow,
.slideshow::after {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -100;
  margin: 0;
  background-color: #000;
}

.slideshow::after {
  content: "";
  background: transparent url("../img/pattern.png") repeat top left;
}

.slideshow li span {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  color: transparent;
  background-size: cover;
  background-position: 50% 50%;
  background-repeat: no-repeat;
  opacity: 0;
  z-index: 0;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  animation: imageAnimation 36s linear infinite 0s;
}

/* Sub-pages show the background in black and white */
.not-landingpage .slideshow li span { filter: grayscale(100%); }

.slideshow li:nth-child(1) span { background-image: url("../img/background1.jpg"); }
.slideshow li:nth-child(2) span { background-image: url("../img/background2.jpg"); animation-delay: 6s; }
.slideshow li:nth-child(3) span { background-image: url("../img/background3.jpg"); animation-delay: 12s; }
.slideshow li:nth-child(4) span { background-image: url("../img/background4.jpg"); animation-delay: 18s; }
.slideshow li:nth-child(5) span { background-image: url("../img/background5.jpg"); animation-delay: 24s; }
.slideshow li:nth-child(6) span { background-image: url("../img/background6.jpg"); animation-delay: 30s; }

@keyframes imageAnimation {
  0%   { opacity: 0; animation-timing-function: ease-in; }
  8%   { opacity: 1; animation-timing-function: ease-out; }
  17%  { opacity: 1; }
  25%  { opacity: 0; }
  100% { opacity: 0; }
}

/* --------------------------------------------------------------------------
   Navigation (logo + two menu blocks)
   -------------------------------------------------------------------------- */
#navigation {
  z-index: 10;
  background: var(--claudio-red);
  box-shadow: var(--shadow-3);
}

#navigation.col { padding: 0 !important; }

@media only screen and (min-width: 601px) {
  #navigation {
    max-width: 200px;
    margin-top: 60px;
  }
}

@media only screen and (min-width: 993px) {
  #navigation { max-width: 270px; }
}

#navigation .logo-container { padding: 20px; }

#navigation .logo-container img {
  max-width: 100%;
  height: auto;
}

@media only screen and (max-width: 600px) {
  #navigation .logo-container {
    max-width: 70%;
    margin: 0 auto;
  }
}

.logo-container-mobile img { padding: 25px; }

#navigation .menu-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 240px;
  margin: 0;
  padding: 0 15px;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: contain;
}

#navigation .menu-container.restaurant {
  background-color: var(--claudio-red-light);
  background-image: url("../img/icon_pizza.png");
}

#navigation .menu-container.delivery {
  background-color: var(--claudio-grey);
  background-image: url("../img/icon_carton.png");
}

#navigation .menu-container .menu {
  display: none;
  list-style: none;
  margin: 0;
}

#navigation .menu-container .menu li {
  display: block;
  text-align: center;
  margin: 10px;
}

#navigation .menu-container .menu li:hover { cursor: pointer; }

#navigation .menu-container a {
  display: inline-block;
  padding: 5px;
  font-family: var(--font-accent);
  font-size: 28px;
  line-height: 32px;
  font-weight: 400;
  color: #fff;
  text-align: center;
  text-transform: none;
  transition: all .3s;
}

#navigation .menu-container a:hover  { opacity: .7; }
#navigation .menu-container a:active { opacity: .8; }

/* Opened menu block: the icon disappears and the links appear.
   Touch devices: js/app.js adds .in on tap. Mouse devices: hover. */
#navigation .menu-container.in { background-image: none; }
#navigation .menu-container.in .menu { display: block; }

@media (hover: hover) {
  #navigation .menu-container:hover { background-image: none; }
  #navigation .menu-container:hover .menu { display: block; }
}

/* --------------------------------------------------------------------------
   Content box
   -------------------------------------------------------------------------- */
#content {
  background: rgba(55, 55, 55, .9);
  color: #fff !important;
  box-shadow: var(--shadow-3);
}

@media only screen and (min-width: 601px) {
  #content { margin-top: 60px; }
}

#content .col.content-wrapper {
  padding-left: 1.5em;
  padding-right: 1.5em;
}

/* Start page: no content box, only the navigation (hidden entirely on phones) */
.landingpage #content {
  background: none;
  box-shadow: none;
}

@media only screen and (max-width: 600px) {
  .landingpage #content { display: none; }
}

.claudicons { padding-top: 30px; }

.list {
  list-style: circle;
  font-size: 18px;
  line-height: 20px;
}

.list .material-icons {
  padding-right: 5px;
  vertical-align: middle;
}

#content .collection .collection-item { background: none; }

/* --------------------------------------------------------------------------
   Image carousels (Ristorante page)
   -------------------------------------------------------------------------- */
@media only screen and (min-width: 601px) {
  #content .carousel { height: 450px; }
}

@media only screen and (max-width: 600px) {
  #content .carousel { height: 250px; }
}

#content .carousel .carousel-item { padding-bottom: 56.25%; }
#content .carousel .indicators { visibility: hidden; }
#content .carousel .material-icons { box-shadow: var(--shadow-3); }

#content .carousel .middle-indicator {
  position: absolute;
  top: 45%;
  margin: 5px;
}

#content .carousel .middle-indicator-text { font-size: 38px; }
#content .carousel a.middle-indicator-text { color: #fff !important; }

#content .carousel .content-indicator {
  width: 40px;
  height: 40px;
  background: none;
  border-radius: 50px;
}

/* --------------------------------------------------------------------------
   Notice pop-ups (image modals opened on page load, see index.php)
   -------------------------------------------------------------------------- */
.modal.modal-notice { max-width: 520px; }

.modal.modal-notice img {
  display: block;
  margin: 0 auto;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: calc(70vh - 130px); /* Materialize caps the modal at 70vh */
}
