/*
 * Stile del sito Studio Rita Rijillo.
 *
 * Parte 1: valori di base che riportano Bootstrap 5.3 all'aspetto del Bootstrap 3.3.5 del vecchio sito
 *          (corpo 14px, interlinea 1.42857, colonne con 15px di margine interno, link, moduli, carousel).
 * Parte 2: lo stile originale del sito (css/styles.css del vecchio sito), adattato ai nomi delle classi.
 */

/* ===== Parte 1: aspetto di Bootstrap 3 ===== */

:root {
  --bs-body-font-family: 'PT Sans', serif;
  --bs-body-font-size: 14px;
  --bs-body-line-height: 1.428571429;
  --bs-body-color: #333;
  --bs-body-color-rgb: 51, 51, 51;
  --bs-link-color: #337ab7;
  --bs-link-color-rgb: 51, 122, 183;
  --bs-link-hover-color: #23527c;
  --bs-link-hover-color-rgb: 35, 82, 124;
  --bs-border-radius: 4px;
}

a {
  text-decoration: none;
}
a:hover,
a:focus {
  text-decoration: underline;
}

p {
  margin: 0 0 10px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: inherit;
  font-weight: 500;
  line-height: 1.1;
  color: inherit;
}
h2 {
  margin-top: 20px;
  margin-bottom: 10px;
  font-size: 30px;
}

hr {
  margin-top: 20px;
  margin-bottom: 20px;
  border: 0;
  border-top: 1px solid #eee;
  opacity: 1;
  color: inherit;
}

address {
  margin-bottom: 20px;
  font-style: normal;
  line-height: 1.428571429;
}

abbr[title] {
  cursor: help;
  border-bottom: 1px dotted #777;
  text-decoration: none;
}

small {
  font-size: 85%;
}

label {
  display: inline-block;
  max-width: 100%;
  margin-bottom: 5px;
  font-weight: bold;
}

/* griglia: 15px per lato come in Bootstrap 3 */
.container-fluid,
.row {
  --bs-gutter-x: 30px;
}

/* in Bootstrap 3 .img-responsive era un blocco (niente spazio sotto l'immagine) */
.img-responsive {
  display: block;
  max-width: 100%;
  height: auto;
}

.clearfix {
  clear: both;
}

/* --- menu fisso in alto (navbar di Bootstrap 3) --- */
.rr-navbar {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1030;
  min-height: 50px;
  border: solid #002147;
  border-width: 0 0 1px;
}
.rr-navbar > .container-fluid {
  padding-right: 15px;
  padding-left: 15px;
}
.rr-navbar > .container-fluid > .rr-navbar-header,
.rr-navbar > .container-fluid > .rr-navbar-collapse {
  margin-right: -15px;
  margin-left: -15px;
}
.rr-navbar-header::after {
  display: table;
  clear: both;
  content: " ";
}
.rr-navbar-toggle {
  position: relative;
  float: right;
  padding: 9px 10px;
  margin-top: 8px;
  margin-right: 15px;
  margin-bottom: 8px;
  background-color: transparent;
  background-image: none;
  border: 1px solid transparent;
  border-radius: 4px;
}
.rr-navbar-toggle:focus {
  outline: 0;
}
.rr-navbar-toggle .icon-bar {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 1px;
}
.rr-navbar-toggle .icon-bar + .icon-bar {
  margin-top: 4px;
}
.rr-navbar-collapse {
  max-height: 340px;
  padding-right: 15px;
  padding-left: 15px;
  overflow-x: visible;
  border-top: 1px solid transparent;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1);
}
.rr-nav {
  padding-left: 0;
  margin: 7.5px -15px;
  list-style: none;
}
.rr-nav::after {
  display: table;
  clear: both;
  content: " ";
}
.rr-nav > li {
  position: relative;
  display: block;
}
.rr-nav > li > a {
  position: relative;
  display: block;
  line-height: 20px;
}
.rr-nav > li > a:hover,
.rr-nav > li > a:focus {
  text-decoration: none;
}

