@charset "utf-8";

/* SEA S.p.A. - Responsive design | Novembre 2026 */

/* Elementi aggiunti via JavaScript: nascosti su desktop. */

#menu .menu-toggle,
#menu .submenu-toggle {
  display: none;
}

.mobile-slider-caption {
  display: none;
}

@media screen and (max-width: 1024px) {

  /* =========================================
     STRUTTURA GENERALE
     ========================================= */

  #contenitore {
    width: calc(100% - 24px);
    max-width: 960px;
    background-image: none;
  }

  /* =========================================
     MENU PRINCIPALE
     ========================================= */

  #menu {
    width: 100%;
    background-color: #f7d136;
  }

  #menu .menu-toggle {
    display: block;
    width: 100%;
    padding: 12px 15px;
    border: 0;
    background-color: #f7d136;
    color: #333;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
  }

  #menu > ul {
    height: auto;
    line-height: normal;
  }

  #menu.menu-mobile-ready > ul {
    display: none;
  }

  #menu.menu-mobile-ready > .menu-toggle[aria-expanded="true"] + ul {
    display: block;
  }

  #menu > ul > li {
    float: none;
    width: auto;
    border-right: 0;
    border-top: 1px solid rgba(0,0,0,0.15);
  }

  #menu > ul > li > a {
    padding: 13px 55px 13px 15px;
  }

  #menu .submenu-toggle {
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    color: #333;
    font-size: 22px;
    cursor: pointer;
  }

  #menu .submenu-toggle::before {
    content: "+";
  }

  #menu .submenu-toggle[aria-expanded="true"]::before {
    content: "−";
  }

  #menu > ul > li > ul {
    position: static;
    left: auto;
    width: 100%;
    height: auto;
    line-height: normal;
  }

  #menu.menu-mobile-ready > ul > li > ul {
    display: none;
  }

  #menu.menu-mobile-ready > ul > li > .submenu-toggle[aria-expanded="true"] + ul {
    display: block;
  }

  #menu ul li ul li {
    float: none;
    width: auto;
    border: 0;
    background-color: #eee;
  }

  #menu ul li ul li a {
    padding: 12px 25px;
  }

  /* =========================================
     SLIDER
     ========================================= */

  #slider {
    width: 100%;
    height: auto;
    margin-top: 24px;
    border: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    grid-row: 1;
    grid-column: 1;
  }

  #slider .nivo-main-image {
    height: auto !important;
  }

  #slider .nivo-directionNav {
    display: none !important;
  }

  /* =========================================
     DIDASCALIE E NAVIGAZIONE SLIDER
     ========================================= */

  .theme-sea {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  #slider .nivo-caption {
    visibility: hidden !important;
  }

  .theme-sea .mobile-slider-caption {
    display: block;
    grid-row: 2;
    grid-column: 1;
    box-sizing: border-box;
    width: 100%;
    min-height: 116px;
    margin: 0;
    padding: 15px 8px 5px;
    background-color: transparent;
    color: #555;
    font-size: 15px;
    line-height: 1.5;
  }

  .mobile-slider-caption strong {
    display: block;
    color: #70a341;
    margin-bottom: 6px;
  }

  .mobile-slider-caption strong + br,
  .mobile-slider-caption strong + br + br {
    display: none;
  }

  .theme-sea .mobile-slider-caption:empty {
    display: none;
  }

  .theme-sea .nivo-controlNav {
    grid-row: 3;
    grid-column: 1;
    padding: 15px 0 25px;
  }

  /* =========================================
     RIQUADRI HOMEPAGE
     ========================================= */

  #contenitore2colonne {
    display: flex;
    flex-direction: column;
    gap: 20px;
    float: none;
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }

  #primo_piano,
  #corsi,
  #login {
    float: none;
    width: 100%;
    height: auto;
    margin: 0;
    box-sizing: border-box;
  }

  #login {
    display: flow-root;
    clear: both;
    margin-top: 20px;
    margin-bottom: 25px;
  }

  #primo_piano .box_bianco,
  #corsi .box_bianco,
  #login .box_bianco {
    display: flow-root;
    width: auto;
    height: auto;
    min-height: 116px;
    box-sizing: border-box;
    background-position: left center;
    background-repeat: no-repeat;
  }

  #primo_piano .testo,
  #corsi .testo {
    width: auto;
    height: auto;
    text-align: left;
    line-height: 1.5;
  }

  #primo_piano .testo:last-child,
  #corsi .testo:last-child {
    text-align: right;
  }

  #login .login {
    width: auto;
    height: auto;
  }

  /* =========================================
     MODULO LOGIN HOMEPAGE
     ========================================= */

  #login fieldset {
    min-width: 0;
    box-sizing: border-box;
  }

  #login input[type="text"],
  #login input[type="password"] {
    display: block;
    float: none;
    width: 100%;
    box-sizing: border-box;
    font-size: 16px;
    min-height: 32px;
    margin: 0 0 6px;
  }

  #login input[type="submit"] {
    display: block;
    float: none;
    margin-left: auto;
    margin-right: 0;
    min-height: 32px;
  }

  #login .login > p {
    text-align: left;
    font-size: 13px;
    line-height: 1.5;
    overflow-wrap: anywhere;
  }

  #login .login > p:last-child {
    text-align: right;
  }

  /* =========================================
     TESTATA E FOOTER
     ========================================= */

  #header {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 12px;
    height: auto;
    min-height: 0;
    padding: 25px 0;
    box-sizing: border-box;
  }

  #header > a {
    display: block;
    width: 220px;
    max-width: 100%;
    float: none;
    margin: 0;
    padding: 0;
  }

  #header .logo {
    position: static;
    display: block;
    float: none;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }

  #header > div {
    float: none !important;
    position: static !important;
    margin: 0 !important;
    max-width: 100%;
    text-align: center;
    overflow-wrap: anywhere;
  }

  #header > div p {
    margin: 0;
    padding: 0;
    font-size: 13px;
    line-height: 1.5;
    text-align: center;
  }

  #header > div p a {
    display: inline-block;
    padding: 5px 10px;
  }

  #footer {
    width: 100%;
    display: flow-root;
    height: auto;
    box-sizing: border-box;
    padding: 20px 12px;
  }

  #footer p {
    margin: 0;
    padding: 0;
  }

  #footer p:first-child {
    font-size: 14px;
    line-height: 1.8;
    padding-bottom: 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(0,0,0,0.2);
  }

  #footer p:first-child a {
    display: inline-block;
  }

  #footer p:last-child,
  #footer p:last-child a {
    font-size: 12px;
    font-weight: normal;
    line-height: 1.6;
  }

    /* =========================================
     PAGINE INTERNE RESPONSIVE
     ========================================= */

  #contenuto2 {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 0;
    margin: 24px 0;
    padding: 0 8px;
    box-sizing: border-box;
    border: none;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
  }

  #contenuto_left {
    float: none;
    width: 100%;
  }

  #contenuto_right {
    order: -1;
    float: none;
    width: 100%;
    margin: 0;
  }

  /* Nascondiamo il menu laterale */

  #menu_interna {
    display: none;
  }

  /* Titoli */

  #contenuto_left h1 {
    font-size: 22px;
    line-height: 1.3;
    margin-bottom: 15px;
  }

  #contenuto_left h2 {
    font-size: 18px;
    line-height: 1.4;
  }

  /* Testi */

  #contenuto_left p,
  #contenuto_left ul p,
  #contenuto_left ol p {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 10px;
  }

  #contenuto_left .giustificato {
    text-align: left;
  }

    /* Collegamenti con indirizzi lunghi */

  #contenuto_left a {
    overflow-wrap: anywhere;
  }

  /* Elenchi */

  #contenuto_left ul,
  #contenuto_left ol {
    padding-left: 24px;
  }

  /* Immagini */

  #contenuto_left img {
    max-width: 100%;
    height: auto;
  }

  #contenuto_right img {
    display: block;
    max-width: min(100%, 200px);
    height: auto;
    margin: 0 auto 24px;
    box-sizing: border-box;
    border: none;
    border-radius: 12px;
  }

    /* Colonne laterali con più immagini */

  #contenuto_right:has(img ~ img) {
    order: 3;
  }
  
    /* =========================================
     GOOGLE MAPS RESPONSIVE
     ========================================= */

  #mappa {
    width: 100%;
    max-width: 100%;
    height: 400px;
    box-sizing: border-box;
    border: none;
    border-radius: 12px;
    overflow: hidden;
  }

}

/* =========================================
   MODULO RICHIESTA INFORMAZIONI RESPONSIVE
   ========================================= */

@media screen and (max-width: 1024px) {

  #contenuto_left #info {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 12px;
  }

  #info fieldset {
    width: auto;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0;
  }

  #info #nome,
  #info #cognome,
  #info #telefono,
  #info #from,
  #info select,
  #info textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    font-size: 16px;
    padding: 8px;
  }

  #info #nome,
  #info #cognome,
  #info #telefono,
  #info #from,
  #info select {
    height: 40px;
  }

  #info textarea {
    height: 200px;
    resize: vertical;
  }

  #info input.invia {
    width: auto;
    min-width: 90px;
    height: 40px;
    padding: 0 15px;
    font-size: 14px;
  }

}