@media (min-width: 768px) {
  .rr-navbar {
    border-radius: 0;
  }
  .rr-navbar > .container-fluid > .rr-navbar-header,
  .rr-navbar > .container-fluid > .rr-navbar-collapse {
    margin-right: 0;
    margin-left: 0;
  }
  .rr-navbar-header {
    float: left;
  }
  .rr-navbar-toggle {
    display: none;
  }
  .rr-navbar-collapse {
    width: auto;
    padding-right: 0;
    padding-left: 0;
    border-top: 0;
    box-shadow: none;
  }
  .rr-navbar-collapse.collapse,
  .rr-navbar-collapse.collapsing {
    display: block !important;
    height: auto !important;
    padding-bottom: 0;
    overflow: visible !important;
    transition: none;
  }
  .rr-nav {
    float: left;
    margin: 0;
  }
  .rr-nav > li {
    float: left;
  }
}

/* --- carousel della home (aspetto e tempi del carousel di Bootstrap 3) --- */
.carousel-item > img {
  display: block;
  max-width: 100%;
  height: auto;
  line-height: 1;
}
.carousel-control-prev,
.carousel-control-next {
  display: block;
  width: 15%;
  font-size: 20px;
  color: #fff;
  text-align: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .6);
  opacity: .5;
  transition: none;
  background-repeat: repeat-x;
}
.carousel-control-prev {
  background-image: linear-gradient(to right, rgba(0, 0, 0, .5) 0%, rgba(0, 0, 0, .0001) 100%);
}
.carousel-control-next {
  background-image: linear-gradient(to right, rgba(0, 0, 0, .0001) 0%, rgba(0, 0, 0, .5) 100%);
}
.carousel-control-prev:hover,
.carousel-control-prev:focus,
.carousel-control-next:hover,
.carousel-control-next:focus {
  color: #fff;
  text-decoration: none;
  outline: 0;
  opacity: .9;
}
.carousel-control-prev .glyphicon-chevron-left,
.carousel-control-next .glyphicon-chevron-right {
  position: absolute;
  top: 50%;
  z-index: 5;
  display: inline-block;
  margin-top: -10px;
}
.carousel-control-prev .glyphicon-chevron-left {
  left: 50%;
  margin-left: -10px;
}
.carousel-control-next .glyphicon-chevron-right {
  right: 50%;
  margin-right: -10px;
}
.carousel-indicators {
  position: absolute;
  right: auto;
  bottom: 10px;
  left: 50%;
  z-index: 15;
  display: block;
  width: 60%;
  padding-left: 0;
  margin: 0 0 10px -30%;
  line-height: 20px;
  text-align: center;
  list-style: none;
}
.carousel-indicators [data-bs-target] {
  box-sizing: border-box;
  display: inline-block;
  width: 10px;
  height: 10px;
  padding: 0;
  margin: 1px;
  text-indent: -999px;
  cursor: pointer;
  background-color: rgba(0, 0, 0, 0);
  background-clip: border-box;
  border: 1px solid #fff;
  border-radius: 10px;
  opacity: 1;
  transition: none;
  vertical-align: baseline;
}
.carousel-indicators .active {
  width: 12px;
  height: 12px;
  margin: 0;
  background-color: #fff;
  opacity: 1;
}
@media screen and (min-width: 768px) {
  .carousel-control-prev .glyphicon-chevron-left,
  .carousel-control-next .glyphicon-chevron-right {
    width: 30px;
    height: 30px;
    margin-top: -15px;
    font-size: 30px;
  }
  .carousel-control-prev .glyphicon-chevron-left {
    margin-left: -15px;
  }
  .carousel-control-next .glyphicon-chevron-right {
    margin-right: -15px;
  }
  .carousel-indicators {
    bottom: 20px;
  }
}

/* --- modulo contatti (form-control, feedback e validazione di Bootstrap 3) --- */
.form-group {
  margin-bottom: 15px;
}
.form-control {
  display: block;
  width: 100%;
  height: 34px;
  padding: 6px 12px;
  font-size: 14px;
  line-height: 1.428571429;
  color: #555;
  background-color: #fff;
  background-image: none;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
  transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
}
.form-control:focus {
  color: #555;
  border-color: #66afe9;
  outline: 0;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 8px rgba(102, 175, 233, .6);
}
.form-control::placeholder {
  color: #999;
  opacity: 1;
}
textarea.form-control {
  height: auto;
}
.has-feedback {
  position: relative;
}
.has-feedback .form-control {
  padding-right: 42.5px;
}
.form-control-feedback {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
  display: block;
  width: 34px;
  height: 34px;
  line-height: 34px;
  text-align: center;
  pointer-events: none;
}
.has-feedback label ~ .form-control-feedback {
  top: 25px;
}
.help-block {
  display: block;
  margin-top: 5px;
  margin-bottom: 10px;
  color: #737373;
}
.help-block ul {
  padding-left: 0;
  margin: 0;
  list-style: none;
}
.has-success .help-block,
.has-success .form-control-feedback {
  color: #3c763d;
}
.has-success .form-control {
  border-color: #3c763d;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
}
.has-success .form-control:focus {
  border-color: #2b542c;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 6px #67b168;
}
.has-error .help-block,
.has-error .form-control-feedback {
  color: #a94442;
}
.has-error .form-control {
  border-color: #a94442;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
}
.has-error .form-control:focus {
  border-color: #843534;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 6px #ce8483;
}

/* pulsante senza colore, come il .btn di Bootstrap 3 */
.contact-btn {
  --bs-btn-padding-x: 12px;
  --bs-btn-padding-y: 6px;
  --bs-btn-font-size: 14px;
  --bs-btn-line-height: 1.428571429;
  --bs-btn-border-radius: 4px;
  --bs-btn-color: #333;
  /* Bootstrap 3 non dava uno sfondo al .btn: restava il grigio standard dei pulsanti del browser */
  --bs-btn-bg: ButtonFace;
  --bs-btn-hover-bg: ButtonFace;
  --bs-btn-active-bg: ButtonFace;
  --bs-btn-disabled-bg: ButtonFace;
  --bs-btn-hover-border-color: transparent;
  --bs-btn-hover-color: #333;
  --bs-btn-active-color: #333;
  --bs-btn-active-border-color: transparent;
  --bs-btn-disabled-color: #333;
  --bs-btn-disabled-border-color: transparent;
}
.contact-btn:active {
  box-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);
}
/* finché il modulo non è completo il pulsante appare disattivato, ma resta cliccabile:
   il clic mostra quali campi mancano (come validator.js) */
.contact-btn.disabled {
  pointer-events: auto;
  cursor: not-allowed;
  box-shadow: none;
  opacity: .65;
}

/* dialog con l'esito dell'invio del modulo */
.rr-modal .modal-content {
  border-radius: 0;
}
.rr-modal .modal-header {
  color: #fff;
  background-color: #002147;
  border-radius: 0;
}
.rr-modal .modal-header .btn-close {
  filter: invert(1) grayscale(100%) brightness(200%);
}
.rr-modal .modal-title {
  font-size: 18px;
  font-weight: bold;
  text-transform: uppercase;
}
.rr-modal-success .modal-body {
  color: #3c763d;
}
.rr-modal-error .modal-body {
  color: #a94442;
}

/* ===== Parte 2: stile originale del sito ===== */

body {
  font-family: 'PT Sans', serif;
}

.logo {
  float: left;
  width: 111px;
  margin-right: -100%;
  position: relative;
  z-index: 2;
}

.logo a.square {
  width: 110px;
  height: 110px;
  display: block;
  background: url("../img/Logo.9e48aa8faff0.png") no-repeat center center;
  overflow: hidden;
  text-indent: -9999%;
}

.icon-bar {
  background-color: white !important;
}

.rr-navbar {
  height: 130px;
  padding-top: 10px;
  background-color: #002147;
  border-color: #002147;
  color: white;
}

.rr-nav {
  padding-top: 40px;
  padding-left: 100px;
  background-color: #002147;
}

.rr-nav > li {
  border-right: 1px solid #3178b0;
}

.rr-nav > li > a {
  padding-top: 3px;
  padding-bottom: 3px;
  padding-left: 20px;
  padding-right: 20px;
  margin-bottom: 0;
  color: white;
  font-size: 22px;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  border-width: 1px;
  border-color: white;
}

.rr-nav > li > a:hover,
.rr-nav > li > a:focus,
.rr-nav > .active > a,
.rr-nav > .active > a:hover,
.rr-nav > .active > a:focus {
  color: white;
  background-color: #3178b0;
}

.container-studio {
  margin-top: 160px;
  margin-bottom: 60px;
}

footer {
  padding-top: 10px;
  padding-left: 10px;
  padding-right: 10px;
  background-color: #002147;
  border-color: #002147;
  color: white;
}

footer a {
  color: #337ab7;
}

/* testo direttamente nella riga, senza colonna (in Bootstrap 5 riceverebbe il margine interno delle colonne) */
.footer-foot > p,
.footer-links > p {
  padding-right: 0;
  padding-left: 0;
}

.footer-foot > p {
  padding-top: 10px;
}

.footer-links {
  border-top: 1px solid #3178b0;
}

.footer-links > p {
  padding-top: 8px;
  padding-bottom: 4px;
  font-size: 12px;
}

.footer-links a {
  color: #dbe4ef;
}

.footer-links a:hover,
.footer-links a:focus {
  color: #fff;
}

.footer-sep {
  margin: 0 10px;
  color: #3178b0;
}

/* CUSTOMIZE THE CAROUSEL
-------------------------------------------------- */

/* Carousel base class */
.carousel {
  margin-top: 130px;
  margin-bottom: 60px;
}

.title1 {
  color: #002147;
  font-size: 20px;
  font-weight: bold;
  text-transform: uppercase;
}

.title2 {
  color: #002147;
  font-size: 20px;
  font-weight: bold;
  text-transform: uppercase;
  padding-top: 10px;
}

.col-4 > img,
.col-4 > a > img {
  border: 1px solid #002147;
}

.text1 {
  padding-top: 10px;
}

.services-alt {
  background-color: WhiteSmoke;
}

/* Riquadro blu che compare sopra le miniature al passaggio del mouse.
   Le dimensioni vengono copiate dall'immagine via JavaScript (sito.js), come nel vecchio sito;
   la dissolvenza da 0 a 0,5 dura 0,6 s con l'andamento "swing" di jQuery. */
span.roll {
  height: 100px;
  position: absolute;
  width: 100px;
  z-index: 10;
  opacity: 0;
  box-shadow: 0px 0px 4px #000;
  transition: opacity .6s cubic-bezier(.37, 0, .63, 1);
}
span.roll:hover {
  opacity: .5;
}

/* Over effect on gallery thumbs */
span.roll-gallery {
  background: url("../img/gallery_icon.28aeeca8da6c.png") center center no-repeat #002147;
}

/* Over effects on home thumbs */
span.roll-architecture {
  background: url("../img/architecture_icon.eca292dfb713.png") center center no-repeat #002147;
}

span.roll-design {
  background: url("../img/design_icon.7c44c2fa9e25.png") center center no-repeat #002147;
}

span.roll-publications {
  background: url("../img/publications_icon.8f81d096516a.png") center center no-repeat #002147;
}

/* Over effect on online publications thumbs */
span.roll-link {
  background: url("../img/link_icon.d3fbd4b2b2cb.png") center center no-repeat #002147;
}

/* --- avviso sui cookie: barra informativa in basso (solo cookie tecnici, nessun consenso richiesto) --- */
.cookie-banner {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1080;
  color: #dbe4ef;
  background-color: #002147;
  border-top: 3px solid #3178b0;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, .35);
  transform: translateY(100%);
  transition: transform .3s ease-out;
}
.cookie-banner.is-visible {
  transform: translateY(0);
}
.cookie-banner[hidden] {
  display: none;
}
.cookie-banner-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: 1200px;
  padding: 16px 56px 16px 24px;
  margin: 0 auto;
}
.cookie-banner-text {
  flex: 1 1 auto;
  font-size: 13px;
  line-height: 1.5;
}
.cookie-banner-text p {
  margin: 0;
}
.cookie-banner-text .cookie-banner-title {
  margin-bottom: 4px;
  font-size: 15px;
  font-weight: bold;
  color: #fff;
  text-transform: uppercase;
}
.cookie-banner-text strong {
  color: #fff;
}
.cookie-banner-text a {
  color: #fff;
  text-decoration: underline;
  white-space: nowrap;
}
.cookie-banner-actions {
  flex: 0 0 auto;
}
.cookie-banner-button {
  min-width: 150px;
  padding: 9px 26px;
  font-size: 15px;
  font-weight: bold;
  letter-spacing: .5px;
  color: #fff;
  text-transform: uppercase;
  cursor: pointer;
  background-color: #3178b0;
  border: 1px solid #fff;
  border-radius: 4px;
  transition: background-color .15s ease-in-out, color .15s ease-in-out;
}
.cookie-banner-button:hover,
.cookie-banner-button:focus-visible {
  color: #002147;
  background-color: #fff;
}
.cookie-banner-button:focus-visible,
.cookie-banner-close:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
.cookie-banner-close {
  position: absolute;
  top: 6px;
  right: 10px;
  padding: 2px 8px;
  font-size: 24px;
  line-height: 1;
  color: #dbe4ef;
  cursor: pointer;
  background: none;
  border: 0;
}
.cookie-banner-close:hover {
  color: #fff;
}
@media (max-width: 767px) {
  .cookie-banner-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 14px 40px 14px 16px;
  }
  .cookie-banner-button {
    width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cookie-banner {
    transition: none;
  }
}

@media screen and (max-width: 1150px) {
  .rr-nav > li > a {
    font-size: 18px;
    padding-left: 18px;
    padding-right: 18px;
  }
  .title1 {
    font-size: 18px;
  }
  .title2 {
    font-size: 18px;
  }
}

@media screen and (max-width: 997px) {
  .rr-nav > li > a {
    font-size: 14px;
    padding-left: 14px;
    padding-right: 14px;
  }
  .title1 {
    font-size: 14px;
  }
  .title2 {
    font-size: 14px;
  }
}

@media screen and (max-width: 880px) {
  .rr-nav > li > a {
    font-size: 10px;
    padding-left: 10px;
    padding-right: 10px;
  }
  .title1 {
    font-size: 10px;
  }
  .title2 {
    font-size: 10px;
  }
}

/* --- pagine Legal Notice e Privacy & Cookie Policy --- */
.legal-page h2 {
  margin-top: 28px;
  margin-bottom: 10px;
  font-size: 17px;
  font-weight: bold;
  color: #002147;
  text-transform: uppercase;
}
.legal-page h3 {
  margin-top: 16px;
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: bold;
  color: #002147;
}
.legal-page ul {
  padding-left: 20px;
  margin-bottom: 10px;
}
.legal-page li {
  margin-bottom: 6px;
}
.legal-page h2[id] {
  scroll-margin-top: 150px;
}
.legal-table {
  margin-bottom: 15px;
  font-size: 13px;
}
.legal-table th {
  color: #fff;
  background-color: #002147;
  font-weight: bold;
}
.legal-table code {
  color: #002147;
  white-space: nowrap;
}
.legal-updated {
  margin-top: 30px;
  font-size: 12px;
  color: #777;
}
